Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Query Missing dates in years
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

27 Posts

Posted - 10/01/2012 :  03:32:56  Show Profile  Reply with Quote
Hello experts !

I need some urgent help. I need to query data in years suppose how many missing dates . The query show the missing dates where the data is not entered.


Flowing Fount of Yak Knowledge

2242 Posts

Posted - 10/01/2012 :  05:11:34  Show Profile  Reply with Quote

Check the following links

Go to Top of Page

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 10/01/2012 :  10:29:40  Show Profile  Reply with Quote
you need to have a calendar table for that and use it to left join to your table.
see code I've given in link above to create a calendar table and using it in LEFT JOIN

SQL Server MVP

Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000