R
Rey
Need to create table that contains user names and a field w/number of
follow ups due today as well as a field w/number of followups past due
(Specialist, FLWDueToday, FLWPastDue).
Below are two separate queries but am suffering memory loss as to how
to do this.
Thank you,
Rey
- due today
SELECT FU.SpecialistName, Count(FU.[Followup Date]) AS FLWDueToday
FROM Followup AS FU
WHERE (FU.[Followup Date] <> null AND FU.[Followup Date]=Date())
GROUP BY FU.SpecialistName
ORDER BY FU.SpecialistName;
- past due
SELECT FU.SpecialistName, Count(FU.[Followup Date]) as FLWPastDue
FROM Followup FU
WHERE (FU.[Followup Date] <> null AND FU.[Followup Date] < Date())
GROUP BY FU.SpecialistName
ORDER BY FU.SpecialistName;
follow ups due today as well as a field w/number of followups past due
(Specialist, FLWDueToday, FLWPastDue).
Below are two separate queries but am suffering memory loss as to how
to do this.
Thank you,
Rey
- due today
SELECT FU.SpecialistName, Count(FU.[Followup Date]) AS FLWDueToday
FROM Followup AS FU
WHERE (FU.[Followup Date] <> null AND FU.[Followup Date]=Date())
GROUP BY FU.SpecialistName
ORDER BY FU.SpecialistName;
- past due
SELECT FU.SpecialistName, Count(FU.[Followup Date]) as FLWPastDue
FROM Followup FU
WHERE (FU.[Followup Date] <> null AND FU.[Followup Date] < Date())
GROUP BY FU.SpecialistName
ORDER BY FU.SpecialistName;