The view has 3 tables, example structure consistent with the question they are missedClass with 2 FK's one to Class and the Other to student
ViewMissedClass is: select ClassName, ParticipantFullName, DateMissed from MissedClass right outer join Class on (id's) join Student on (ids)
The result I want will include a row for each student who missed a class, for now lets assume they miss one and are kicked out
ClassName StudentName DateMissed Numberofpeople in class
Basic Woodworking Joan Doe 6/1/23 15
Basic Woodworking John Doe 6/15/23 15
Autoshop 23
The report is already including 1 row for the ClassName even if there is no one in the class as well as being able to select more than one class using some date language, But in order to validate that the classes we are looking up even have anyone in them it helps to have that count.
The only field I am interested in solving is the NumberofPeople in class column, the rest is working fine (outer joins of course)
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
Billp
The view has 3 tables, example structure consistent with the question they are missedClass with 2 FK's one to Class and the Other to student
ViewMissedClass is: select ClassName, ParticipantFullName, DateMissed from MissedClass right outer join Class on (id's) join Student on (ids)
The result I want will include a row for each student who missed a class, for now lets assume they miss one and are kicked out
ClassName StudentName DateMissed Numberofpeople in class
Basic Woodworking Joan Doe 6/1/23 15
Basic Woodworking John Doe 6/15/23 15
Autoshop 23
The report is already including 1 row for the ClassName even if there is no one in the class as well as being able to select more than one class using some date language, But in order to validate that the classes we are looking up even have anyone in them it helps to have that count.
The only field I am interested in solving is the NumberofPeople in class column, the rest is working fine (outer joins of course)
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.