Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write SQL statements to retrieve the following: a. Name of all sellers b. Name o

ID: 3822150 • Letter: W

Question

Write SQL statements to retrieve the following:

a. Name of all sellers

b. Name of all buyers

c. Name of sellers who have given a rating of 1

d. Name of buyers who have received a rating of 1

Consider an ONLINE AUCTION database system in which members (buyers and sellers) participate in the sale of items. The data requirements for this system are summarized as follows The online site has members, each of whom is identified by a unique member number and is described by an e-mail address, name, password, home address, and phone number A member may be a buyer or a seller. A buyer has a shipping address recorded in the database. A seller has a bank account number and routing number recorded in the database. Items are placed by a seller for sale and are identified by a unique item number assigned by the system. Items are also described by an item title, a description, starting bid price, bidding increment, the start date of the auction, and the end date of the auction. Items are also categorized based on a fixed classification hierarchy (for example, a modem may be classified as COMPUTER HARDWARE MODEM). Buyers make bids for items they are interested in. Bid price and time of bid are recorded. The bidder at the end of the auction with the highest bid price is declared the winner, and a transaction between buyer and seller may then proceed. The buyer and seller may record feedback regarding their completed transactions. Feedback contains a rating of the other party participating in the transaction (1-10) and a comment.

Explanation / Answer

//SQL QUERY showinng below :

A) SELECT NAME FROM ONLINE_AUCTION WHERE BANK_ACCOUNT_NUMBER='' OR ROUTING_NUMBER='';

B) SELECT NAME FROM ONLINE_AUCTION WHERE EMAIL_ADDRESS='';

Explanation above both query : Query A retrive all the sellers name based on the their account number or the routing number because bothe buyer ans seller are in same database

for Query B is retrive all buyers name based on the their mail address.

C) SELECT NAME FROM ONLINE_AUCTION WHERE GIVEN_RATING=1;

Explanation : QUERY C retrive the name of the all sellers those who given rating at least 1

D) SELECT NAME FROM ONLINE_AUCTION WHERE RECIVED_RATING=1;

Explanation : QUERY D retrive the name of the all buyers those who recived rating 1

Thanks...

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote