+ 3
the code not respond, does not give input
code practice Online Bookstore SELECT * FROM books WHERE author = 'Fiction'
21 Answers
+ 6
Read the requirement of that practice code carefully.It is clearly mentioned to extract books with 'Fiction' genre not 'Fiction' author. So why you have used `author`. Replace it with `genre`
So your code should be-
SELECT *
FROM books
WHERE genre = 'Fiction';
+ 4
it is true that I had not paid attention to this
+ 3
author = 'Fiction' ???
+ 3
Review the lesson AMIR H R A<ć¾(@^ā½^@)ć >LION šŖ
If you still have trouble, we need to see the task as well.
https://code.sololearn.com/WZ8lkR6gTex6/?ref=app
https://code.sololearn.com/W0uW3Wks8UBk/?ref=app
+ 3
Doesn't answer
+ 3
write the query to select the dessert name and place from the desserts table where the dessert name contains the word 'Chocolate'
this practice
+ 3
thanks Koli that's right I forgot and all guys
+ 2
write a query to select all fields from the books table but only retrieve the books that belong to the 'Fiction' genre
Online Bookstore practice sql ...
+ 2
AMIR H R A<ć¾(@^ā½^@)ć >LION šŖ
Didn't you just write the hint?
<books that belong to the 'Fiction' genre>
+ 2
yes
+ 2
the code not respond does not give input ?
SELECT * FROM desserts
WHERE name LIKE '%Chocolate';
the project of sql Chocolate code
+ 2
doesn't answer
+ 2
Try this one bro-
SELECT name,price
FROM desserts
WHERE name LIKE '%chocolate%';
You just forgot to put `%` at the end of the chocolate no need of any uppercase or lowercase and the practice code is asking for extract name and price not all thing!
+ 2
AMIR H R A<ć¾(@^ā½^@)ć >LION šŖ
If you have a new question, pleaes post in a new post.
Prathish K K
I'm not sure if you reached this particular exercise, you suggestion looks logical on the surface but doesn't match the table in question.
Please don't spam with educated guess.
+ 2
thanks Koli it is true and all guys
+ 1
Check the table name first
0
Add semi-colon " ; "at the end bro
0
To check all the tables use
SHOW TABLES;
The view the whole table once
SELECT * FROM <table_name>;
And then check the corresponding column name and the value you used in the query before
0
Select dessert_name from desserts where dessert_name = 'Chocolate';
0
dessert_name is the column name