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.
| Author |
Topic |
|
svicky9
Posting Yak Master
232 Posts |
Posted - 2005-09-08 : 11:05:51
|
| Hi I created a report that has two columns but so many duplicateswithin that using inner join.I get something like A 1 A 1 A 1 B 2 B 2Intead i just need A 1 B 2 Pls helpcheersVic |
|
|
Seventhnight
Master Smack Fu Yak Hacker
2878 Posts |
Posted - 2005-09-08 : 11:07:15
|
Select Distinct Col01, Col02 From <yourTable>or Select Col01, Col02 From <yourTable> Group By Col01, Col02but it may depend on what else you are trying to include in the results Corey Co-worker on The Wizard of Oz "...those three midgets that came out and danced, the freaked me out when I was little. But they are ok now." |
 |
|
|
|
|
|