sql - Getting records which have closer date to given Input date -


I have a table of data (db is mssql): input date: 01-09-2014

< Pre> ID Orders Particode Fund IDC Amount Finalized Revised 417 2144 44 9 17 A 100 31-08-2014 418 7235 11762 B5 31-08-2014 41 9 9991 60657 C 100 31-08-2014 420 99 9 2 60658 D 90 31-08- 2014 421 9993 60659 A 100 31-07-2014 422 9994 60660 B 90 31-07-2014 421 9993 60659 C00 31-07-2014 422 9994 60660 D 90 31-07-2014

I want to make a query that sets the returns on the record's return, but only the last modified To Thi which is closely below, the input went on.

From the example table, I would like to get back the following information:

  ID orderon partcode fund IDC quantity finally modified 417 2144 44 9 17A 100 31-08- 2014 418 7235 11762 B5 31-08-2014 41 9 9991 60657 C100 31-08-2014 420 992 60658 D 90 31-08-2014  

Thank you!

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -