Can someone please help me with this? Much much appreciated!!!!
http://eecs.csuohio.edu/~sschung/cis430/LabAssignment1_CIS430.pdf
Solution
1.Creating Tables for Company :
CREATE TABLE Employee
(
FName, Char, NOT NULL,
MINIT,Char, Unique,
LNAME ,Char,Primary Key,
SSN,Int,Primary Key,
BDATE,DateTime,Not Null,
ADDRESS,Text,Not Null,
SEX,Char,Not Null,
SALARY,Int,Foreign Key,
SUPERSSN,Int,Primary Key
DNO,Numeric,Not Null
);
Department Table :
Create Table Department
(
DNAME,Char,Primary Key,
DNUMBER,INT,Not null,
MGRSSN,INT,Primary Key,
MGRSTARTDATE,DateTime,Not Null
);
DEPENDENT TABLE:
Create Table DEPENDENT
(
ESSN,INT,Not Null,
DEPENDENT_NAME,Char,Primary Key,
SEX,Char,Not Null,
BDATE,DateTime,Not Null,
RELATIONSHIP,Char,Not Null,
);
DEPT_LOCATIONS TABLE :
Create Table DEPT_LOCATIONS
(
DNUMBER,INT,Primary Key,
DLOCATION,Char,Not Null,
);
PROJECT TABLE :
Create Table Project
(
PNAME,Char,Primary Key,
PNUMBER,INT,Not Null,
PLOCATION,Char,Foreign Key
DNUM,INT,Not Null
);
WORKS_ON TABLE :
Create Table WORKS_ON
(
ESSN,INT,Not Null,
PNO,INT,Not Null,
Hours,DateTime,Not Null
);

Can someone please help me with this- Much much appreciated!!!! http-.docx

  • 1.
    Can someone pleasehelp me with this? Much much appreciated!!!! http://eecs.csuohio.edu/~sschung/cis430/LabAssignment1_CIS430.pdf Solution 1.Creating Tables for Company : CREATE TABLE Employee ( FName, Char, NOT NULL, MINIT,Char, Unique, LNAME ,Char,Primary Key, SSN,Int,Primary Key, BDATE,DateTime,Not Null, ADDRESS,Text,Not Null, SEX,Char,Not Null, SALARY,Int,Foreign Key, SUPERSSN,Int,Primary Key DNO,Numeric,Not Null ); Department Table : Create Table Department
  • 2.
    ( DNAME,Char,Primary Key, DNUMBER,INT,Not null, MGRSSN,INT,PrimaryKey, MGRSTARTDATE,DateTime,Not Null ); DEPENDENT TABLE: Create Table DEPENDENT ( ESSN,INT,Not Null, DEPENDENT_NAME,Char,Primary Key, SEX,Char,Not Null, BDATE,DateTime,Not Null, RELATIONSHIP,Char,Not Null, ); DEPT_LOCATIONS TABLE : Create Table DEPT_LOCATIONS ( DNUMBER,INT,Primary Key, DLOCATION,Char,Not Null, ); PROJECT TABLE : Create Table Project
  • 3.
    ( PNAME,Char,Primary Key, PNUMBER,INT,Not Null, PLOCATION,Char,ForeignKey DNUM,INT,Not Null ); WORKS_ON TABLE : Create Table WORKS_ON ( ESSN,INT,Not Null, PNO,INT,Not Null, Hours,DateTime,Not Null );