Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using the CoffeeDB database, do the following queries (again, label each query with a number, as in --1) 1. Display employee first and last name,

image text in transcribed
Using the CoffeeDB database, do the following queries (again, label each query with a number, as in --1) 1. Display employee first and last name, commission rate and order date for all employees who have a commission rate greater than .08%. Sort by rate, from highest to lowest. 2. Display inventory name and price, and order quantity and price, for all inventory items where the inventory price is greater than the order price. 3. Display consu state population and land area, for those states where the population is less than or mer first and last name, zip, phone, and whether they are favored or not, plus equal to 30 million or for those consumers who are favored. Sort by population, for greatest to smallest. 4. Display employee last name, phone, commission rate, hire date, and order date for all employees who were hired before 1995 and who have a phone number that starts with a 552. 5. Display consumer first and last name, fax, order date, and employee last name and gender, by order date, from newest to oldest. employee serviced), for all employees that were born in the 1960s or for all male employees. for all employees who are male and for all consumers who do not have a fax number. Sort 6. Display first and last name of employee, birth date, first and last name of consumers (the Sort by consumer's credit limit. 7. Display state name (not the 2 letter abbreviation), first and last name of consumer, and order dates, and discount (on orders) for all orders where the discount is between 02 and.08 and where the credit limit of the consumer is greater than 5000. 8. CREATE a VIEW; call it v_employee_order. Include first and last name of employee, order date of order and customer purchase order (customer po). Drop the view at the top of the homework script

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learning PostgreSQL

Authors: Salahaldin Juba, Achim Vannahme, Andrey Volkov

1st Edition

178398919X, 9781783989195

More Books

Students also viewed these Databases questions