(Solved)No table name "food", please help me | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

(Solved)No table name "food", please help me

No database ?????????

29th Dec 2020, 11:30 AM
Ratna13
Ratna13 - avatar
9 Answers
+ 1
Try to create new Food table with the same values. And after this use select operator.
29th Dec 2020, 10:10 PM
Z_rom
Z_rom - avatar
+ 2
Ratna13 First you need to create a database and then insert Tables named food or whatever into that database otherwise if you prompt to Show tables/database ,an error message will be displayed . Btw please Make your Question more specific and Post your Sql commands for receiving better help . Read this lessons and Comments especially(coz SL teaches to Show databases and tables without teaching how to create it , So give attention to the comments) : https://www.sololearn.com/learn/SQL/1850/
29th Dec 2020, 12:03 PM
Alphin K Sajan
Alphin K Sajan - avatar
+ 1
Привет, при решении данного задания у меня возникла та же проблема. Похоже, что таблица Food отсутствует, но данную проблему можно обойти следующим образом: 1. Нужно создать таблицу Food; 2. Наполнить данную таблицу значениями с картинки задания; 3. Выполнить запрос для создания выборки. Если таблица создана и заполнена корректно, а также написан правильный запрос, то задание можно считать выполненным.
29th Dec 2020, 10:05 PM
Z_rom
Z_rom - avatar
0
can you please elaborate your question
29th Dec 2020, 11:54 AM
Faisal Rahman
Faisal Rahman - avatar
0
Error : Relation "food" doesn't exist Line 1 : select *from food; ^ Based on practice 6.2, the name of table "food"
29th Dec 2020, 12:22 PM
Ratna13
Ratna13 - avatar
0
give a space between * from
29th Dec 2020, 12:25 PM
Faisal Rahman
Faisal Rahman - avatar
0
It doesn't change anything
29th Dec 2020, 4:08 PM
Ratna13
Ratna13 - avatar
0
Thank you 🙏🙏🙏, I'll try it
29th Dec 2020, 10:47 PM
Ratna13
Ratna13 - avatar