多做题,通过考试没问题!

IBM认证考试

睦霖题库>其他计算机考试>IBM认证考试

Given that tables T1 and T2 contain the following rows: Table T1: C1 C2 1 4 1 3 1 2 Table T2: C1 C2 1 1 1 2 1 3 Which of the following queries will return only those rows that exist in both T1 and T2?()

  • A、SELECT * FROM t1 UNION SELECT * FROM t2
  • B、SELECT * FROM t1 UNION DISTINCT SELECT * FROM t2
  • C、SELECT * FROM t1 INTERSECT SELECT * FROM t2
  • D、SELECT * FROM t1 WHERE (c1,c2)= (SELECT c1,c2 FROM t2)
正确答案:C
答案解析:
进入题库查看解析

微信扫一扫手机做题