Dbms

  • 450 views
Uploaded on

 

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
450
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
12
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

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