Here is my table structure:
StudentID First Last
1 John Doe
2 Jane Doe
ClassID StudentID Instructor Time
1 1 fsd 11:00
2 1 asf 12:00
3 2 jkl 12:00
I would like to have a query that gets all the info in the first table and gets the number of classes in the second table I think I am making this too complicated hehe.
results I want would be like
StudentID First Last NumClasses
1 John Doe 2
2 Jane Doe 1
The end product is more complex than this, I just need to get that info in 1 query.
THANKS!
StudentID First Last
1 John Doe
2 Jane Doe
ClassID StudentID Instructor Time
1 1 fsd 11:00
2 1 asf 12:00
3 2 jkl 12:00
I would like to have a query that gets all the info in the first table and gets the number of classes in the second table I think I am making this too complicated hehe.
results I want would be like
StudentID First Last NumClasses
1 John Doe 2
2 Jane Doe 1
The end product is more complex than this, I just need to get that info in 1 query.
THANKS!