Candy Database Candy ( CandyType char(15), Cost dec(9,2), Colour char(10)) People ( PersonName char(20), Age smallint, Suburb char(20), PhoneNumber char(10)) Likes ( PersonName char(20), CandyType char(15)) Choose the SQL query that will answer the following question using the Candy Database. Write a report to show the person's name and the cost of the candy they like to buy. Only include blue, red and green candy in the report.Single choice
Select PersonName, cost From Candy C, Likes L Where C.CandyType = L.CandyType And Colour in ('Blue','Red','Green') Order by PersonName;
Select PersonName, costs From Candy C, Likes L Where C.CandyType = L.CandyType Order by PersonName and Colour in ('Blue','Red','Green');
Select PersonName, cost From Candy C, Likes L Where C.CandyType = L.CandyType And (Colour = 'Blue' or 'Red' or 'Green') Order by Cost;
Select PersonName, cost From Candy C, Likes L Where C.CandyType = L.CandyType And (Colour = 'Blue' or 'Red' or 'Green') Order by PersonName;
Log in for full answers
We've collected over 50,000 authentic original questions and detailed explanations from around the globe. Log in now and get instant access to the answers!
Similar Questions
SELECT the SQL statement that will list the first name, last name, city, and country where they work.
Select the SQL statement that will list the first_name, last_name and the name of the department they work for. Be sure to select the syntactically correct statement.
Question1.2 After performing a left join between a customer table and a transaction table, some transaction variables become missing. Which explanation is most appropriate? Binary variables cannot be merged Measures cannot be merged with dimensions Some customers have no matching transactions The dataset has been normalized ResetMaximum marks: 2
The following code is an example of a(n): SELECT Customer_T.CustomerID, Order_T.CustomerID, CustomerName, OrderID FROM Customer_T, Order_T WHERE Customer_T.CustomerID = Order_T. CustomerID;
More Practical Tools for Students Powered by AI Study Helper
Making Your Study Simpler
Join us and instantly unlock extensive past papers & exclusive solutions to get a head start on your studies!