Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
I have a table that looks like this200801200802200803200805200806200807200809I would like to find the missing numbers i.e '200804' and '200808'I appreciate any help....thanks!!
Unfortunately I can't use CTE. I'm pulling the data from a 2000 server
Vinnie881
Master Smack Fu Yak Hacker
1231 Posts
Posted - 2009-07-08 : 13:47:01
create a number table and join it.A number table can be created numerous ways, but here is a link to a few good methods.http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=47685If you choose to use that function, your code would be similiar to as follows: