
แบบทดสอบ SQL เบื้องต้น
Quiz
•
Information Technology (IT)
•
12th Grade
•
Hard
Kalsuda Onwong
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
ดึงข้อมูลลูกค้าทั้งหมดจากเมือง "Bangkok"
SELECT * FROM Customers WHERE city = 'Bangkok';
SELECT * FROM Customers WHERE city = 'Bangkok City';
SELECT * FROM Customers WHERE city = 'BKK';
SELECT * FROM Customers WHERE city = 'Bangkok, Thailand';
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
นับจำนวนคำสั่งซื้อทั้งหมดของลูกค้าแต่ละราย
SELECT customer_id, COUNT(order_id) FROM Orders;
SELECT customer_id, COUNT(order_id) AS total_orders FROM Orders GROUP BY customer_id;
SELECT customer_id, SUM(order_id) AS total_orders FROM Orders GROUP BY customer_id;
SELECT customer_id, COUNT(*) AS total orders FROM Orders;
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
หายอดคำสั่งซื้อสูงสุดและลูกค้าที่เกี่ยวข้อง
SELECT customer_id, MAX(total_amount) FROM Orders;
SELECT customer_id, MAX(total_amount) AS highest_order_amount FROM Orders;
SELECT customer_id, MAX(total_amount) AS highest_order_amount FROM Orders GROUP BY customer_id;
SELECT customer_id, MAX(total_amount) AS highest_order_amount FROM Orders GROUP BY total_amount;
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
คำนวณยอดขายสะสมของแต่ละผลิตภัณฑ์ตามเวลา
SELECT product_id, order_date, SUM(quantity * unit_price) OVER (PARTITION BY product_id ORDER BY order_date) AS running_total FROM Order_Details JOIN Orders ON Order_Details.order_id = Orders.order_id;
SELECT product_id, order_date, SUM(quantity * unit_price) AS running_total FROM Order_Details JOIN Orders ON Order_Details.order_id = Orders.order_id;
SELECT product_id, order_date, SUM(quantity * unit_price) OVER (ORDER BY orde
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
คุณจะใช้ดัชนีอย่างไรเพื่อเพิ่มประสิทธิภาพการค้นหาสินค้าตามชื่อสินค้า?
สร้างดัชนีบนคอลัมน์ product_id
สร้างดัชนีบนคอลัมน์ product_name
สร้างดัชนีบนคอลัมน์ unit_price
สร้างดัชนีบนคอลัมน์ category_id
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
คุณจะใช้วิธีการใดในการป้องกันการเข้าถึงข้อมูลที่ไม่ได้รับอนุญาต?
ใช้การเข้ารหัสข้อมูล (Encryption)
ใช้การตรวจสอบสิทธิ์ (Authentication)
ใช้การกำหนดสิทธิ์ (Authorization)
ถูกทุกข้อ
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
คุณจะเลือกวิธีการสำรองข้อมูลแบบใดและกำหนดตารางเวลาการสำรองข้อมูลอย่างไร?
การสำรองข้อมูลแบบเต็มทุกสัปดาห์ และการสำรองข้อมูลแบบเพิ่มขึ้นทุกวัน
การสำรองข้อมูลแบบเต็มทุกวัน และการสำรองข้อมูลแบบเพิ่มขึ้นทุกสัปดาห์
การสำรองข้อมูลแบบเพิ่มขึ้นทุกสัปดาห์ และการสำรองข้อมูลแบบเต็มทุกเดือน
การสำรองข้อมูลแบบเต็มทุกเดือน และการสำรองข้อมูลแบบเพิ่มขึ้นทุกสัปดาห์
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
CodeHS Principles of Computing 6.8.1 The Internet Quiz
Quiz
•
9th - 12th Grade
15 questions
แข่งขันcodingม.ต้น
Quiz
•
12th Grade - University
15 questions
UML and System Modeling Quiz
Quiz
•
12th Grade - University
10 questions
Tech Support Scams Quiz
Quiz
•
9th - 12th Grade
5 questions
แบบทดสอบสัปดาห์แรก
Quiz
•
3rd Grade - University
15 questions
INFORMATIKA KELAS XII BAB 1
Quiz
•
12th Grade
15 questions
Recap Handout 3 & 4
Quiz
•
6th Grade - University
10 questions
ICT BEL 4
Quiz
•
4th Grade - University
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 Information Technology (IT)
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
11 questions
Halloween Trivia #2
Quiz
•
12th Grade
14 questions
Halloween Fun
Quiz
•
2nd - 12th Grade
8 questions
Veterans Day Quiz
Quiz
•
12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
21 questions
Halloween & Math
Quiz
•
8th - 12th Grade
