Hi All,
I have just upsized to a SQL database and must re-write Access queries. I want to create separate queries to find out the list of patients seen yesterday, 2 days ago, 3 days ago, etc. One table includes the date field and the other table includes demographic data. I've tried getdate, adddate to no avail. In Access I used to use Date()-1. This doesn't work in SQL. Please help!
I have just upsized to a SQL database and must re-write Access queries. I want to create separate queries to find out the list of patients seen yesterday, 2 days ago, 3 days ago, etc. One table includes the date field and the other table includes demographic data. I've tried getdate, adddate to no avail. In Access I used to use Date()-1. This doesn't work in SQL. Please help!