
แบบทดสอบ 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
10 questions
การสืบค้นเพื่อหาแหล่งข้อมูล

Quiz
•
9th - 12th Grade
10 questions
วิธีการปฏิบัติตัวเมื่อเกิดไฟดับ

Quiz
•
9th - 12th Grade
13 questions
โมบายแอพ และ เฟรมเวิร์ค

Quiz
•
12th Grade
10 questions
ปลายภาค interface

Quiz
•
12th Grade
15 questions
Quiz on Operators and SQL Statements

Quiz
•
12th Grade
10 questions
12A2 test 1 HK2

Quiz
•
12th Grade
13 questions
Introduction to Databases Quiz

Quiz
•
12th Grade
8 questions
G12 - ÔN Đ/S

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Video Games

Quiz
•
6th - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
13 questions
BizInnovator Startup - Experience and Overview

Quiz
•
9th - 12th Grade
16 questions
AP Biology: Unit 1 Review (CED)

Quiz
•
9th - 12th Grade
20 questions
Parallel lines and transversals

Quiz
•
9th - 12th Grade
9 questions
Geometry and Trigonometry Concepts

Interactive video
•
9th - 12th Grade
10 questions
Angle Relationships with Parallel Lines and a Transversal

Quiz
•
9th - 12th Grade