Câu hỏi về SQL
Quiz
•
Computers
•
11th Grade
•
Easy
Nguyễn Anh
Used 1+ times
FREE Resource
Enhance your content in a minute
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh SQL nào dùng để kết hợp kết quả của hai truy vấn với điều kiện mỗi bản ghi chỉ xuất hiện một lần trong kết quả cuối cùng?
JOIN
UNION
INNER JOIN
INTERSECT
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh SQL nào dưới đây là đúng để chọn các bản ghi từ bảng employees với salary lớn hơn 5000 và theo thứ tự giảm dần của salary?
SELECT * FROM employees WHERE salary > 5000 ORDER BY salary ASC;
SELECT * FROM employees WHERE salary > 5000 ORDER BY salary DESC;
SELECT * FROM employees ORDER BY salary DESC WHERE salary > 5000;
SELECT * FROM employees ORDER BY salary ASC HAVING salary > 5000;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh nào trong SQL dùng để chọn các bản ghi không có giá trị NULL?
SELECT * FROM students WHERE age IS NOT NULL;
SELECT * FROM students WHERE age != NULL;
SELECT * FROM students WHERE age = NULL;
SELECT * FROM students WHERE age <> NULL;
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Để tìm tất cả các bản ghi từ bảng students(id, ten, points) mà có điểm lớn hơn 8, câu lệnh SQL đúng là gì?
SELECT * FROM students WHERE points > 8;
SELECT * FROM students WHERE points = 8;
SELECT id, ten, points FROM students WHERE points > 8;
SELECT * FROM students HAVING points > 8;
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Bảng có các cột: hocsinh(ID, Name, diem)
Câu lệnh SQL để lấy tất cả các cột từ bảng học sinh: SELECT * FROM Table hocsinh;
Câu lệnh lọc ra những học sinh có điểm lớn hơn 8: SELECT * FROM hocsinh WHERE diem = 8;
Xoá một học sinh có mã (id) là 5 thì: DELETE FROM hocsinh WHERE ID=5;
Thêm một học sinh có mã (id) là 10 thì: INSERT hocsinh VALUES(10, 'Nguyễn Duy Anh', 9)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh SQL nào dưới đây được sử dụng để lấy tất cả các cột từ bảng students?
SELECT * FROM students;
SELECT ALL FROM students;
SELECT columns FROM students;
SELECT students FROM *;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh nào dưới đây được sử dụng để thay đổi giá trị của cột age cho tất cả các sinh viên có id = 1 trong bảng students?
UPDATE students SET age = 20 WHERE id = 1;
UPDATE students SET age = 20;
UPDATE students SET age = 20 WHERE id = 2;
UPDATE students WHERE id = 1 SET age = 20;
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Grade 11 Term 4 Practice 2
Quiz
•
11th Grade
10 questions
Keyboarding Terms
Quiz
•
9th - 12th Grade
10 questions
8525 AQA GCSE CS 3.7.1 Introduction to Relational Data
Quiz
•
11th Grade
10 questions
Word basics
Quiz
•
8th - 12th Grade
16 questions
Systemy baz danych - podstawowe pojęcia.
Quiz
•
University
15 questions
ôn tập chỉnh ảnh và làm phim
Quiz
•
11th Grade
16 questions
Quiz on List and Tuples
Quiz
•
University
16 questions
Kod Arahan
Quiz
•
9th - 11th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
20 questions
Halloween movies trivia
Quiz
•
7th - 12th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
14 questions
Halloween Fun
Quiz
•
2nd - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
21 questions
Halloween & Math
Quiz
•
8th - 12th Grade
13 questions
Halloween Movie Trivia
Quiz
•
9th - 12th Grade
7 questions
Halloween - Myths & Legends
Interactive video
•
10th - 12th Grade
