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 |
|
godspeedba
Yak Posting Veteran
90 Posts |
Posted - 2009-10-02 : 09:14:26
|
id line order1 33569 36 2 33427 34 3 33427 33 4 33427 32 If I had the above data in a table. How would I find the order numbers with a distinct line number? |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2009-10-02 : 09:45:27
|
So in this example you output should be order# 36?select order from table t1join(select line from table group by line having count(*) = 1)dton dt.line = t1.line No, you're never too old to Yak'n'Roll if you're too young to die. |
 |
|
|
godspeedba
Yak Posting Veteran
90 Posts |
Posted - 2009-10-02 : 10:00:44
|
| No worries sorted it |
 |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2009-10-02 : 10:26:03
|
Aha!? No, you're never too old to Yak'n'Roll if you're too young to die. |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2009-10-03 : 03:06:42
|
quote: Originally posted by godspeedba No worries sorted it
Then post your solutionMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|