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

  1. rem
  2. rem $Header: demobld.sql,v 6.1 90/02/16 18:40:17 nsalah Exp $ demobld.sql Copyr (c) 1989 Oracle
  3. rem
  4. rem V6PLS10030,DISK$DEV2:[PLS1FREEZE.DEMO.10030]
  5. drop table accounts
  6. /
  7. create table accounts(
  8.     account_id     number(4) not null,
  9.     bal         number(11,2))
  10. /
  11. drop table emp
  12. /
  13. create table emp(
  14.     empno         number(4) not null,
  15.     ename         char(10),
  16.     job         char(9),
  17.     mgr         number(4),
  18.     hiredate     date,
  19.     sal         number(7,2),
  20.     comm         number(7,2),
  21.     deptno         number(2))
  22. /
  23. drop table inventory_table
  24. /
  25. create table inventory_table(
  26.     prod_id        number(5) not null,
  27.     product        char(15),
  28.     quantity    number(5))
  29. /
  30. drop table journal
  31. /
  32. create table journal(
  33.     account_id     number(4) not null,
  34.     action         char(45) not null,
  35.     amount         number(11,2),
  36.     date_tag     date not null)
  37. /
  38. drop table percent_comm
  39. /
  40. create table percent_comm(
  41.     empno        number(4) not null,
  42.     percent        number(3))
  43. /
  44. drop table purchase_record
  45. /
  46. create table purchase_record(
  47.     mesg        char(45),
  48.     purch_date    date)
  49. /
  50. drop table quarterly_sales
  51. /
  52. create table quarterly_sales(
  53.     empno        number(4) not null,
  54.     amount        number(7,2),
  55.     customer    char(16))
  56. /
  57. drop table temp
  58. /
  59. create table temp(
  60.     col1         number(9,4),
  61.     col2         number(9,4),
  62.     message     char(55))
  63. /
  64. @load_acct
  65. @load_emp
  66. @load_inv
  67. @load_sales
  68. commit
  69. /
  70.