Chance1234
IS-IT--Management
I have a table which has data like the following
client, start, title , BCount
==============================
Bob, 1/2/2004, Send Reports ,1
Bob, 12/2/2004, Chase Reports ,1
Sid, 3/2/2004, Send Reports,1
Sid, 12/2/2004, Chase Reports,1
etc etc
I then have a view from this table , something like
All good, but i want to return days where there is no records as well
Only way i can think of is to create a tempoary table with dates in and do a join, is there a better way to acheive this ?
Chance,
F, G + 1MSTG
client, start, title , BCount
==============================
Bob, 1/2/2004, Send Reports ,1
Bob, 12/2/2004, Chase Reports ,1
Sid, 3/2/2004, Send Reports,1
Sid, 12/2/2004, Chase Reports,1
etc etc
I then have a view from this table , something like
SELECT Client, Title, DATEPART(Year, Start) AS Year, DATENAME(month, Start) AS Month, DATEPART(Day, Start) AS Day, BCount, Start
FROM dbo.vw_be_main
ORDER BY Start
All good, but i want to return days where there is no records as well
Only way i can think of is to create a tempoary table with dates in and do a join, is there a better way to acheive this ?
Chance,
F, G + 1MSTG