JOINS, my Achilles heel
tblFoo
---------
FooID [int] | Foobar [varchar] | HasQuota [int] | Quota [int] | Stock [int]
How would I get all values from tblFoo based on a certain quantity value? If the record has a quota then I check to see that quantity <= stock, if the record has no quota then return it as part of the result set. Any help appreciated.
tblFoo
---------
FooID [int] | Foobar [varchar] | HasQuota [int] | Quota [int] | Stock [int]
How would I get all values from tblFoo based on a certain quantity value? If the record has a quota then I check to see that quantity <= stock, if the record has no quota then return it as part of the result set. Any help appreciated.