Skip to content

Instantly share code, notes, and snippets.

@unicorn667
Last active October 21, 2019 18:50
Show Gist options
  • Save unicorn667/47ba6eab5fe7e1d499dad1be4109c698 to your computer and use it in GitHub Desktop.
Save unicorn667/47ba6eab5fe7e1d499dad1be4109c698 to your computer and use it in GitHub Desktop.
emp depnto
group: emp deptno
description[[ from oracle example database
]]
dept = { deptno dname loc
10 ACCOUNTING NEW_YORK
20 RESEARCH DALLAS
30 SALES CHICAGO
40 OPERATIONS BOSTON
}
emp = { empno ename job mgr hiredate sal comm deptno
7839 KING PRESIDENT 0 17-11-1981 5000 0 10
7698 BLAKE MANAGER 7839 1-5-1981 2850 0 30
7782 CLARK MANAGER 7839 9-6-1981 2450 0 10
7566 JONES MANAGER 7839 2-4-1981 2975 0 20
7788 SCOTT ANALYST 7566 13-JUL-87 3000 0 20
7902 FORD ANALYST 7566 3-12-1981 3000 0 20
7369 SMITH CLERK 7902 17-12-1980 800 0 20
7499 ALLEN SALESMAN 7698 20-2-1981 1600 300 30
7521 WARD SALESMAN 7698 22-2-1981 1250 500 30
7654 MARTIN SALESMAN 7698 28-9-1981 1250 1400 30
7844 TURNER SALESMAN 7698 8-9-1981 1500 0 30
7876 ADAMS CLERK 7788 13-JUL-87 1100 0 20
7900 JAMES CLERK 7698 3-12-1981 950 0 30
7934 MILLER CLERK 7782 23-1-1982 1300 0 10
}
salgrade = { grade losal hisal
1 700 1200
2 1201 1400
3 1401 2000
4 2001 3000
5 3001 9999
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment