Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CAN ADD A PRICE FIELD IN CAR TABLE Customer CustomerID CustomerName CustomerGender CustomerEmail CustomerPhone Vendor TransactionHeader Staff VendorID TransactionID StaffID VendorName StaffID StaffName VendorEmail VendorID

image text in transcribed

CAN ADD A PRICE FIELD IN CAR TABLE

image text in transcribed

Customer CustomerID CustomerName CustomerGender CustomerEmail CustomerPhone Vendor TransactionHeader Staff VendorID TransactionID StaffID VendorName StaffID StaffName VendorEmail VendorID StaffGender VendorPhone CustomerID StaffEmail TransactionDate StaffAddress StaffPhone CarTypeID Car Transaction Detail CarTypeID Carld TransactionID TypeName CarTypeID CarlD CarPower Quantity 1. Display CustomerName, StaffName, and Total Transaction (obtained from the total number of sales) for every sales which occurs in April and Customer whose name is more than 1 word. 2. Display CarTypeName and Total Price (obtained from Purchase Price times Quantity and begins with $') for every type which name contains 'o' and Total Price is greater than 12000. 3. Display Date (obtained from PurchaseDate in dd Mon yyyy' format), VendorName, Total Car ( obtained from the count of car), and Total Quantity (obtained from the sum of quantity of all products) for every purchase transaction which was sold by a vendor whose name has more than 4 characters and the transaction occurs in March. 4. Display StaffName, CarName, Total Car (obtained from the count of car), Total Price (obtained from Sales Price times Quantity and begins with '$ ') for every transaction which handled by a Staff whose gender is Female and Total Car is more than 1 car, then sort the result based on Total Price in Descending. 5. Display VendorName, VendorEmail, VendorAddress, CarName, and CarPower (ends with ' Horse Power') for every Vendor who sells the cheapest car and Vendor Address starts with 'C' characters, then sort the result based on VendorName in Ascending order. The duplicate data must be displayed once. (alias subquery)

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

Step: 3

blur-text-image

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

DB2 9 For Linux UNIX And Windows Advanced Database Administration Certification Certification Study Guide

Authors: Roger E. Sanders, Dwaine R Snow

1st Edition

1583470808, 978-1583470800

More Books

Students also viewed these Databases questions

Question

1. Identify all the inputs to the EPOS system.

Answered: 1 week ago

Question

What is topology? Explain with examples

Answered: 1 week ago

Question

What is linear transformation? Define with example

Answered: 1 week ago

Question

Question What is the advantage of a voluntary DBO plan?

Answered: 1 week ago