• 2022-06-08
    用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

    举一反三

    内容

    • 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中的查询。