You are on page 1of 16

Database Management

System
Lacoste Clothing shop

Marvin Almario
Mark allen Andes
Conceptual Data Modeling
Logical Data Modeling
Physical Data Modeling
Customer table

1. SELECT (customer_name),(customer_address),(customer_contact)FROM (Customer);

2. SELECT *FROM(Customer) ORDER BY (….);


3. SELECT (customer_name) FROM (Customer) WHERE (address) IS NOT NULL;

4. DELETE *FROM Customer WHERE (customer_name)=’Marvin Almario’;


5. DELETE (customer_name)FROM (Customer) WHERE (customer_id)=’111’;

6. INSERT INTO Customer (customer_name),(customer_address) VALUES(‘123478’,MARVIN


ALMARIO,SUCAT,MUNTINLUPA);

7. UPDATE(Customer) SET customer_address ‘San pedro Laguna’ WHERE (customer_id)=’111’;


EMPLOYEE TABLE

8. SELECT *FROM (employee_name) WHERE (employee_position)=”Sale Assistant”;

9. SELECT *FROM (employee_name) ORDER BY (employee_id);


10. SELECT (employee_name From (Employee) WHERE (employee_position) IS NOT NULL;

PRODUCT TABLE

11. SELECT (product_name),(original_price) FROM (PRODUCT) ORDER BY (original_price);


12. SELECT COUNT (product_id) FROM (PRODUCT);

13. SELECT SUM (original_price) From (Product);

Product Supplier Table


14. SELECT *FROM (Product Supplier) ORDER BY (supplier_name);

15. SELECT (supplier_id),(supplier_name) From (Product Supplier);

16. SELECT (supplier_name) From (Product Supplier);

Inventory Table
17. SELECT (product_id),(product_name) FROM (Inventory); WHERE (availability)=’yes’;

18. SELECT (product_id),(product_name) FROM (Inventory) WHERE (availability)=’no’;

19. SELECT SUM (amount) FROM (Inventory);


Data Dictionary

Field Name Data Type Data Format Field Size Description Example

Customer_id NNNNNN Unique Numbers for


123441
all Customer

Fname First Name for all


Customer

Mname Middle Name for all


Armin
Customer

Lname Last Name for all Estrella


Customer

Address Address for all 578 Si


Customer

Mobile_no Contact Number of0912312312


all
Customer

Sales_id NNNNNN Unique Number for


998041
Sales

Emp_id NNNNNN Unique Number for


414231
all
Employees

Item_id NNNNNN Unique Number for445321


all
items in
Inventory

Total Value of all Sales

Position Position for all


Employees

Pickup_id NNNNNN Unique identifier for


234561
Pick-Ups

P_date DATE/TIME 23/10/2018 Date to be Pick-up23/10/2018


the
item

Supplier_id NNNNNN Unique Number for878221


all
Suppliers

Amount Numbers of item


owned by the
store

Amount Price of the


Item(Inventory)

Amount Numbers of item to be


picked up from
Supplier

Purchase_id NNNNNN Unique Number for


331230
all
item Purchased

Game_name Names for the item

You might also like