0
SQL 14.2 Practice Let’s get fit error!!
SELECT * FROM Food WHERE fatpercentage < (SELECT AVG(fatpercentage) FROM Food); The result is giving an error that the Food table does not exist. How is this possible as the table name is clearly mentioned in the question. Please assist.
6 Respostas
+ 2
Thanks AJ
+ 1
problem: Monica has just returned from her nutritionist and was advised to only eat low-fat foods......
...........Select all columns from the table and sort the result by the fatpercentage column in ascending order.
sol. code:
SELECT *FROM Products
WHERE fatpercentage < (SELECT AVG(fatpercentage) FROM Products) order by fatpercentage asc;
0
soheb masani It's bug.
0
def a bug
0
SELECT *FROM Foods
WHERE fatpercentage < (SELECT AVG(fatpercentage) FROM Foods);
Try this
0
write Foods not food