10-81 3-1-(c)查询在st1公司于2018年制作的电影中出演的影星
select distinct starName
from StarsIn,Movie
where StarsIn.movieTitle=Movie.title and StarsIn.movieYear=Movie.year and year=2018 and studioName='st1';
10-82 A1-2根据所在国家查找订单信息
select OrderID,CustomerID
from orders
-- where ShipCountry in ('Germany','Brazil','France');
where ShipCountry = 'Germany' or ShipCountry = 'Brazil' or ShipCountry = 'France';
10-83 A1-3查询顾客表中所有不重复的城市
select distinct City
from customers;
10-84 A1-4在产品表中找出库存数量大于50的产品的信息
select ProductID,ProductName
from products
where UnitsInStock>50
10-85 3-1-(d)查询比电影《M1》时间更长的电影
sel

本文档概述了查询2018年ST1公司电影中的演员阵容,以及根据特定国家的订单信息、不重复城市、高库存产品、长时电影、富行政长官、特定名顾客、多PC硬盘容量等场景的SQL查询。展示了信息技术在数据分析和管理中的应用。
最低0.47元/天 解锁文章
2178

被折叠的 条评论
为什么被折叠?



