
แบบทดสอบ SQL เบื้องต้น

Quiz
•
Information Technology (IT)
•
12th Grade
•
Hard
Kalsuda Onwong
Used 1+ times
FREE Resource
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
Similar Resources on Wayground
7 questions
Databases - 1.2 Primary Key

Quiz
•
11th Grade - University
10 questions
Understanding Joins in Databases

Quiz
•
12th Grade
15 questions
Quiz de Web: HTML, CSS e JavaScript

Quiz
•
12th Grade
15 questions
codingม.ปลาย

Quiz
•
12th Grade - University
10 questions
การเรียนรู้ด้วยตนเอง

Quiz
•
12th Grade
11 questions
IP Address

Quiz
•
10th Grade - University
10 questions
Microsoft Word

Quiz
•
9th - 12th Grade
10 questions
IT QUIZ

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
10 questions
Impact of 9/11 and the War on Terror

Interactive video
•
10th - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
6 questions
Biography

Quiz
•
4th - 12th Grade
25 questions
ServSafe Foodhandler Part 3 Quiz

Quiz
•
9th - 12th Grade
10 questions
Fact Check Ice Breaker: Two truths and a lie

Quiz
•
5th - 12th Grade
20 questions
Macromolecules

Quiz
•
9th - 12th Grade