Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Query

This query wise my result Get Data is Below
BatchiD      Date
PSSR/B1269   20/08/2014
STSDSD/B95   20/08/2014
SSO/B255     20/08/2014
STSDSDC/B58  20/08/2014 
DECGS/B17    20/08/2014
STSDSD/B96   20/08/2014
SSO/B256     20/08/2014



After This data i want SSO/B255,SSO/B256 this two data greater than
I want SSO/B256 this Result greater than value.

Thanks
Posted
Updated 4-Oct-14 0:47am
v2
Comments
[no name] 4-Oct-14 6:44am    
Please define "greater" especally for x in "x/y"
Jörgen Andersson 4-Oct-14 6:50am    
Normalization is a good thing. You should read up on it.
http://en.wikipedia.org/wiki/Database_normalization

1 solution

You can use MAX(BatchiD) with your condition for last inserted row.
 
Share this answer
 
Comments
Jörgen Andersson 4-Oct-14 6:56am    
That would give him the row with BatchID = 'STSDSDC/B58'
Try again.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900