用SQL语句创建教材第2章习题中的4个表:客户表Customers、代理人表Agents、产品表Products和订单表Orders。如下为第3个操作语句。在“()”内填答案。创建产品表Products。(____) (____) (____)(Pid (____)(4) (____) (____),Pname varchar(20) not ((____)),(____) (____),Price (____)(2))
Create# table# Products# char# primary# key# "null"# Quantity# int# float
举一反三
- 用SQL语句创建教材第2章习题中的4个表:客户表Customers、代理人表Agents、产品表Products和订单表Orders。如下为第2个操作语句。在“(____)”内填答案。创建代理人表Agents。(____) (____) (____)((____) (____)(4) (____) (____),Aname varchar(20) (____) (____),City varchar(20) not null)
- 用SQL语句创建教材第2章习题中的4个表:客户表Customers、代理人表Agents、产品表Products和订单表Orders。如下为第1个操作语句。在“(____)”内填答案。(____) (____) (____)(Cid char(6) (____) (____),(____) varchar(20) (____) (____),City varchar(20) (____) (____))
- 用SQL语句创建如下表并插入几条记录, [br][/br]客户表Customers(Cid char(4),Cname varchar(20),City varchar(10)), [br][/br]代理人表 Agents(Aid char(3),Aname varchar(10),City varchar(10)), [br][/br]产品表 Products(Pid char(3),Pname varchar(10),Quantity int,Price real(4,2)), [br][/br]订单表 Orders(Ord_no char(4),Month int,Cid char(4),Aid char(3),Pid char(3),Qty int,Amount real(7,2))
- 针对教材中的4个表(Orders、Products、Customers、Agents)用SQL语句完成各项操作,在“()”内填答案。查询这样的订单号,该订单的订货数量大于3月份所有订单的订货数量。select (____) from (____)(____) (____) >; (____) (select (____) from (____)(____) (____) = (____))
- 针对教材中的4个表(Orders、Products、Customers、Agents)用SQL语句完成各项操作,在“()”内填答案。查询这样的订单号,该订单的订货数量大于3月份所有订单的订货数量。select (____) from (____)(____) (____) > (____) (select (____) from (____)(____) (____) = (____))
内容
- 0
用SQL语句实现教材第2章综合题第4题中的7个查询。完成第3个查询。在“(____)”内填答案。select Cname from Customers (____) Orders (____) Products pwhere c. Cid=o. Cid and p. Cid=o. Cid and Price=(____)(____) by Cnamehaving (____) > 500
- 1
用 sQL 语句建立第二章习题 5 中的 4 个表
- 2
若用如下的SQL语句创建一个student表:CREATETABLEstudent(NOC(4)NOTNULL,NAMEC(8)NOTNULL,SEXC(2),AGEN(2));可以插入到student表中的是
- 3
顾客表Customers和订单表Orders均包含订单ID字段CustomerID,仅有Customers表内包含顾客联系方式Telephone,且仅有订单表内包含订单号OrderID,为查询Order表内OrderID为‘10249’的顾客联系方式,请写出嵌套查询的SQL语句。
- 4
用SQL语句建立第2章习题6中的4个表:针对建立的4个表用SQL完成第2章习题6中的查询。