0% found this document useful (0 votes)
1K views1 page

PG Program in Analytics: SQL Exam Questions Time: 1 HR

This document contains 10 SQL exam questions covering topics like: 1) Querying customer data including grade and sellers from multiple tables. 2) Querying order data to find the salesman with the maximum commission. 3) Retrieving specific fields from the orders table where the salesman's city is Nagpur. 4) Creating a report with the latest order dates last and including total purchase amount and commission. 5) Retrieving order data for sellers where the purchase amount is greater than average. 6) Determining the 5th highest purchase amount from the orders table. 7) Defining entities and relationships. 8) Querying customer data and assigning transaction amounts

Uploaded by

vishnuvk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views1 page

PG Program in Analytics: SQL Exam Questions Time: 1 HR

This document contains 10 SQL exam questions covering topics like: 1) Querying customer data including grade and sellers from multiple tables. 2) Querying order data to find the salesman with the maximum commission. 3) Retrieving specific fields from the orders table where the salesman's city is Nagpur. 4) Creating a report with the latest order dates last and including total purchase amount and commission. 5) Retrieving order data for sellers where the purchase amount is greater than average. 6) Determining the 5th highest purchase amount from the orders table. 7) Defining entities and relationships. 8) Querying customer data and assigning transaction amounts

Uploaded by

vishnuvk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

PG Program in Analytics

SQL Exam Questions Time: 1 hr

1. Write a SQL query which will sort out the customer and their grade
who made an order. Every customer must have a grade and be served
by at least one seller, who belongs to a region.
2. Write a query for extracting the data from the order table for the
salesman who earned the maximum commission.
3. From orders retrieve only ord_no, purch_amt, ord_date, ord_date,
salesman_id where salesman’s city is Nagpur(Note salesman_id of
orderstable must be other than the list within the IN operator.)
4. Write a query to create a report with the order date in such a way
that the latest order date will come last along with the total purchase
amount and the total commission for that date is (15 % for all
sellers).
5. Retrieve ord_no, purch_amt, ord_date, ord_date, salesman_id from
Orders table and display only those sellers whose purch_amt is
greater than average purch_amt.
6. Write a query to determine the Nth (Say N=5) highest purch_amt from
Orders table.
7. What are Entities and Relationships?
8. Print customer_id, account_number and balance_amount, condition
that if balance_amount is nil then assign transaction_amount for
account_type = "Credit Card"

9. Print customer_id, account_number, balance_amount, conPrint


account_number, balance_amount, transaction_amount from
Bank_Account_Details and bank_account_transaction for all the
transactions occurred during march, 2020 and april, 2020.
10. Print all of the customer id, account number, balance_amount,
transaction_amount from bank_cutomer, bank_account_details and
bank_account_transactions tables where excluding all of their
transactions in march, 2020 month .

Confidential and Restricted. Do not Distribute. © Imarticus Learning 1

You might also like