Question

In: Computer Science

Final Project must be included HER, NER, Table diagrams and SQL statements. The final project is...

Final Project must be included HER, NER, Table diagrams and SQL statements.

The final project is about developing an auction Web site. The details are as follows:

BA is an online auction Web site. People can buy and sell items in this Web site. Buyers are people who like to buy items, and sellers are people who like to sell items.

•       Each seller can sell items.

•       Each item has a bidding start time, an end time, and an owner. Sellers are owners of their item. The start time and end time include the date as well.

•       Each seller has a name, contact information, and credit card information. They also have a user name and a password.

•       Contact information consists of an address, an email, and a telephone.

•       An address consists of a street number and name, city, state, and zip code.

•       Credit card information consists of owner name, card number, and expiration date.

•       Each item has a name, condition, an initial price, a description, quantity, one or more pictures, and an owner.

•       The condition could be New, Refurbished, or Explained. If the condition of an item is set to Explained, the seller should explain about the item condition in the item description.

•       Each buyer has a name, contact information, and credit card information. They also have a user name and a password.

•       When buyers login to Web site, they can go to the list of all available items and then go to the item detail page. Buyers can also search for an item. The application will search through item names for the search phrase.

•       Buyers can bid on items. Once a bid is made, buyers are accountable for their bid. In other words, buyers cannot simply remove their bid. If they change their mind, all they can do is to update their bid with the price of zero. Of course, they can do that before the auction expires.

•       After an auction expires, the buyer with the highest bid is the winner.

•       BA likes to have a set of statistics about the system as follows:

•       The most active seller (the one who has offered the most number of items)

•       The most active buyer (the one who has bought the most number of items)

•       The most popular seller (the one who sold the most number of items)

•       The most expensive item sold ever

•       The most expensive item available

•       The cheapest item sold ever

The cheapest item available

Solutions

Expert Solution

The following tables are created using SQL:

//SELLER TABLE QUERY

CREATE TABLE seller(Sell_item_id varchar(10), Sell_item_name varchar(50), Start_date date, End_date date,Name varchar(255),Password varchar(255),Item_descr varchar(255),Item_price int,Quality int,S_id varchar(10),PRIMARY KEY(Sell_item_id),FOREIGN KEY(S_id)REFERENCES Seller_Contact(S_id));

//SELLER TABLE

//SELLER CONTACT TABLE QUERY

CREATE TABLE Seller_Contact(S_id varchar(10),S_name varchar(50),Address varchar(255),Email_id varchar(50),Telephone int,Street_no varchar(255),City varchar(50),Telephone int,Street_no varchar(255),City varchar(50),State varchar(30),Zip_code int,Credit_no int,PRIMARY KEY(S_id),FOREIGN KEY(Credit_no)REFERENCES Credit_Info(Credit_no));

//SELLER CONTACT TABLE

//SQL OF CREDIT INFORMATION TABLE ABOUT SELLER

CREATE TABLE Credit_Info(Credit_no int,S_id varchar(10),S_name varchar(50),Exp_date date,B_id varchar(10),PRIMARY KEY(Credit_no),FOREIGN KEY (B_id)REFERENCES Buyer_Info(B_id));

//SQL OF BUYER INFO TABLE

CREATE TABLE Buyer_Info(B_id varchar(10),B_name varchar(50),Password varchar(8),List_items varchar(10),Address varchar(50),Street_no varchar(255),City varchar(50),State varchar(30),Zip_code int,Credit_code int,Credit_name varchar(10),Exp_date date,PRIMARY KEY(B_id));

//BUYER INFO TABLE


Related Solutions

Only needs DB SQL statements. Final Project must be included HER, NER, Table diagrams and SQL...
Only needs DB SQL statements. Final Project must be included HER, NER, Table diagrams and SQL statements. The final project is about developing an auction Web site. The details are as follows: BA is an online auction Web site. People can buy and sell items in this Web site. Buyers are people who like to buy items, and sellers are people who like to sell items. • Each seller can sell items. • Each item has a bidding start time,...
Need SQL Tables Final Project should be included ER, NER, Table diagrams and SQL statements. The...
Need SQL Tables Final Project should be included ER, NER, Table diagrams and SQL statements. The final project is about developing an auction Web site. The details are as follows: BA is an online auction Web site. People can buy and sell items in this Web site. Buyers are people who like to buy items, and sellers are people who like to sell items. •Each seller can sell items. •Each item has a bidding start time, an end time, and...
1. Please read the business statement below and draw ER, NER, and Table Schema diagrams for...
1. Please read the business statement below and draw ER, NER, and Table Schema diagrams for it. Business Statement: The project is about developing an auction Web site. The details are as follows: BA is an online auction Web site. People can buy and sell items in this Web site. Buyers are people who like to buy items, and sellers are people who like to sell items.  Each seller can sell items .  Each item has a bidding...
Part 1: Please read the business statement below and draw ER, NER, and Table Schema diagrams...
Part 1: Please read the business statement below and draw ER, NER, and Table Schema diagrams for it. Business Statement: The project is about developing an auction Web site. The details are as follows: BA is an online auction Web site. People can buy and sell items in this Web site. Buyers are people who like to buy items, and sellers are people who like to sell items. Each seller can sell items. Each item has a bidding start time,...
Part 1: Please read the business statement below and draw ER, NER, and Table Schema diagrams...
Part 1: Please read the business statement below and draw ER, NER, and Table Schema diagrams for it. Business Statement: The project is about developing an auction Web site. The details are as follows: BA is an online auction Web site. People can buy and sell items in this Web site. Buyers are people who like to buy items, and sellers are people who like to sell items. Each seller can sell items. Each item has a bidding start time,...
Project flow and Report Format The following information must be included in your report: Abstract Table...
Project flow and Report Format The following information must be included in your report: Abstract Table of Content List of Figures List of Tables LIST OF ABBREVIATIONS Part 1: Introduction Part 2: Literature Review Part 3: Methodology Part 4: Result and Discussion Part 5: Conclusions Part 6: References Appendix
What are the necessary information that must be included in the final business requirements document Who...
What are the necessary information that must be included in the final business requirements document Who are the key personnel that require access to the EDMS in an organization Describe appropriate logical access controls for the EDMS based on the roles within the organization who require access to each type of e-document.
Create a ‘Student’ table using SQL query. The table must have at least five attributes from...
Create a ‘Student’ table using SQL query. The table must have at least five attributes from your choice with different data types.
project on hotel management in dbms with er diagram and table (sql) please give answer
project on hotel management in dbms with er diagram and table (sql) please give answer
Question 1: Part 1 Write SQL statements for the following queries from the ‘EMPLOYEE’ table in...
Question 1: Part 1 Write SQL statements for the following queries from the ‘EMPLOYEE’ table in the WPC Database in MySQL: Display all records from the Employee table for employees working in the “Marketing” department. Display all records from the Employee table for employees working in the “Marketing” department OR “Finance” Department. Display the Last Names of all employees such that each last name appears only once. Display all the attributes for employees whose employee number is less than 10....
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT