- 23

Help me in this question please (cake exercise)

A local bakery creates unique cake sets. Each cake set contains three different cakes. Here is the cakes table: Š¢oday a customer want a cake set that has minimal calories. Write a query to sort the cakes by calorie count and select the first 3 cakes from the list to offer the customer. Use limit and ORDER by I answered it : SELECT name, salary from calories ORDER by calories ASC LIMIT 3 ; But i do not know why it is wrong

9th Jun 2021, 11:04 AM
pasant Hussein
pasant Hussein - avatar
16 Respostas
+ 6
SELECT*FROM Cakes ORDER BY calories LIMIT 3;
19th Jul 2022, 9:50 AM
Rukhsana Parveen
Rukhsana Parveen - avatar
+ 3
A local bakery creates unique cake sets. Each cake set contains three different cakes. Š¢oday a customer want a cake set that has minimal calories. Write a query to sort the cakes by calorie count and select the first 3 cakes from the list to offer the customer. Ans:- SELECT * FROM Cakes ORDER BY Calories LIMIT 3;
11th Feb 2022, 4:34 PM
Husain Ali Ansari
0
SELECT * FROM cakes ORDER BY calories LIMIT 3;
19th Sep 2022, 3:49 AM
Hossein Nasibi
Hossein Nasibi - avatar
0
SELECT * FROM cakes ORDER BY calories LIMIT 3;
23rd Nov 2022, 3:28 PM
Mohamed Bouziane
Mohamed Bouziane - avatar
0
SELECT * FROM cakes ORDER BY calories LIMIT 3 ;
27th Nov 2022, 6:01 AM
Mohammed Moin Shaikh
0
@RUKHSANA PRAVEEN Can you please tell why ORDER BY is written before LIMIT?
7th Dec 2022, 3:16 PM
šŸ”„Ā©šŸšŸŽšŸšŸ’ š’šŒšŽšŠš˜ šŸ”„
šŸ”„Ā©šŸšŸŽšŸšŸ’ š’šŒšŽšŠš˜ šŸ”„ - avatar
0
Correct Answer:- SELECT*FROM Cakes ORDER BY calories LIMIT 3;
9th Mar 2023, 4:54 AM
Budhabhushan Waghmare
Budhabhushan Waghmare - avatar
- 1
SELECT* FROM Cakes ORDER By calories LIMIT 3 ;
30th Jan 2022, 6:25 PM
Avrian Shandy
Avrian Shandy - avatar
- 1
SELECT* FROM Cakes ORDER By calories LIMIT 3 ;
23rd Jul 2022, 11:46 AM
Ash Ketchum
- 1
Table important give attention! SELECT name, calories from cakes ORDER by calories ASC LIMIT 3 ;
15th Aug 2022, 5:34 PM
Ali Gider
- 2
pasant Hussein calories is a table name then how it could be use in ORDER BY? There is table name Cakes not Calories. SELECT * FROM Cakes ORDER BY Calories LIMIT 3;
9th Jun 2021, 11:08 AM
AĶ¢J
AĶ¢J - avatar
- 2
Thanks alot šŸ¤
9th Jun 2021, 11:16 AM
pasant Hussein
pasant Hussein - avatar
- 2
Select Name,Calories from Cakes order by Calories limit 3;
25th Jun 2021, 8:57 AM
Shanmuga Priya
Shanmuga Priya - avatar
- 2
SELECT* FROM Cakes ORDER By calories LIMIT 3 ;
26th Dec 2021, 2:05 PM
Nabila Muftia Ma'ruf Kartono
Nabila Muftia Ma'ruf Kartono - avatar
- 2
SELECT * FROM Cakes ORDER BY Calories LIMIT 3;
15th Apr 2022, 8:12 AM
Melissa Orantes
- 4
SELECT* FROM Cakes ORDER By calories LIMIT 3 ;
12th Dec 2021, 3:20 PM
Musaitha Haani 421425890 s92065890