I have a table of data with a Name, a Grade, and a Point. For example, “John” got the grade B, which has a point value of 3.0.
How can I select entries that are less than a grade of “B”?
So I somehow need to do something like this
Value = select Point from MyTable where Grade="B"
and then
select * from MyTable where Point < value
but obviously SQL has to be one statement…
Try it use in subquery as below:
but if you subquery returns more than one row try to use aggregate funcion for example
minor with
LIMITandjoin: