99 普考 計算機概要 - 普考
By Michael
at 2013-07-03T15:16
at 2013-07-03T15:16
Table of Contents
39.資料庫中有兩個資料表IN和NM如下,其中IN的主要鍵值為sid,NM的主要鍵值為sname。
試問IN join NM,結果會有多少筆資料?
IN
sid major
---
123 CS
456 CS
NM
Sname major
-----
John CS
Chris CS
(A)2 (B)3 (C)4 (D)5
答案是(C)
我以為可以這樣寫
SELECT *
FROM IN INNER JOIN NM ON IN.major=NM.major
看能不能合併成2筆
是哪裡搞錯了 @@
--
試問IN join NM,結果會有多少筆資料?
IN
sid major
---
123 CS
456 CS
NM
Sname major
-----
John CS
Chris CS
(A)2 (B)3 (C)4 (D)5
答案是(C)
我以為可以這樣寫
SELECT *
FROM IN INNER JOIN NM ON IN.major=NM.major
看能不能合併成2筆
是哪裡搞錯了 @@
--
Tags:
普考
All Comments
By Zora
at 2013-07-06T20:04
at 2013-07-06T20:04
By Kama
at 2013-07-11T14:17
at 2013-07-11T14:17
By Heather
at 2013-07-15T10:50
at 2013-07-15T10:50
Related Posts
電工機械
By Andy
at 2013-07-03T10:09
at 2013-07-03T10:09
計概-布林涵式_超8碼_運算式 [100原民]
By Steve
at 2013-07-03T09:47
at 2013-07-03T09:47
102鐵特員級+97普考 基本電學
By Regina
at 2013-07-02T15:20
at 2013-07-02T15:20
小弟的免費線上測驗網站passpass.cc
By Regina
at 2013-07-02T13:49
at 2013-07-02T13:49
公職抉擇 資訊處理或一般行政
By Caroline
at 2013-07-02T01:49
at 2013-07-02T01:49