Skip to content
Advertisement

Need help in sql Query.neo

TABLE DETAIL

In this table there are three colum and in need the value for of data which are lesser than code = 28,this is my query

but when i ad where clouse like

is only shows 2 row with code 26 and 27… i need 26,27 and 32.. and table colums are variable its not fix..

Advertisement

Answer

I think you wnat to take the date into account — what you really want are all rows before the date of the row with code 28.

One method uses a subquery:

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement