📚 Question Bank Q99 — DBMS
Tags
DBMS
Q99. Marks: +2.0 UGC NET Paper 2: Computer Science 18th June 2024 Shift 1 (Cancelled)
📄 Passage

Answer the following 5 questions based on the passage. 

A company is implementing a new database system to manage its customer information. The database contains tables for customers, orders, products and sales representatives. Each customer can place multiple orders and each order can contain multiple products. Each order is associated with a specific sales representatives who manages the account. The database is designed to improve efficiency in tracking sales and customer interactions.

Which SQL query retrieves the total number of orders placed by a specific customer ? 
1.Select COUNT (*) As total_orders from orders where customer_id = [Customer_ID];
2.Select COUNT (order_id) As total_orders from orders where customer_id = [Customer_ID]; ✓ Correct
3.Select COUNT (DISTINCT order_id) As total_orders from orders Where customer_id = [ Customer_ID];
4.Select SUM (order_Id) As total_orders from orders where customer_id = [Customer_ID];
📄 All “DBMS” questions across papers
🏷 Change Tag for this Question