Ali Johny.docx

Info icon This preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Physical Model S r n o Entities Attributes 0 1 Product Product_id ,Product _Name,size,price_per_unit 0 2 Supplier Supplier ,sales_man, supplier_company company_address, ph# 0 3 Employee Eid , ename,sallary,dob,hiredate,job,cnic ph#, address 0 4 Customer Cust_id , address,ph#,cnic 0 5 shipment Vehicle_id ,vehicle_name_,color,model,driver_n ame 0 6 Stock Rid ,Product-id,Sup_id,stock_date, quantity 0 7 Reciept Order_id , Product_id, Employer_Id, Customer_id, PPU, SaleQauntity, SaleDate 0 8 Pro_Ship Prodcut_id,vehicle_no,date
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Project Quiries: create database store_management use store_management go create table login ( username nvarchar ( 50 ), password nvarchar ( 50 ), status vachar ( 7 ), ph# nvarchar ( 12 ) ) create table product ( Product_ID INT PRIMARY KEY , Product_NAME NVARCHAR ( 50 ) NOT NULL, SIZE NVARCHAR ( 50 ), ppu INT NOT NULL, ) CREATE TABLE SUPPLIER ( Supplier_id INT PRIMARY KEY , salesman_name nvarchar ( 50 ) NOT NULL, Supplier_company nvarchar ( 50 )NOT NULL, company_Address nvarchar ( 50 ) NOT NULL, PH# varchar ( 12 ) , )
Image of page 2
create table empolye ( Employer_id int primary key , Employer_namwe nvarchar ( 50 ), sallary int NOT NULL, Date_of_birth nvarchar ( 50 ) NOT NULL, hiredate nvarchar ( 50 ), job nvarchar ( 50 ), CNIC varchar ( 15 ), check ( CNIC like( '_____-_______-_' ) ) , ph# nvarchar ( 12 ), address varchar ( 50 ) ) create table customer ( Customer_id int primary key , Customer_name nvarchar ( 50 ) NOT NULL, C_address nvarchar ( 50 ), Ph# nvarchar ( 12 ) , CNIC varchar , check ( CNIC like( '_____-_______-_' ) ) , ) create table stock ( record_id int primary key , product_id int constraint cfcyc foreign key references product ( Product_ID ), Supplier_id int foreign key references SUPPLIER ( Supplier_id ),
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern