List all the entities of the new database;-
Customer_detail (Customer_id,Customer_lastName,Customer_FirstName,Order_Id,Purchase_date)
Supplier(Supplier_id,Supplier_Name,Supplier_orderId, QuantityOnHnands ,Item_id, Item_Description,Price,shipping_date,delivery_date)
orderdetail(order_id,customer_id,oder_date,item_id,item_description,quantity,supplier_id)
customer_detail is the entity which has the attribute Customer_id, Customer_lastName, Customer_FirstName, Order_Id, Purchase_date.when customer ordered then order_id has been alloted to them and content the date of the order or purchase.
Supplier is the entity which has the attribute Supplier_id,Supplier_Name,Supplier_orderId, QuantityOnHnands ,Item_id, Item_Description,Price,shipping_date,delivery_date.suuplier entity content supplier details like their name ,id,which item of them they supply, item's description,price and quantity they have available and order id, order they have received from customer.
orderdetail is the entity which has the attribute order_id ,customer_id, oder_date, item_id, item_discription, quantity, supplier_id.So order id is same as the customer id and suppiler_orderid,quantity here to see the sufficient amount of that product is available at supplier or not,item details which customer requires.
List the primary and foreign keys of each entity
primary keys
customer_detail (customer _id,order _id)
supplier_detail(supplier_id,suppiler_orderid)
order_detail(customer _id,order _id,supplier_id)
foreign keys
order_detail (customer id and supplier id is a foreign key)
customer_detail (order _id is a foreign key)
supplier_detail(suppiler_orderid is a forign key)
Design an ER-diagram based on the provided information
Please draw the oval shape in each entity for the all attribute of that entity.So it represents the entity relationship diagram of the database
Project 2: Database System Design Background: An department store is currently developing a new database system...
A database used for a toy store that keeps track of the inventory and purchase orders from the store. All clients will have their membership ID card to shop. This database will help the store to keep track of their orders. It will also help the store to know how many products are available in the inventory. It is necessary to have a membership to purchase a product. The customer can also bring coupons to get discount. Key attributes: Salesman:...
A database used for a toy store that keeps track of the inventory and purchase orders from the store. All clients will have their membership ID card to shop. This database will help the store to keep track of their orders. It will also help the store to know how many products are available in the inventory. It is necessary to have a membership to purchase a product. The customer can also bring coupons to get discount. Key attributes: Salesman:...
Exercise 3 [12.5 marks] Given the Restaurant management system database that contains the following tables (primary keys are underlined and foreign keys are preceded with #): Customer (customerID,customerFirstName,customerLastName,customerAddress) Oreder (orderID,orderDate, #customerID,#menuItemID,#staffID) MenuItem(menuItemID, menuItemName,ingredients,type,availability) Staff(staffID, staffName, staffPhoneNumber, staffRole ) OrderPayment(paymentID,paymentAmount,#orderID,#staffID) 1) Without using DISTINCT, write the SQL query equivalent to the following one:[1.5 marks] SELECT DISTINCT menuItemName FROM MenuItem WHERE type = ‘Vegetarian’ OR availability= ‘Yes’; 2) Express the following queries in SQL: a) Find the number of orders placed by...
Project 4: ER-Diagram and DBDL (25 Points) Database Design Language (DBDL) Use Visio or Word to create the model. The correct syntax must be used. Remember to list out all alternate keys, secondary keys, and foreign keys. Entity Relationship Diagram (ERD) Draw the data model for the situation using LucidChart, Microsoft Visio, Word or other ERD Drawing Program. When drawing the objects, be sure to use the correct shapes, and syntax. Example: Entity is a rectangle box, and the name...
This project supposed to develop a database system for a library for a university. The system contains information about books, book authors, students, and faculty. Students and faculty are allowed to borrow books from the library. You should design the system to contain entities and attributes to store data that makes the system able to report the requested information by executing the queries. SQL Queries: 1. List the names and email for students who borrowed books along with the number...
Project Description In this project, you will design and implement a database for keeping track of information for an online “SOCIAL NETWORK” system (e.g. a simplified version of Facebook!). You will first design an EER schema diagram for this database application. Then, you will map the EER schema into a relational database schema and implement it on ORACLE or MySQL or some other relational DBMS. Finally, you will load some data into your database (via user Interface) and create some...
Kagle design engineers are in the process of developing a new “green” product, one that will significantly reduce impact on the environment and yet still provide the desired customer functionality. Currently, two designs are being considered. The manager of Kagle has told the engineers that the cost for the new product cannot exceed $550 per unit (target cost). In the past, the Cost Accounting Department has given estimated costs using a unit-based system. At the request of the Engineering Department,...
Design a database through an E/R diagram to store information about a flight mission planning system. The aircrafts in the system have a unique id, model, width, height, maximum velocity and fuel capacity information. The aircrafts may be in two types: cargo plane or fighter. In addition to aircrafts information, cargo planes have extra information named load capacity and fighter planes have bomb capacity. The pilots in the system have name information, which consists of forename and surname. In addition,...
How would I start to solve this problem? Sue's Flowers Revenue Business Process Project Hernandez is the owner and operator of a Sue develop a database system to track her sales, inventory, accounts system is used for large orders that are small flower shop, Sue's Flowers. She has decided to receivable and cash receipts. This arranged in advance. However, she does not have time to do the development herself. Therefore, she has hired you to design and implement the system...
Final Project: Part I For Part I of your final project, you will design your plan for the scenario provided below. Your project plan should include the entity relationship diagram (ERD). Scenario Imagine that you just started a new job at ABC Car Sales. You’ve been given the task of adding all the new and used car inventory to a new database management system (DBMS). You would like to manage the new and used car sales in the new DBMS....