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 2005 Forums
 Transact-SQL (2005)
 how to get combination

Author  Topic 

dhanu.tpk
Starting Member

14 Posts

Posted - 2009-11-30 : 13:08:48
i have columns like calendarid and calselectid, i need to find out the combination of records,i ahve list ids how do i get the exact combination??

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-11-30 : 13:09:48
Your question is not clear. Please show us some sample data.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-11-30 : 13:14:20
can you show a data sample of your scenario?
Go to Top of Page

dhanu.tpk
Starting Member

14 Posts

Posted - 2009-11-30 : 13:19:31
i have calsectid like 1 and calender id is 10,11,12,13,
by passing the calsectid ,ineed to get calsectid by passing 10,11,12 ,if no match found then i need to insert
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-11-30 : 13:23:07
sorry your explanation dont make much sense. can you post data in below format?

http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx
Go to Top of Page
   

- Advertisement -