The SQL query:
SELECT badgename FROM badges WHERE stock < desiredstock
Carried out on this table:
Should Yield
Summit Everest, Elderly Management Badge
Yet it yields nothing, and no error is produced.
I hypothisie that since both stock
and desiredstock
are columns with VARCHARS
, the Query cannot be carried out as you can't compare two strings mathematically.
So is it possible to rewrite the query so both stock
and desiredstock
values are casted as VARINTS
?