Advertisement
Guest User

cs304_sql_v2

a guest
Nov 20th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. SQL> start cs304_project_tables_v2
  2.  
  3. Table created.
  4.  
  5. CREATE TABLE VehicleType (
  6. *
  7. ERROR at line 1:
  8. ORA-00955: name is already used by an existing object
  9.  
  10.  
  11. vstatus VARCHAR2(200) CHECK (vstatus IN ("for_sale","for_rent")),
  12. *
  13. ERROR at line 9:
  14. ORA-02438: Column check constraint cannot reference other columns
  15.  
  16.  
  17. CREATE TABLE EquipType (
  18. *
  19. ERROR at line 1:
  20. ORA-00955: name is already used by an existing object
  21.  
  22.  
  23. estatus VARCHAR2(200) CHECK (estatus IN ("available","rented","not_available")),
  24. *
  25. ERROR at line 4:
  26. ORA-02438: Column check constraint cannot reference other columns
  27.  
  28.  
  29. CONSTRAINT fk_etname FOREIGN KEY (etname) REFERENCES EquipType(etname),
  30. *
  31. ERROR at line 5:
  32. ORA-02264: name already used by an existing constraint
  33.  
  34.  
  35.  
  36. Table created.
  37.  
  38. cellphone VARCHAR1(200),
  39. *
  40. ERROR at line 2:
  41. ORA-00907: missing right parenthesis
  42.  
  43.  
  44. CREATE TABLE TimePeriod (
  45. *
  46. ERROR at line 1:
  47. ORA-00955: name is already used by an existing object
  48.  
  49.  
  50. CREATE TABLE Reservation (
  51. *
  52. ERROR at line 1:
  53. ORA-00955: name is already used by an existing object
  54.  
  55.  
  56. CREATE TABLE ReserveIncludes (
  57. *
  58. ERROR at line 1:
  59. ORA-00955: name is already used by an existing object
  60.  
  61.  
  62.  
  63. Table created.
  64.  
  65. CONSTRAINT fk_card FOREIGN KEY (cardNo) REFERENCES CreditCard(cardNo),
  66. *
  67. ERROR at line 13:
  68. ORA-02267: column type incompatible with referenced column type
  69.  
  70.  
  71. CONSTRAINT fk_rent FOREIGN KEY (rid) REFERENCES Rent(rid),
  72. *
  73. ERROR at line 5:
  74. ORA-00942: table or view does not exist
  75.  
  76.  
  77. fulltank VARCHAR2(1) CHECK (available IN ('T','F')),
  78. *
  79. ERROR at line 6:
  80. ORA-02438: Column check constraint cannot reference other columns
  81.  
  82.  
  83. SQL>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement