SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 match data in a multipal row
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Yak Posting Veteran

65 Posts

Posted - 04/26/2013 :  01:38:11  Show Profile  Reply with Quote
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

Sr. Sw.Engineer

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 04/26/2013 :  01:58:55  Show Profile  Reply with Quote
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.03 seconds. Powered By: Snitz Forums 2000