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 2000 Forums
 SQL Server Development (2000)
 SQL Query

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-06-01 : 08:38:52
Anthony writes "Hi, I am currently stuck on a SQL Server query. I was working on a table with a composite key consisting of 3 primary keys where I have to retrieve all records that have identical 2 primary key values and a different non-primary key value (a in one case, b in another).
I was wondering if anyone knew a way of doing this.
Thanks."

JimL
SQL Slinging Yak Ranger

1537 Posts

Posted - 2005-06-01 : 08:48:42
You can use a join.
Please post table schema and expected results.

Jim
Users <> Logic
Go to Top of Page
   

- Advertisement -