Hi
A simple one I'm sure.
How do I select all records from one table that do not have a FK in another.
EG
Table_Class
ClassID
ClassName
TeacherID
Table_Teacher
TeacherID
Name
I want to see a list of Teachers who are not assigned to a Class.
Thanks in advance
Ok this is what I have:
SELECT Pupil.DOB, DateDiff('yyyy',[DOB],Now()) AS Age, Avg([Age]) as Avg_Age
FROM Pupil
group by Pupil.DOB, Age, Avg_Age;
On executing it asks me to enter parameter, I justy want to see the average of all their ages?
Thanks in advance
Thanks for your comments. I will look at the link you provided. However, regardless of accuracy how do I write the SQL to average the age column??
Thanks
Please can someone help.
How do I calculate the average date of birth in Access.
EG This gives me DOB and Age in years, how do I get the Average Age of ALL users?:
SELECT Pupil.DOB, DateDiff('yyyy',[DOB],Now()) AS Age
FROM Pupil;
Many Thanks
C
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.