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.单项选择题

A

Select PersonName, cost From Candy C, Likes L Where C.CandyType = L.CandyType And Colour in ('Blue','Red','Green') Order by PersonName;

B

Select PersonName, costs From Candy C, Likes L Where C.CandyType = L.CandyType Order by PersonName and Colour in ('Blue','Red','Green');

C

Select PersonName, cost From Candy C, Likes L Where C.CandyType = L.CandyType And (Colour = 'Blue' or 'Red' or 'Green') Order by Cost;

D

Select PersonName, cost From Candy C, Likes L Where C.CandyType = L.CandyType And (Colour = 'Blue' or 'Red' or 'Green') Order by PersonName;

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!