Department Table

download Department Table

of 19

Transcript of Department Table

  • 7/24/2019 Department Table

    1/19

    DEPARTMENT table

    Name: DEPTNO DEPTNAME MGRNOADMRDEPT

    LOCATION

    Type: char(3) not

    null pk varchar(29) not null char(6)

    char(3) notnull

    char(16)

    Desc: Departmen

    t numberName describin eneralactivities o! department

    "mployeenumber("#$N%)o!department manaer

    Department(D"$TN%)to &hichthisdepartmentreports

    Name o!the remotelocation

    'alues: *$+,,- .%#$/T"0

    *"0'+." D+' 1

    1 $4NN+N5 2

    .1 +N,%0#T+%N ."NT"0 3

    D1 D"'"4%$#"NT ."NT"0

    D11 #N/,.T/0+N5

    *-*T"#* 6 D1

    D21 D#+N+*T0T+%N

    *-*T"#* D1

    "1 */$$%0T *"0'+."* 7

    "11 %$"0T+%N* 9 "1

    "21 *%,T80" */$$%0T 1 "1

    EMPLOYEE table

    Names:

    EMPNOFIRSTNME

    MIDINIT

    LASTNAME

    WORKDEPT

    PHONENO

    HIREDATE

    Type: char(6)

    not nullvarchar(12) not null

    char(1)notnull

    varchar(17) not null

    char(3) char() Date

    Desc:"mployee

    number

    ,irstname

    #iddleinitial

    4ast name

    Department(D"$TN%)in &hich

    theemployee&orks

    $honenumber

    Date o!hire

  • 7/24/2019 Department Table

    2/19

    JOB EDLEVEL SE BIRTHDATESALARY

    BON!S COMM

    char()

    smallint not null char(1

    ) date dec(9;2) dec(9;2) dec(9;2)

    *

    39

    196711

    $0"*

    1

    ,

    19332

    727

    1

    22

    2

    #+.>"4

    4

    T>

    %#$*%N

    1

    3

    6

    19

    311

    #

    N5"0

    1

    #

    19

    22

    127

    33

    3

    *44-

    ?8

    N

    .1

    3

    1977

    #N5"0

    2

    ,

    191711

    327

    36

    7

    N

    5"-"

    0

    "

    1

    69

    1991

    #N5"0

    16

    #

    1927917

    1

    7

    321

    +0' , *T" D1

    6

    193

    #N

    1 # 197

    3227

    7 27

  • 7/24/2019 Department Table

    3/19

    EMPNO

    FIRSTNME

    MIDINIT

    LASTNAME

    WORKDEPT

    PHONENO

    HIREDATE

    JOB

    EDLEVEL

    SE

    BIRTHDATE

    SALARY

    BON!S

    COMM

    6 +N5 0N 1 2

    391

    5"0

    6

    "'

    D$/4*?+

    D21

    31

    1993

    #N5"0

    16

    ,

    1973726

    361

    293

    9

    "+4

    ""N

    8

    >"ND

    "0*%N

    "

    11

    79

    1917

    #N5"0

    16 ,

    191717

    29

    7

    6

    23

    1

    T>"%D%0"

    @*$"N*"0

    "21

    92

    19619

    #N5"0

    1

    #

    1976121

    2617

    7

    292

    1

    1

    '+N."NA%

    5

    4/..>"**+

    39

    197716

    *4"*0"$

    19

    #

    1929117

    67

    9

    32

    12

    *"N

    %B.%NN"44

    216

    1963127

    .4"0?

    1

    #

    19211

    2927

    6

    23

    13

    D%4%0"*

    #@/+NTN

    .1

    7

    1912

    N4-*T

    16

    ,

    1927917

    23

    7

    19

    1

    >"T>"0

    N+.>%44*

    .1

    193

    1961217

    N4-*T

    1

    ,

    196119

    22

    6

    22

    17

    0/."

    D#*%N

    D11

    71

    192212

    D"*+5N"0

    16

    #

    1971

    272

    7

    222

    16

    "4+A"T>

    0$+N?

    D11

    32

    19111

    D"*+5N"0

    1

    ,

    197712

    2227

    1

  • 7/24/2019 Department Table

    4/19

    EMPNO

    FIRSTNME

    MIDINIT

    LASTNAME

    WORKDEPT

    PHONENO

    HIREDATE

    JOB

    EDLEVEL

    SE

    BIRTHDATE

    SALARY

    BON!S

    COMM

    1

    #*T%*>+

    +#/0

    D11

    29

    19917

    D"*+5N"0

    16

    #

    197117

    26

    7

    19

    1

    #0+4-N

    *

    *.%/TT"N

    D11

    162

    193

    D"*+5N"0

    1

    ,

    199221

    213

    7

    1

    19

  • 7/24/2019 Department Table

    5/19

    EMPNO

    FIRSTNME

    MIDINIT

    LASTNAME

    WORKDEPT

    PHONENO

    HIREDATE

    JOB

    EDLEVEL

    SE

    BIRTHDATE

    SALARY

    BON!S

    COMM

    3 11 7

    2

    #0+

    4 $"

    0"A

    D21

    91

    1993

    .4"0?

    17

    ,

    1973726

    23

    7

    219

    2

    "T>"4

    0

    *.>N"+D

    "0

    "11

    99

    1963

    2

    %$"0T

    %0

    1

    ,

    19363

    2

    2627

    7

    21

    29

    N

    0$0?"0

    "11

    72

    1973

    %$"0T%0

    12

    #

    1969

    173

    3

    122

    3

    $>+4+$

    C *#+

    T>

    "11

    297

    192619

    %$"0T%0

    1

    #

    193612

    17

    12

    31

    #/D"

    ,*"T0+5>T

    "11

    3332

    196912

    %$"0T%0

    12

    ,

    193121

    179

    3

    122

    32

    0#44

    ' #"

    >T

    "21

    999

    1967

    ,+"4D0"$

    16

    #

    193211

    1997

    1796

    33

    8+N5

    4"""21

    213

    196223

    ,+"4D0"$

    1

    #1911

    273

    7

    23

    3

  • 7/24/2019 Department Table

    6/19

    Name: EMPNO PROJNO ACTNO EMPTIMEEMSTDATE

    EMENDATE

    Type: char(6) not

    nullchar(6) notnull

    smallintnot null

    dec(7;2) date date

  • 7/24/2019 Department Table

    7/19

    Name: EMPNO PROJNO ACTNO EMPTIMEEMSTDATE

    EMENDATE

    Desc: "mployee

    number$roectnumber

    ctivitynumber

    $roportiono!

    employeeBs time

    spent onproect

    Dateactivitystarts

    Dateactivityends

    'alues: 1 D31 1 7 19211 1921

    D311 1 1 19211 19321

    23 D3111 6 1 19211 192317

    23 D3111 6 7 192317 19217

    23 D3111 7 192317 192117

    23 D3111 7 19217 192117

    23 D3111 1 1 192117 19311

    2 D3111 1 192217 192917

    2 D3111 1 192917 19311

    27 D3112 6 1 19211 19221

    27 D3112 6 7 19221 192317

    27 D3112 6 7 192121 19311

    27 D3112 6 1 19311 19321

    27 D3112 7 19221 192317

    27 D3112 1 192317 19217

    27 D3112 27 19217 192117

    27 D3112 27 19217 192117

    27 D3112 7 192117 192121

    27 D3112 1 7 19217 19311

    26 D3113 7 192617 1921

  • 7/24/2019 Department Table

    8/19

    Name: EMPNO PROJNO ACTNO EMPTIMEEMSTDATE

    EMENDATE

    26 D3113 1 1921 19321

    26 D3113 1 19211 19231

    26 D3113 7 19231 19217

    26 D3113 1 7 19231 19217

    26 D3113 1 1 19217 19261

    26 D3113 1 7 19261 1921

    2 D3113 6 7 19231 1921

    2 D3113 6 1 1921 19291

    2 D3113 6 27 19291 192117

    2 D3113 7 19291 192117

    2 D3113 1 192117 19321

    2 D3113 1 19211 19231

    2 D3113 7 19231 1921

    3 +,1 1 7 19261 19311

    13 +,1 9 1 19211 19211

    13 +,1 1 7 19211 19311

    1 +,1 9 7 19211 19311

    3 +,2 1 7 19211 19311

    1 +,2 1 1 19211 19231

    1 +,2 1 7 19231 1921

    1 +,2 11 7 19231 1921

    1 +,2 11 7 19211 19311

  • 7/24/2019 Department Table

    9/19

    Name: EMPNO PROJNO ACTNO EMPTIMEEMSTDATE

    EMENDATE

    1 #21 1 7 19211 192111

    11 #21 2 1 19211 19231

    1 #211 1 1 19211 19321

    2 #2111 7 1 19211 192617

    2 #2111 6 1 192617 19321

    22 #2111 1 19211 19321

    17 #2112 6 1 19211 19217

    17 #2112 1 1 19217 19321

    1 #2112 6 1 19211 19361

    1 #2112 1 19261 19321

    19 #2112 1 19221 19211

    19 #2112 1 19211 19311

    16 #2113 6 1 19217 19321

    1 #2113 1 19211 19321

    1 #2113 1 1921 192617

    21 #2113 7 19211 19321

    21 #2113 1 7 19211 19321

    7 %$1 1 27 19211 19321

    9 %$11 1 1 19211 19321

    2 %$11 13 1 19211 19321

    29 %$11 13 1 19211 19321

    3 %$11 13 1 19211 19321

    31 %$11 13 1 19211 19321

  • 7/24/2019 Department Table

    10/19

    Name: EMPNO PROJNO ACTNO EMPTIMEEMSTDATE

    EMENDATE

    7 %$21 1 7 19211 19321

    1 %$21 1 1 19211 19321

    32 %$211 1 7 19211 19321

    32 %$211 17 27 19211 19321

    33 %$212 1 27 19211 19321

    33 %$212 16 7 19211 19321

    3 %$213 1 7 19211 19321

    3 %$213 1 7 19211 19321

    2 $421 3 1 19211 192917

    IN"TRAY table

    Name: RECEIVED SO!RCE S!BJECT NOTE"TET

    Type: timestamp char() char(6) varchar(3)

    Desc: Date and Time

    received/ser id o! personsendin note

    rie! description The note

    ORG table

    Name: DEPTN!MB DEPTNAME MANAGER DIVISION LOCATION

    Type: smallint not

    null varchar(1) smallint varchar(1) varchar(13)

    Desc: Department

    numberDepartmentname

    #anaernumber

    Division o!corporation

    .ity

    'alues: 1 >ead %!!ice 16 .orporate Ne& -ork

    17 Ne& "nland 7 "astern oston

    2 #id tlantic 1 "astern 8ashinton

    3 *outh tlantic 3 "astern tlanta

  • 7/24/2019 Department Table

    11/19

    Name: DEPTN!MB DEPTNAME MANAGER DIVISION LOCATION

    2 5reat 4akes 1 #id&est .hicao

    71 $lains 1 #id&est Dallas

    66 $aci!ic 2 8estern *an,rancisco

    #ountain 29 8estern Denver

    PROJECT table

    Name:

    PROJNO

    PROJNAME

    DEPTNO

    RESPEMP

    PRSTAFF

    PRSTDATE

    PRENDATE

    MAJPROJ

    Type:

    char(6) notnull

    varchar(2)not null

    char(3)not null

    char(6)not null

    dec(7;2)

    date date char(6)

    Desc:

    $roectnumber

    $roectname

    Departmentresponsible

    "mployeeresponsible

    "stimatedmeansta!!in

    "stimated startdate

    "stimated enddate

    #aorproect; !or asubproect

    'alues:

    D31

    D#+N*"0'+."*

    D1 1 67 192

    1119321

    D311

    5"N"04D#+N*-*T"#*

    D21 6 192

    1119321

    D31

    D3111

    $-0%44$0%50##+N5

    D21 23 2 192

    1119321

    D311

    D3112

    $"0*%NN"4$0%50##+N5

    D21 27 1 192

    1119321

    D311

    D3113

    ..%/NT$0%50##+N5

    D21 2 2 192

    1119321

    D311

    +,1

    @/"0-*"0'+."*

    .1 3 2 192

    1119321

    +,2

    /*"0"D/.T+%N

    .1 3 1 19211

    19321

  • 7/24/2019 Department Table

    12/19

    Name:

    PROJNO

    PROJNAME

    DEPTNO

    RESPEMP

    PRSTAFF

    PRSTDATE

    PRENDATE

    MAJPROJ

    #21

    8"4D4+N"/T%#T+%N

    D1 1 12 192

    1119321

    #211

    8 4$0%50##+N5

    D11 6 9 192

    1119321

    #21

    #2111

    8 4$0%50#D"*+5N

    D11 22 2 192

    11192121

    #211

    #2112

    8 40%%T

    D"*+5N

    D11 17 3 192

    11192121

    #211

    #2113

    8 4 $0%D.%NT$0%5*

    D11 16 3 192

    217192121

    #211

    %$1

    %$"0T+%N*/$$%0T

    "1 7 6 192

    1119321

    %$1

    1

    %$"0T+%

    N "11 9 7

    192

    11

    193

    21

    %$1

    %$2

    5"N*-*T"#**"0'+."*

    "1 7 7 192

    1119321

    %$21

    *-*T"#**/$$%0T

    "21 1 192

    1119321

    %$2

    %$2

    11

    *.$*-*T"#*

    */$$%0T

    "21 32 1 192

    11

    193

    21

    %$21

    %$212

    $$4+.T+%N**/$$%0T

    "21 33 1 192

    1119321

    %$21

    %$213

    DED.*/$$%0T

    "21 3 1 192

    1119321

    %$21

    $421

    8"4D4+N"$4NN+N5

    1 2 1 192

    11

    192

    917

    #21

    SALES table

  • 7/24/2019 Department Table

    13/19

    Name: SALES"DATESALES"PERSON

    REGION SALES

    Type: date varchar(17) varchar(17) int

    Desc: Date o! sales "mployeeBs last

    name 0eion o! sales Number o! sales

    'alues: 12E31E1997 4/..>"**+ %ntario*outh 1

    12E31E1997 4"" %ntario*outh 3

    12E31E1997 4"" @uebec 1

    12E31E1997 4"" #anitoba 2

    12E31E1997 5%/N%T @uebec 1

    3E29E1996 4/..>"**+ %ntario*outh 3

    3E29E1996 4/..>"**+ @uebec 1

    3E29E1996 4"" %ntario*outh 2

    3E29E1996 4"" %ntarioNorth 2

    3E29E1996 4"" @uebec 3

    3E29E1996 4"" #anitoba 7

    3E29E1996 5%/N%T %ntario*outh 3

    3E29E1996 5%/N%T @uebec 1

    3E29E1996 5%/N%T #anitoba

    3E3E1996 4/..>"**+ %ntario*outh 1

    3E3E1996 4/..>"**+ @uebec 2

    3E3E1996 4/..>"**+ #anitoba 1

    3E3E1996 4"" %ntario*outh

    3E3E1996 4"" %ntarioNorth 3

    3E3E1996 4"" @uebec

  • 7/24/2019 Department Table

    14/19

    Name: SALES"DATESALES"PERSON

    REGION SALES

    3E3E1996 4"" #anitoba

    3E3E1996 5%/N%T %ntario*outh 2

    3E3E1996 5%/N%T @uebec 1

    3E3E1996 5%/N%T #anitoba 1

    3E31E1996 4/..>"**+ #anitoba 1

    3E31E1996 4"" %ntario*outh 1

    3E31E1996 4"" %ntarioNorth 3

    3E31E1996 4"" @uebec

    3E31E1996 4"" #anitoba 3

    3E31E1996 5%/N%T %ntario*outh 2

    3E31E1996 5%/N%T @uebec 1

    E1E1996 4/..>"**+ %ntario*outh 3

    E1E1996 4/..>"**+ #anitoba 1

    E1E1996 4"" %ntario*outh

    E1E1996 4"" %ntarioNorth

    E1E1996 4"" @uebec

    E1E1996 4"" #anitoba 9

    E1E1996 5%/N%T %ntario*outh 3

    E1E1996 5%/N%T %ntarioNorth 1

    E1E1996 5%/N%T @uebec 3

    E1E1996 5%/N%T #anitoba

    STAFF table

  • 7/24/2019 Department Table

    15/19

    Name: ID NAME DEPT JOB YEARSSALARY

    COMM

    Type: smallint

    not null varchar(9) smallint char(7) smallint dec(;2) dec(;2)

    Desc:

    "mploye

    enumber

    "mployeename Department number

  • 7/24/2019 Department Table

    16/19

    Name: ID NAME DEPT JOB YEARSSALARY

    COMM

    17 8illiams 71 *ales 6 19767

    6367

    16 #olinare 1 #r

    229792

    1 ?ermisch 17 .lerk 12277

    111

    1 brahams 3 .lerk 3 129

    7 2367

    19 *neider 2 .lerk 1272

    7 1267

    2 *coutten 2 .lerk 1176

    2

    21 4u 1 #r 1 21

    22 *mith 71 *ales 1677

    992

    23 4undGuist 71 .lerk 3

    13369

    1967

    2 Daniels 1 #r 7 19262

    7

    27 8heeler 71 .lerk 6 16

    7133

    26

  • 7/24/2019 Department Table

    17/19

    Name: ID NAME DEPT JOB YEARSSALARY

    COMM

    31 5raham 66 *ales 13 21

    23

    32 5onFales 66 *ales

    1672

    33 urke 66 .lerk 1 19

    777

    3 "d&ards *ales 1

    127

    37 5a!ney .lerk 7 1337

    1

    STAFFG table #$%&ble'b(te )%$e *a+es %,l(-

    Name:

    ID NAME DEPT JOBYEARS

    SALARY

    COMM

    Type: smallint

    not nullvarraphic(9)

    smallint raphic(

    7)smallint

    dec(9;) dec(9;)

    Desc:

    "mploye

    enumber

    "mployee

    name

    Departme

    nt number

  • 7/24/2019 Department Table

    18/19

    Name:

    ID NAME DEPT JOBYEARS

    SALARY

    COMM

  • 7/24/2019 Department Table

    19/19

    Name:

    ID NAME DEPT JOBYEARS

    SALARY

    COMM

    2 Daniels 1 #r 7 19262

    7

    27 8heeler 71 .lerk 6

    16

    7133

    26