Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.databases.ms-sqlserver > #801
| From | Erland Sommarskog <esquel@sommarskog.se> |
|---|---|
| Newsgroups | comp.databases.ms-sqlserver |
| Subject | Re: comparing two table |
| Date | 2011-11-11 23:40 +0100 |
| Organization | Erland Sommarskog |
| Message-ID | <Xns9F9AF0C762F5FYazorman@127.0.0.1> (permalink) |
| References | <2ddbf504-fed9-415e-ac73-8a2839ea0588@w20g2000prc.googlegroups.com> |
John Kim (jinumarketing@gmail.com) writes: > i have two tables. > > one table - tbl_attempted issue has number field with the following > values. > > > number field record values - 1, 3, 4, 5 > > > the other table - tbl_issues_out has another number field with the > following value. > > > number field record value - 7 > > > IS THERE A WAY TO CHECK THESE TWO TABLES and come up with values, > > > 2, 6 You need a table with numbers, that is a table that has all numbers from 1 and up. Read more here: http://www.sommarskog.se/arrays-in-sql-2005.html#tblnum You should only to read down to the header "An Inline Function". -- Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se Links for SQL Server Books Online: SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
Back to comp.databases.ms-sqlserver | Previous | Next — Previous in thread | Find similar
comparing two table John Kim <jinumarketing@gmail.com> - 2011-11-11 04:11 -0800 Re: comparing two table "Andrew Morton" <akm@in-press.co.uk.invalid> - 2011-11-11 13:01 +0000 Re: comparing two table Erland Sommarskog <esquel@sommarskog.se> - 2011-11-11 23:40 +0100
csiph-web