Danh mục

Đề thi trắc nghiệm cơ sở dữ liệu trường Cao Thắng - phần 4

Số trang: 6      Loại file: pdf      Dung lượng: 335.66 KB      Lượt xem: 12      Lượt tải: 0    
Hoai.2512

Hỗ trợ phí lưu trữ khi tải xuống: 1,000 VND Tải xuống file đầy đủ (6 trang) 0
Xem trước 2 trang đầu tiên của tài liệu này:

Thông tin tài liệu:

Tham khảo tài liệu đề thi trắc nghiệm cơ sở dữ liệu trường cao thắng - phần 4, công nghệ thông tin, cơ sở dữ liệu phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả
Nội dung trích xuất từ tài liệu:
Đề thi trắc nghiệm cơ sở dữ liệu trường Cao Thắng - phần 4 10. The ____ set operator will show all rows common to bothtables A and B. (a) intersection (b) union (c) difference (d) product 11. Using the product operator, if table A has 2 rows and table Bhas 4 rows, the number of rows in the product of these two tables is: (a) 4. (b) 8. (c) 16. (d) 20. 12. Suppose relation R(A,B,C,D,E) has the following functionaldependencies: A→ B B→ C BC → A A→ D D→ E Which of the following is not a key? (a) A (b) E (c) B (d) D (e) (b) and (d) 13. Consider a relation Q with five attributes L V O B Y. You aregiven the follwoing dependencies: L → V; VO → Y and YB → L. The number of superkeys of Q is: (not superkeys) (a).2 (b).3 (c),4 (d).5 Giáo Trình Cơ Sở Dữ Liệu Trang 97 Biên soạn : Phan Tấn Quốc- Trường Cao Đẳng Kỹ Thuật Cao Thắng 14. Use the following tables and data,All of the fields areIntegers.The table names are Q ABCD 1234 1357 2345 2468 5678 How many records does the following SQL example return? SELECT * FROM Q WHERE A>=5 OR D>=7; a) 1 b) 2 c) 3d) 415. How many records does the following SQL example return?SELECT sum(A) AS S FROM Q GROUP BY A;16. The SQL below will return one value. What is it?17. How many records does the following SQL example return?SELECT count(*) FROM Q GROUP BY A, B;a) 2 b) 3 c) 4 d) 6 e) None of the above 18. Use the following tables and data..All of the fields areIntegers.The table names are R and How many records does the following SQL example return? SELECT COUNT(*) FROM R, S WHERE R.A=S.D OR R.B=S.E;a) 1b) 2c) 3d) 419. How many records does the following SQL example return?SELECT COUNT(*) FROM R, S WHERE R.A=S.D;a) 0b) 1c) 2d) 4

Tài liệu được xem nhiều: