Hello everyone I am trying to write this select statement in sql
The report should be for those patients admitted more than 2 days prior but less than 7 days prior to the date of the report.
I have just started learning sql, please help if you can.
I am not sure if I am writing this correctly.
Thank you for reading my post.
Select * from admissions
Where admission_date >= getdate() -2 and <= getdate()-7
The report should be for those patients admitted more than 2 days prior but less than 7 days prior to the date of the report.
I have just started learning sql, please help if you can.
I am not sure if I am writing this correctly.
Thank you for reading my post.
Select * from admissions
Where admission_date >= getdate() -2 and <= getdate()-7