
ข้อสอบ SQL
Quiz
•
Computers
•
8th Grade
•
Practice Problem
•
Hard
ชฎาธาร สาวะรีพล
Used 5+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
ข้อใดต่อไปนี้ใช้ในการเลือกข้อมูลทั้งหมดจากตาราง users?
SELECT username, password FROM users
SELECT * FROM users
SELECT ALL FROM users
SELECT * FROM users WHERE username='*'
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
หากต้องการเพิ่มผู้ใช้ใหม่ในตาราง users ข้อใดต่อไปนี้เป็นคำสั่งที่ถูกต้อง?
INSERT INTO users (username, password, role) VALUES ('user1', 'password1', 'member')
ADD INTO users VALUES ('user1', 'password1', 'member')
CREATE INTO users (username, password, role) VALUES ('user1', 'password1', 'member')
UPDATE users SET username='user1', password='password1', role='member'
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
คำสั่งใดใช้เพื่ออัพเดทข้อมูลในตาราง documents?
CHANGE documents SET title='New Title' WHERE id=1
MODIFY documents SET title='New Title' WHERE id=1
UPDATE documents SET title='New Title' WHERE id=1
REPLACE documents SET title='New Title' WHERE id=1
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
ข้อใดคือคำสั่งที่ใช้ในการลบผู้ใช้จากตาราง users ที่มี id เท่ากับ 3?
DELETE users WHERE id=3
REMOVE FROM users WHERE id=3
DELETE FROM users WHERE id=3
DROP FROM users WHERE id=3
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
หากต้องการค้นหาผู้ใช้ที่มีชื่อว่า 'admin' ข้อใดคือคำสั่ง SQL ที่ถูกต้อง?
SELECT * FROM users WHERE username LIKE 'admin'
SELECT * FROM users WHERE username = 'admin'
SELECT * FROM users WHERE username IS 'admin'
SELECT * FROM users WHERE username CONTAINS 'admin'
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
คำสั่ง SQL ใดที่ใช้สำหรับการค้นหาข้อมูลที่มีคำว่า 'project' ในช่อง description ของตาราง documents?
SELECT * FROM documents WHERE description = '%project%'
SELECT * FROM documents WHERE description LIKE '%project%'
SELECT * FROM documents WHERE description CONTAINS '%project%'
SELECT * FROM documents WHERE description IN '%project%'
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
ในการตรวจสอบว่ารหัสผ่านของผู้ใช้ตรงกับที่เก็บไว้ในฐานข้อมูล คำสั่งใดที่ใช้ในการตรวจสอบนี้?
SELECT password FROM users WHERE username='admin'
SELECT * FROM users WHERE password=HASH('admin_password')
SELECT * FROM users WHERE username='admin' AND password='admin_password'
SELECT * FROM users WHERE username='admin' AND password=PASSWORD('admin_password')
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
15 questions
แนวข้อสอบ ออกแบบเทคโนโลยี ม.3
Quiz
•
6th - 8th Grade
20 questions
แบบทดสอบก่อนเรียน หน่วยการเรียนรู้ที่ 3 เทคโนโลยีเพิ่มมูลค่า
Quiz
•
8th Grade
15 questions
عمارة الحاسب
Quiz
•
5th - 12th Grade
20 questions
Administrasi Sistem jaringan KD1
Quiz
•
1st - 10th Grade
20 questions
แบบทดสอบปลายภาคเรียนที่ 2/66
Quiz
•
6th - 8th Grade
20 questions
แบบทดสอบปลายภาคคอมพิวเตอร์
Quiz
•
6th - 8th Grade
16 questions
Y8 Spring Assessment
Quiz
•
8th Grade
20 questions
CS-9 Chapter-2 Types of Computer Part1: Rabin Ghimire
Quiz
•
8th - 9th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
