Heya again guy and gals. I've read the keyword search on this topic but don't really understand it all so I'll give you my Example:
CR 8.5
Table 1 - Reps
Rep_Name
Table 2 - Contracts
Contract_Number
Date_Assigned
Rep_Name
OK I join Rep_Name in 1 to Rep_Name in 2 with a left join.
I want a list of contracts assigned within the last full week by day for each rep. If a rep was not assigned a contract in that perior I want a 0 there. What it's doing is giving me the correct information for anyone who has at least one assignment and not giving anyone with no assignemnts as that is null and therefore there is no return.
Any help would be greatly appreciated.
Thank You
CR 8.5
Table 1 - Reps
Rep_Name
Table 2 - Contracts
Contract_Number
Date_Assigned
Rep_Name
OK I join Rep_Name in 1 to Rep_Name in 2 with a left join.
I want a list of contracts assigned within the last full week by day for each rep. If a rep was not assigned a contract in that perior I want a 0 there. What it's doing is giving me the correct information for anyone who has at least one assignment and not giving anyone with no assignemnts as that is null and therefore there is no return.
Code:
Current result:
Rep Mon Tues Wed Th Fri
bob 1 1 2 0 1
bill 0 0 1 0 0
Desired Result:
Rep Mon Tues Wed Th Fri
bob 1 1 2 0 1
bill 0 0 1 0 0
jane 0 0 0 0 0
Thank You