作者panda555 (我是胖達不是胖呆喲^ ^)
看板Examination
標題[考題] 101普考資處 計概2題
時間Mon Apr 1 00:55:04 2013
31 下列 SQL 語法何者錯誤?
A select count(*) from students
B select MAX(age) from students
C select name, MAX(age) from students
D select name, MAX(age) from students group by name
ANS:(C)
雖然C查出來的結果怪怪的 但應該不至於出錯吧@@
35.
④若以hT
表示生成樹TG之高度(Height),則log2(節點數)<=ht<=節點數
我覺得這句沒錯阿
不是都應該大於LOG(節點數加1嗎)@@
感謝大大們解惑~~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.195.194.244
推 asdd:第一題要group by name 04/01 01:05
推 asdd:第二題log2(節點+1) 在full tree的時候 04/01 01:08
→ carterdunk:log2(節點)+1 ? 04/01 09:38
→ panda555:full tree 不是代表最低嗎@@ 那這樣4的選項沒錯阿 04/02 00:04
→ panda555:grop by name不加的話 只是變成列出所有名子 旁邊多列 04/02 00:05
→ panda555:出所有age的最大值 理論上應該不會出錯阿 04/02 00:06
推 smalldulan:c的語法應該沒錯啊~只是查出來的不是預期的那樣而已啊 06/02 23:38