I am trying to select a lower number from a database using SQL.
I have a table in which I have entries like this
ID NodeName NodeType 4 AA 2 BB 2 CC 1 DD 0 EE
and other columns, such as name and type.
If I pass "4" as a parameter, then I want to get the following smallest entries of numbers:
ID NodeName NodeType 2 BB 2 CC
Right now, if I use the < sign, it gives me
ID NodeName NodeType 2 BB 2 CC 1 DD 0 EE
How can I make this work?
source share