
แบบทดสอบ SQL เบื้องต้น
Authored by Kalsuda Onwong
Information Technology (IT)
12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
คุณจะเลือกวิธีการสำรองข้อมูลแบบใดและกำหนดตารางเวลาการสำรองข้อมูลอย่างไร?
การสำรองข้อมูลแบบเต็มทุกสัปดาห์ และการสำรองข้อมูลแบบเพิ่มขึ้นทุกวัน
การสำรองข้อมูลแบบเต็มทุกวัน และการสำรองข้อมูลแบบเพิ่มขึ้นทุกสัปดาห์
การสำรองข้อมูลแบบเพิ่มขึ้นทุกสัปดาห์ และการสำรองข้อมูลแบบเต็มทุกเดือน
การสำรองข้อมูลแบบเต็มทุกเดือน และการสำรองข้อมูลแบบเพิ่มขึ้นทุกสัปดาห์
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
15 questions
INFORMATIKA KELAS XII BAB 1
Quiz
•
12th Grade
15 questions
Recap Handout 3 & 4
Quiz
•
6th Grade - University
15 questions
แข่งขันcodingม.ต้น
Quiz
•
12th Grade - University
10 questions
ICT BEL 4
Quiz
•
4th Grade - University
15 questions
CodeHS Principles of Computing 6.8.1 The Internet Quiz
Quiz
•
9th - 12th Grade
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
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
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
27 questions
7.2.3 Quadrilateral Properties
Quiz
•
9th - 12th Grade
7 questions
Amoeba Sisters Dihybrid Cross Punnett Square
Interactive video
•
9th - 12th Grade
10 questions
The Holocaust: Historical Overview
Interactive video
•
9th - 12th Grade
10 questions
Key Features of Quadratic Functions
Interactive video
•
8th - 12th Grade
11 questions
Exponent Quotient Rules A1 U7
Quiz
•
9th - 12th Grade