1

I am trying to run a query on MS Access I am a newbie in it. I have to find difference of two dates then find count of those who have diff > 10.I am using the datediff

Function for the same

SELECT  count(Admission No.)
From Admissions
where DATEDIFF(DAY, Admission Date, Discharge Date) >10

Where i am going wronmg i am getting a syntax error

0

1 Answer 1

1

Try to encapsulate fields name in square brackets

SELECT  count([Admission No.])
 From Admissions
 where DATEDIFF(DAY, [Admission Date], [Discharge Date]) >10
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.