Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Database SQL Use Group By 1 Computer PK IDComputer char(6) ComputerBrand varchar(100) ComputerName varchar(100) Computer Price int Sales 1 Supplier PK IDSupplier char(6) FK IDComputer

Database SQL Use Group By

image text in transcribed

image text in transcribed

1 Computer PK IDComputer char(6) ComputerBrand varchar(100) ComputerName varchar(100) Computer Price int Sales 1 Supplier PK IDSupplier char(6) FK IDComputer char(6) SupplierName varchar(100) SupplierContactNumber varchar(20) SupplierAddress varchar(100) 1 1... PK IDSales char(6) Sales Name varchar(100) SalesDateOfBirth date SalesGender varchar(100) Sales Contact Number varchar(20) SalesAddress varchar(100) Sales Position varchar(100) 1. 1 1 Client PK IDClient char(6) FK IDComputer char(6) ClientName varchar(100) ClientDateOfBirth date ClientGender varchar(20) ClientContact Number varchar(20) ClientAddress varchar(100) 1.. 1. * 1 1.- Buying Transaction PK IDBuying Transaction char(6) FK IDSales char(6) FK ID Supplier char(6) TransactionDateBuying date Buying Computer 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

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

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions