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.

1st Jan 2021, 6:04 PM
soheb masani
soheb masani - avatar
6 Respuestas
+ 2
Thanks AJ
1st Jan 2021, 6:51 PM
soheb masani
soheb masani - avatar
+ 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;
3rd Jun 2023, 3:16 PM
Vinoth
Vinoth - avatar
0
soheb masani It's bug.
1st Jan 2021, 6:18 PM
A͢J
A͢J - avatar
0
def a bug
12th Jan 2021, 7:50 PM
Yen Kang Wang
Yen Kang Wang - avatar
0
SELECT *FROM Foods WHERE fatpercentage < (SELECT AVG(fatpercentage) FROM Foods); Try this
25th Jun 2021, 4:50 AM
Akuthota Hemanth
0
write Foods not food
19th Dec 2021, 3:55 AM
Kartheek Nayak
Kartheek Nayak - avatar