Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started