Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question Of Database SQL 1 Computer PK IDComputer char(6) ComputerBrand varchar(100) ComputerName varchar(100) Computer Price lint 1 Sales PK IDSales char(6) SalesName varchar(100) Sales DateOfBirth

Question Of Database SQL

image text in transcribed

image text in transcribed

1 Computer PK IDComputer char(6) ComputerBrand varchar(100) ComputerName varchar(100) Computer Price lint 1 Sales PK IDSales char(6) SalesName varchar(100) Sales DateOfBirth date SalesGender varchar(100) Sales Contact Number varchar(20) SalesAddress varchar(100) SalesPosition varchar(100) Supplier PK IDSupplier char(6) FK IDComputer char(6) SupplierName varchar(100) SupplierContactNumber varchar(20) SupplierAddress varchar(100) 1 1.. 1.. 1 1 Client PK JIDClient char(6) FK IDComputer char(6) ClientName varchar(100) ClientDateOfBirth date ClientGender varchar(20) ClientContactNumber varchar(20) () ClientAddress varchar(100) 1.. 1..* 1 1.- Buying Transaction PK IDBuying Transaction char(6) FK JIDSales char(6) FK IDSupplier char(6) TransactionDateBuying date BuyingComputer int QuantityOfBuying int Sales Transaction PK IDSales Transaction char(6) FK JIDSales char(6) FK IDClient char(6) TransactionDate Sales date Computer Sold int QuantityOfSales int 1.. From that erd, make a sql query from the statement below. Show (use SELECT) IDClient (get from last number of IDClient), ClientName, ClientGender, and Total Transaction (get from all phone price multiplied of Qty) Show (use SELECT) IDSales, SalesName (get from the sales first name), ClientCount (get from the total Client who transacted with the Sales) and with contraint Sales which has a name of at least 3 words

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

Database Marketing The Ultimate Marketing Tool

Authors: Edward L. Nash

1st Edition

0070460639, 978-0070460638

More Books

Students also viewed these Databases questions