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.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 match data in a multipal row

Author  Topic 

chiragvm
Yak Posting Veteran

65 Posts

Posted - 2013-04-26 : 01:38:11
Hi to all

i have a 20 column Id, No1, No2, No3,......No20 in a table ,
Id is a auto identity column,
No1 to No20 has values between 1 to 80. in each column values are unique for a row
approx 100000 records in a table
i want to search a data on No1 to No20 column

i have 10 records like 18, 3, 15, 16, 11, 5, 41, 61, 43, 80 (all 10 values are also unique)

need to search upper 10 values in No1 to No20 column, in any column it's match but all 10 values must be match in all column for a row
Like 18 can be match in No1 to No20 column

-------------
Chirag
India
Sr. Sw.Engineer

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-04-26 : 01:58:55
sorry your explanation is a bit confusing. Can you post some sample data and then show the output you want out of it?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
   

- Advertisement -