home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a524 / 37.ddi / demo / buildtab.sql < prev    next >
Encoding:
Text File  |  1991-03-04  |  1.8 KB  |  107 lines

  1. rem 
  2. rem $Header: buildtab.sql,v 1002100.1 89/03/29 14:20:50 rcs Exp $ buildtab.sql Copyr (c) 1989 Oracle
  3. rem 
  4. rem V6PLS10021,DISK$DEV9:[PLS.DEMO.10021]
  5. drop table accounts
  6. /
  7. create table accounts(
  8.     account_id     number(4) not null,
  9.     bal         number(11,2))
  10. /
  11. create unique index accounts_index on accounts (account_id)
  12. /
  13. drop table action
  14. /
  15. create table action(
  16.     account_id     number(4) not null,
  17.     oper_type     char(1) not null,
  18.     new_value     number(11,2),
  19.     status         char(45),
  20.     time_tag     date not null)
  21. /
  22. drop table bins
  23. /
  24. create table bins(
  25.     bin_num        number(2) not null,
  26.     part_num    number(4),
  27.     amt_in_bin    number(4))
  28. /
  29. drop table data_table
  30. /
  31. create table data_table(
  32.     exper_num    number(2),
  33.     n1        number(5),
  34.     n2        number(5),
  35.     n3        number(5))
  36. /
  37. drop table emp
  38. /
  39. create table emp(
  40.     empno         number(4) not null,
  41.     ename         char(10),
  42.     job         char(9),
  43.     mgr         number(4),
  44.     hiredate     date,
  45.     sal         number(7,2),
  46.     comm         number(7,2),
  47.     deptno         number(2))
  48. /
  49. drop table inventory_table
  50. /
  51. create table inventory_table(
  52.     product        char(20) not null,
  53.     quantity    number(5))
  54. /
  55. drop table journal
  56. /
  57. create table journal(
  58.     account_id     number(4) not null,
  59.     action         char(45) not null,
  60.     amount         number(11,2),
  61.     date_tag     date not null)
  62. /
  63. drop table num1_tab
  64. /
  65. create table num1_tab(
  66.     sequence    number(3) not null,
  67.     num        number(4))
  68. /
  69. drop table num2_tab
  70. /
  71. create table num2_tab(
  72.     sequence    number(3) not null,
  73.     num        number(4))
  74. /
  75. drop table purchase_record
  76. /
  77. create table purchase_record(
  78.     mesg        char(45),
  79.     purch_date    date)
  80. /
  81. drop table ratio
  82. /
  83. create table ratio(
  84.     sample_id    number(3) not null,
  85.     ratio        number)
  86. /
  87. drop table result_table
  88. /
  89. create table result_table(
  90.     sample_id    number(3) not null,
  91.     x        number,
  92.     y        number)
  93. /
  94. drop table sum_tab
  95. /
  96. create table sum_tab(
  97.     sequence    number(3) not null,
  98.     sum        number(5))
  99. /
  100. drop table temp
  101. /
  102. create table temp(
  103.     col1         number(9,4),
  104.     col2         number(9,4),
  105.     message     char(45))
  106. /
  107.