ดึงข้อมูลลูกค้าทั้งหมดจากเมือง "Bangkok"

แบบทดสอบ 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
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 Quizizz
10 questions
มัลติมีเดีย 2

Quiz
•
6th Grade - University
10 questions
นวัตกรรมที่ใช้ปัญญาประดิษฐ์

Quiz
•
12th Grade
8 questions
แบบทดสอบก่อนเริ่มอบรม ICT Next Gen

Quiz
•
9th - 12th Grade
10 questions
BÀI 21. CẬP NHẬT VÀ TRUY XUẤT DỮ LIỆU CÁC BẢNG

Quiz
•
12th Grade
10 questions
แก้ ร (รอบ 2) ม.3-3.3 การรวบรวมข้อมูลและคัดเลือกแนวคิด

Quiz
•
9th - 12th Grade
10 questions
Cyber security KUTEST

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

Quiz
•
9th - 12th Grade
10 questions
การสืบค้นเพื่อหาแหล่งข้อมูล

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade