Guest User

Untitled

a guest
Feb 17th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.18 KB | None | 0 0
  1. --Company Database from Elmasri & Navathe DB Book for use with Relax Relational Algebra
  2. CompanyDatabase.txt
  3. group: Company DB Elmasri & Navathe Figure 5.6
  4.  
  5. EMPLOYEE = {
  6. FNAME, M, LNAME, SSN:number, BDATE, ADDRESS, S, SALARY:number, SUPERSSN:number, DNO:number
  7. John, B, Smith, 123456789, 1965-01-09, 731-Fondren-Houston-TX, M, 30000, 333445555, 5
  8. Franklin, T, Wong, 333445555, 1955-12-08, 638-Voss-Houston-TX, M, 40000, 888665555, 5
  9. Alicia, J, Zelaya, 999887777, 1968-01-19, 3321-Castle-Spring-TX, F, 25000, 987654321, 4
  10. Jennifer, S, Wallace, 987654321, 1941-06-20, 291-Berry-Bellaire-TX, F, 43000, 888665555, 4
  11. Ramesh, K, Narayan, 666884444, 1962-09-15, 975-Fire-Oak-Humble-TX, M, 38000, 333445555, 5
  12. Joyce, A, English, 453453453, 1972-07-31, 5631-Rice-Houston-TX, F, 25000, 333445555, 5
  13. Ahmad, V, Jabbar, 987987987, 1969-03-29, 980-Dallas-Houston-TX, M, 25000, 987654321, 4
  14. James, E, Borg, 888665555, 1937-11-10, 450-Stone-Houston-TX, M, 55000, NULL, 1
  15. }
  16.  
  17. DEPENDENT = {
  18. ESSN:number, DEPENDENT_NAME, SEX, BDATE, RELATIONSHIP
  19. 333445555, Alice, F, 1986-04-05, Daughter
  20. 333445555, Theodore, M, 1983-10-25, Son
  21. 333445555, Joy, F, 1958-05-03, Spouse
  22. 987654321, Abner, M, 1942-02-28, Spouse
  23. 123456789, Michael, M, 1988-01-04, Son
  24. 123456789, Alice, F, 1988-12-30, Daughter
  25. 123456789, Elizabeth, F, 1967-05-05, Spouse
  26. }
  27.  
  28. DEPT = {
  29. DNAME, DNUMBER:number, MMGRSSN:number, MGRSTARTDATE
  30. Research, 5, 333445555, 1988-05-22
  31. Administration, 4, 987654321, 1995-01-01
  32. Headquarters, 1, 888665555, 1981-06-19
  33. }
  34.  
  35. DEPT_LOC = {
  36. DNUMBER:number, DLOCATION
  37. 1, Houston
  38. 4, Stafford
  39. 5, Bellaire
  40. 5, Sugarland
  41. 5, Houston
  42. }
  43.  
  44. PROJ = {
  45. PNAME, PNUMBER:number, PLOCATION, DNUM:number
  46. ProductX, 1, Bellaire, 5
  47. ProductY, 2, Sugarland, 5
  48. ProductZ, 3, Houston, 5
  49. Computerization, 10, Stafford, 4
  50. Reorganization, 20, Houston, 1
  51. Newbenefits, 30, Stafford, 4
  52. }
  53.  
  54. WORKS_ON = {
  55. ESSN:number, PNO:number, HOURS:number
  56. 123456789, 1, 32.5
  57. 123456789, 2, 7.5
  58. 666884444, 3, 40.0
  59. 453453453, 1, 20.0
  60. 453453453, 2, 20.0
  61. 333445555, 2, 10.0
  62. 333445555, 3, 10.0
  63. 333445555, 10, 10.0
  64. 333445555, 20, 10.0
  65. 999887777, 30, 30.0
  66. 999887777, 10, 10.0
  67. 987987987, 10, 35.0
  68. 987987987, 30, 5.0
  69. 987654321, 30, 20.0
  70. 987654321, 20, 15.0
  71. 888665555, 20, NULL
  72. }
Add Comment
Please, Sign In to add comment