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 |
vipin_jha123
Starting Member
31 Posts |
Posted - 2011-06-24 : 05:49:04
|
I have a queryi need to select a column on the basis of given derivation logiclike i need to select DCTD_ACLI.tran_particular from DCTD_ACLI on the bais of MAX(DCTD_ACLI.tran_date) and DCTD_ACLI.part_tran_type='D'please advise with proper sql statementthankx and regards,Vipin jha |
|
nigelrivett
Master Smack Fu Yak Hacker
3385 Posts |
Posted - 2011-06-24 : 06:30:57
|
select d.tran_particularfrom DCTD_ACLI dwhere d.part_tran_type='D'and d.tran_date = (select max(tran_date) from DCTD_ACLI)==========================================Cursors are useful if you don't know sql.SSIS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
|
|