intTypePromotion=1
zunia.vn Tuyển sinh 2024 dành cho Gen-Z zunia.vn zunia.vn
ADSENSE

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

Chia sẻ: Meomeo Nguyen | Ngày: | Loại File: PDF | Số trang:6

210
lượt xem
41
download
 
  Download Vui lòng tải xuống để xem tài liệu đầy đủ

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ả

Chủ đề:
Lưu

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

  1. 10. The ____ set operator will show all rows common to both tables A and B. (a) intersection (b) union (c) difference (d) product 11. Using the product operator, if table A has 2 rows and table B has 4 rows, the number of rows in the product of these two tables is: (a) 4. (b) 8. (c) 16. (d) 20.
  2. 12. Suppose relation R(A,B,C,D,E) has the following functional dependencies: 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 are given the follwoing dependencies: L → V; VO → Y and YB → L. The number of superkeys of Q is: (not superkeys) (a).2
  3. (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 are Integers.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) 3
  4. d) 4 15. 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
  5. b) 3 c) 4 d) 6 e) None of the above 18. Use the following tables and data..All of the fields are Integers.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;
  6. a) 1 b) 2 c) 3 d) 4 19. How many records does the following SQL example return? SELECT COUNT(*) FROM R, S WHERE R.A=S.D; a) 0 b) 1 c) 2 d) 4
ADSENSE

CÓ THỂ BẠN MUỐN DOWNLOAD

 

Đồng bộ tài khoản
2=>2