Course Solutions Uncategorized (Solved) : Given Three Tables Write Following Queries Customer Custno Custname Custst Custcity Age 1 Q33114805 . . . .

(Solved) : Given Three Tables Write Following Queries Customer Custno Custname Custst Custcity Age 1 Q33114805 . . . .

 

Given the three tables below, write the followingqueries.

Customer

custNo

custName

custSt

custCity

age

1

C1

Olaya St

Jeddah

20

2

C2

Mains St

Riyadh

30

3

C3

Mains Rd

Riyadh

25

4

C4

Mains Rd

Dammam

5

C5

Mains Rd

Riyadh

Product

prodNo

prodName

prodDes

price

100

P0

Food

100

101

P1

healthy Food

100

102

P2

200

103

P3

self_raising flour,80%wheat

300

104

P4

network 80x

300

Order

ordNo

ordDate

custNo

prodNo

quantity

R03010101

01-jan-2003

C01

100

2

R03010203

02-jan-2003

C01

101

1

R03010102

01-jan-2003

C2

102

1

R03010103

01-jan-2003

C343

100

2

R03010301

03-jan-2003

C01

101

1

R03030601

06-mar-2003

C2

100

10

A DDL command to build order table, including allintegrity constraints. Make sure that ordDate value exists andquantity value is always positive.

[0.5 marks]

Ans:

A DML command to answer: How many orders were made bycustomer C01 and how many products pieces did heorder?              

Ans:

A DML command to list customers who have ordered theproduct 100. (Hint: use join)   

Ans:

A DML command to find products with price more thanaverage (Hint: use nested

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : Binary Value Output Y Multiplexer Circuit Shown 13 11 Si Q28059247 . . . .(Solved) : Binary Value Output Y Multiplexer Circuit Shown 13 11 Si Q28059247 . . . .

<p><img alt="What is the binary value being output from Y in the multiplexer circuit shown 13 11? Si" src="https://d2vlcm61l7u1fs.cloudfront.net/media%2F694%2F6945b0cf-8ea1-47ee-9ae2-b442fadc7057%2FphpC33RP3.png" style="height:113px;width:356px;" aria-describedby="d3f"/></p>What is the binary value being output from Y in

(Solved) : Https Blackboardnjcuedu Webapps Assessment Review Reviewjsp Attempt Id 17 1782218xcourse I Q37505674 . . . .(Solved) : Https Blackboardnjcuedu Webapps Assessment Review Reviewjsp Attempt Id 17 1782218xcourse I Q37505674 . . . .

<p dir="ltr"><img src="https://media.cheggcdn.com/media%2Fa11%2Fa11ae60d-f18d-475d-a1a9-d0118efca259%2Fimage.png" alt="https//blackboard.njcu.edu/webapps/assessment/review/review.jsp?attempt id- 17 17822.18xcourse id- 24937 18xcontent id-824703" aria-describedby="d3f"/></p><p dir="ltr"/><p dir="ltr"><img src="https://media.cheggcdn.com/media%2F847%2F8477e057-1450-41cc-8252-e4c69e52a36d%2Fimage.png" alt="ackboard.njcu.edu/webapps/assessment/review/review.jsp?attempt id--1717822 1&course id- 24937 18content id 824703.1 Inbox (50" aria-describedby="d3g"/></p><p dir="ltr"/>https//blackboard.njcu.edu/webapps/assessment/review/review.jsp?attempt id- 17 17822.18xcourse