
Câu hỏi SQL cơ bản
Authored by Thành Đỗ Văn
Mathematics
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
27 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
sử dụng câu lệnh SQL để thực hiện công việc: "Tăng lương cho những nhân viên nữ lên 5%"
UPDATE luong = luong*1.05 WHERE gioitinh =nữ
UPDATE luong SET luong = luong*1.05 WHERE gioitinh ='nữ'
UPDATE luong SET luong = luong*1.05 WHERE gioitinh =nữ
UPDATE luong = luong*1.05 WHERE gioitinh ='nữ'
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh thực hiện thay đổi dữ liệu cột F sang kiểu Nvarchar trong bảng R như sau:
ALTER TABLE FROM R CHANGE COLUNM F Integer;
ALTER TABLE R ALTER COLUNM F Nvarchar;
ALTER TABLE FROM R INSERT INTO F Integer
ALTER TABLE R INSERT INTO F Nvarchar
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho quan hệ sau: NV(MaNV, TenNV,Congviec,Luong). Đưa ra tổng lương theo từng công việc?
Select Congviec, Sum(luong) From NV Where Congviec
Select Sum(luong) From NV Group by Congviec
Select MaNV Sum(luong) From NV Group by Congviec
Select Congviec, Sum(luong) From NV Group by Congviec
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho quan hệ: SINHVIEN(MSSV,HoTen, Gioitinh, NamSinh,QueQuan, HocLuc) Dùng ngôn ngữ SQL cho biết các sinh viên nữ trên 20 tuổi và có học lực loại giỏi(>=8.0)?
Select HoTen From Sinhvien Where Gioitinh='Nữ' and 2023 - NamSinh>20 or HocLuc>=7.0
Select HoTen From Sinhvien Where Gioitinh='Nữ' and 2023-NamSinh>20 AND HocLuc>=8.0
Select HoTen From Sinhvien Where Gioitinh='Nữ' and 2023-NamSinh>20 OR HocLuc>=8.0
Select HoTen From Sinhvien Where Gioitinh='Nữ' and 2023-NamSinh>20 AND HocLuc= kha
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho các quan hệ sau: MONHOC(MSMonHoc, TenMonHoc, SOTINCHI, TINHCHAT) SV(MaSV, HOTEN, NGAYSINH, LOP) DIEM(MaSV, MSMonHoc, DIEMTHI) Hãy cho biết điểm của SV theo từng mã môn học?
Select MaSV,HOTEN From SV,DIEM Where SV.MaSV =DIEM.MaSV Group By MSmonhoc
Select MaSV,Hoten From SV,DIEM Group By MSmonhoc
Select MaSV,hoten From SV,DIEM Where SV.MaSV =DIEM.MaSV
Select HOTEN From SV,DIEM Where SV.MaSV =DIEM.MaSV Group By MSmonhoc
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dạng cấp quyền truy xuất trong SQL
GRANT ON TO;
GRANT ON TO,
GRANT ON TO
GRANT READ ON R
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho quan hệ NHANVIEN(MaNV,Hoten,Congviec,Luong,MaDonvi). Đưa ra thông tin nhân viên có lương không là: 3000 hoặc 34000 hoặc 45000
SELECT * FROM salary WHERE luong NOT IN (3000, 34000, 45000)
SELECT * FROM salary WHERE luong between (3000, 34000, 45000)
SELECT MaNV, Hoten FROM salary
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
22 questions
AP Stats Confidence Intervals for a Mean
Quiz
•
11th Grade - University
23 questions
Distance, Rate, Time
Quiz
•
9th Grade - University
24 questions
Decimals on Number line, Compare, Order with or without Models
Quiz
•
4th Grade - University
25 questions
Bias and Valid Statements
Quiz
•
5th Grade - University
24 questions
Unit Circle Review
Quiz
•
10th Grade - University
23 questions
MMW-Midterm Exam (NU-Fairview)
Quiz
•
University
22 questions
5th Grade CASE 2 Review
Quiz
•
5th Grade - University
22 questions
Exam #1 Simple Past (Questions about famous people that are dead
Quiz
•
6th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Mathematics
7 questions
Introduction to Fractions
Interactive video
•
1st Grade - University
14 questions
Transformations of Quadratic Functions
Quiz
•
KG - University
16 questions
Say it with Symbols Review
Quiz
•
7th Grade - University
20 questions
Special Right Triangles
Quiz
•
8th Grade - University
7 questions
Learning Check: 1 step Equations
Quiz
•
9th Grade - University
17 questions
Differential Equations Review
Quiz
•
11th Grade - University