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 |
|
sqlguy
Starting Member
1 Post |
Posted - 2007-03-21 : 14:12:13
|
| I am joining to a table where I need the latest tier code. In oracle, we have analytical functions such as rank, lead etc. Is there such a function in sql server.select a.ID, b.tier_code (get the oldest tier code here)from table_a, table_bwhere a.ID = b.IDCan this be achieved without using a group by? what is the best way to achieve this?thanks |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2007-03-21 : 14:20:56
|
| You have RANK(), DENSE_RANK(), NTILE(), ROW_NUMBER() in SQL Server.Peter LarssonHelsingborg, Sweden |
 |
|
|
|
|
|