Professional Documents
Culture Documents
Hospital Order Database: Julian Romero HCIN 543
Hospital Order Database: Julian Romero HCIN 543
Hospital Order Database: Julian Romero HCIN 543
Database
JULIAN ROMERO
HCIN 543
Description
Mock database of four tables that contains information on orders placed by hospitals for
hospital supplies. Hospital names and locations were pulled from a real database.
Entities in these tables consist of customers who are hospitals, supplies for hospitals,
and orders placed. This database is used by the supplier to keep track of the orders,
inventory, and customer base.
Data Dictionary
Data Element Field Description
Customer Number customernum Primary identifier for supplier to identify customers attached to orders
Customer Name customername Hospital name
Address address Address for shipment
State state State for shipment
Zip Code postalcode Zip code for shipment
Credit Limit creditlimit Amount hospital is allowed to borrow
*Category
Balance balance Balance that hospital has from limit to purchase supplies fd = Food
Item Number itemnum Item number to locate inventory ppe = Personal
Description description Description of item for purchase Protective
Equipment
On Hand Supply onhand Inventory amount for item mddvc = Medical
Category category Type of product for sale Devices
dme = durable
Price price Price of item
medical equipment
Order Number ordernum Order number associated with purchase lab = laboratory
Order Date orderdate Date item(s) were ordered supplies
Quantity Ordered numordered Quantity of supplies ordered
Quoted Price quotedprice Total amount quoted for the order
Entity-Relationship Diagram
One-to-One
Many-to-One
One-to-Many
Four Tables:
(1) Customers – Primary Key: customernum
(2) Orders – Primary Key: odernum
Foreign Key: customernum
(3) Orderline – Primary Key: ordernum
Foreign Key: itemnum
(4) Item – Primary Key: itemnum
Query 1
List the hospital name, state, and
balance from hospitals in Colorado
and Florida. Query1
SQL Command:
customername state balance
Select customername, state, balance
From customers YUMA DISTRICT HOSPITAL - CO $24,500
CAH
where state='co'
or state='fl';
FLORIDA HOSPITAL FL $2,500
ZEPHYRHILLS
Query2
itemnum description category onhand
Query 3
2144 11 YUMA DISTRICT HOSPITAL - 1/27/2020
CAH
Build out larger with more healthcare organizations, supplies, and orders.
-Thank You-
Reference: