Dbms

691 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
691
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
13
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Dbms

  1. 1. John Players <br />
  2. 2. Overview of Project<br />John Players offers a complete and vibrant wardrobe of <br /> Casual wear, <br /> Party wear, <br /> Work wear, <br /> Denims, Outer wear and <br /> Suits & Jackets, <br />The brand is endorsed by Bollywood actor & youth icon - Ranbir Kapoor.<br />
  3. 3. Products<br /><ul><li>john Players Work Wear (Shirts, Trousers)
  4. 4. Casual Wear (Shirts T-shirts, Bottoms)
  5. 5. Party Wear (Shirts T-shirts, Trousers)
  6. 6. Signature Wear (Shirts, T-shirts, Trousers)JP Denims </li></li></ul><li>Introduction to Project<br />Production of John player <br />entity relationship <br />
  7. 7. Database Initial Study<br />Current situation <br />Operating Environment <br />Organizational Structure<br />Problem and Constraints<br />Objectives<br />Scope And Boundaries<br />
  8. 8. Identification of entities<br />Entities Attributes<br />Employee :- (emp_ID , emp_name , emp_address , dept_id , job_id , emp_age , <br /> emp_bloodgroup , emp_contactno )<br />Department :- ( dept_id , dept-name , dept_location , no_of_workers , dept_head )<br />Job :- (job_title , job_id , work_hours )<br />Salary :- (emp_id , fine , overtime , basic , bonus , amt )<br />Product l :- ( prod_id , prod_type , price ,market-rating )<br />Inventry :- (prod_id , quantity )<br />Sales :- ( prod_id , prod_type , price, Quantity)<br />Location :- ( location_id, street_address, postal_address, city, country_id, <br /> state_proivance )<br />Region :- ( region_id, region_name, sale )<br />
  9. 9.
  10. 10.
  11. 11.
  12. 12.
  13. 13.
  14. 14. Logical Design<br />
  15. 15. Employee table<br />
  16. 16. Salary table<br />Job table<br />
  17. 17. Department table<br />Country table<br />
  18. 18. Region table<br />Inventory table<br />
  19. 19. Product table<br />Sale table<br />
  20. 20. Location table<br />
  21. 21. SQL Commands <br />CREATE TABLE EMPLOYEE<br />( <br />EMP_ID NUMBER PRIMARY KEY,<br />EMP_NAME VARCHAR(20),<br />EMP_EMAIL VARCHAR(40),<br />PHONE_NUMBER NUMBER,<br />HIRE_DATE DATE,<br />JOB_ID NUMBER,<br />SALARY NUMBER,<br />COMMISSION NUMBER,<br />MANAGER_ID NUMBER,<br />DEPT_ID NUMBER,<br />EMPLOYEE_ADDRESS MEMO<br />);<br />CREATE TABLE DEPARTMENT<br />( <br />DEPT_ID NUMBER PRIMARY KEY,<br />DEPT_NAME VARCHAR(10),<br />MANAGER_ID NUMBER,<br />LOCTION_ID NUMBER<br />);<br />
  22. 22. SQL Commands <br />CREATE TABLE COUNTRY<br />( <br />COUNTRY_ID NUMBER PRIMARY KEY,<br />NAME VARCHAR(20),<br />REGION_ID NUMBER,<br />PROD_ID NUMBER<br />); <br />CREATE TABLE INVENTRY<br />( <br />PROD_ID NUMBER PRIMARY KEY,<br />PROD_TYPE VARCHAR(20),<br />TOTAL_AMT NUMBER<br />);<br />
  23. 23. SQL Commands <br />CREATE TABLE LOCATION<br />( <br />LOCATION_ID NUMBER PRIMARY KEY,<br />STREET_ADDRESS MEMO,<br />CITY VARCHAR,<br />STATE_PROVINCE VARCHAR(10),<br />COUNRY_ID NUMBER<br />);<br />CREATE TABLE PRODUCT<br />( <br />PROD_ID NUMBER PRIMARY KEY,<br />PROD_TYPE VARCHAR(20),<br />PRICE NUMBER,<br />QUANTITY NUMBER,<br />MARKET_RATING NUMBER<br />);<br />
  24. 24. SQL Commands <br />CREATE TABLE REGION<br />( <br />REGION_ID NUMBER PRIMARY KEY,<br />REGION_NAME VARCHAR(20),<br />SALE NUMBER<br />);<br />CREATE TABLE SALARY<br />( <br />EMP_ID NUMBER PRIMARY KEY,<br />MAX_SALARY NUMBER,<br />MIN_SALARTY NUMBER,<br />BONUS NUMBER,<br />FINE NUMBER<br />);<br />
  25. 25. SQL Commands <br />CREATE TABLE SALES<br />( <br />PROD_ID NUMBER PRIMARY KEY,<br />PROD_TYPE VARCHAR(20),<br />QUALITY NUMBER,<br />PRICE NUMBER<br />);<br />CREATE TABLE JOB<br />( <br />JOB_ID NUMBER PRIMARY KEY,<br />JOB_TITLE VARCHAR(10),<br />MIM_SALARY NUMBER,<br />MAX_NUMBER NUMBER<br />);<br />
  26. 26. Insert Values Into Our Database <br />INSERT INTO EMPLOYEE <br />(EMP_ID,EMP_NAME,EMP_EMAIL,PHONE_NUMBER,HIRE_DATE,JOB_ID,SALARY,COMMISSION,MANAGER_ID,DEPR_ID,EMP_ADDRESS)<br />VALUES (123 ,’RAJ’ ,'raj@ymail.com' ,1234567890 ,12-JAN-2009 ,458 ,2500 ,1200 ,36 ,986 ,3658 raja nagar)<br />INSERT INTO PRODUCT(PROD_ID,PROD_TYPE,PRICE,QUANTITY,MARKET_RATING)<br />VALUES (125,'POI',36521,36589,7895)<br />
  27. 27. INSERT INTO REGION<br />(REGION_ID,REGION_NAME,SALE)<br />VALUES (2256,'PUNA',236589)<br />INSERT INTO COUNTRY (COUNTRY_ID,COUNTRY_NAME,REGION_ID)<br />VALUES (2568,'INDIA',2256)<br />INSERT INTO LOCATION<br />( LOCATION_ID, STREET_ADDRESS, CITY, STATE_PROVINCE,COUNTRY_ID )<br />VALUES (985, '985-RAJANDER NAGAR', 'DELHI', 'DELHI',2568)<br />
  28. 28. INSERT INTO SALES<br />( PROD_ID, PROD_TYPE, QUALITY, PRICE )<br />VALUES (125, 'POI', 985478, 22568)<br />INSERT INTO INVENTRY <br />( PROD_ID, PROD_TYPE, TOTAL_AMT )<br />VALUES (125, 'POI', 50000)<br />INSERT INTO DEPARTMENT <br />(DEPT_ID,DEPT_NAME,MANAGER_ID,LOCATION_ID)<br />VALUES (986,'JOHN PLAYER',36,985)<br />
  29. 29. INSERT INTO JOB (JOB_ID,MIM_SALARY,MAX_SALARY,JOB_TITLE)<br />VALUES (458,2500,5000,WORKER)<br />INSERT INTO SALES <br />( PROD_ID, PROD_TYPE, QUALITY, PRICE )<br />VALUES (125, 'POI', 985478, 22568);<br />
  30. 30. Thanks <br />House Is open for Queries <br />

×