Question: Please do the following Queries for the data in classicmodels database: 1 - Display contact First name and contact Last name for customers after sorting
Please do the following Queries for the data in classicmodels database:
Display contact First name and contact Last name for customers after sorting the
customers by their contact Last name in ascending order.
selects the order line items orderNumber orderlinenumber from
the orderdetails table. Also, display the subtotal quantityOrdered priceEach for each
line item and sorts the result set based on the subtotal descending
Display unique last names from employees table ordered by last name.
Display customerNumber, customerName and creditLimit for getting the top five customers
who have the highest creditLimit.
Find customer Name, customer country, sales representative employee number from
customers who do not have a sales representative.
For each order status, display status and count of orders have this status.
For Each order number in order details table, Display order number, sum of quantity
ordered itemsCount and sum of priceEach quantityOrdered as total. With condition
total greater than
Display product code, product name and text description for product.
Find customer number, customer name, order status and order number, for customer
with their orders handle customers that dont have orders also
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
