November 3, 2011 at 1:31 pm
Make this change to your FROM clause, see if that gives you what you are looking for.
FROM Calendar LEFT JOIN
TimeTracking ON Calendar.CalendarDate = TimeTracking.Date1 AND TimeTracking.UserName = 'someguy'
This is the change GSquared was telling you to make.
November 3, 2011 at 1:31 pm
Well if you only want to show records for "SomeGuy" then you already had that. It will only show records for "SomeGuy".
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
November 3, 2011 at 1:32 pm
Okay, I definitely am a noob. 😛
It totally makes sense now. Thanks everyone!!!
November 3, 2011 at 1:53 pm
We were all noobs once. 🙂
Jared
Jared
CE - Microsoft
Viewing 4 posts - 16 through 18 (of 18 total)
You must be logged in to reply to this topic. Login to reply