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 |
|
ricc
Starting Member
16 Posts |
Posted - 2007-02-19 : 08:44:54
|
| HiI Have the following tableSequenceNumber___TypeID8_________________IMG7_________________IMG6_________________IMG5_________________IMG4_________________IMG3_________________IMG2_________________FLP2_________________IMGI want to pull the data out in the following format, SequenceNumber___TypeID8_________________IMG2_________________FLPThis basically shows the highest SequenceNumber of each TypeID, I've tried many different SQL queries but I can't seem to get it! Any ideas?Thanks |
|
|
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts |
Posted - 2007-02-19 : 08:53:04
|
| Can you show us what you have tried so far? This is simple case of GROUP BY.Harsh AthalyeIndia."The IMPOSSIBLE is often UNTRIED" |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2007-02-19 : 09:21:08
|
| And a MAX aggregation.Peter LarssonHelsingborg, Sweden |
 |
|
|
|
|
|