Emp and Dept table from JDeveloper tutorial
Hi all,
Under the tutorial for JDeveloper, I was going through the section 'Creating a Java Form Applet Using Wizard'. In one step, it asks to select 'Tables' - 'Emp' and 'Dept', but, the steps prior to that doesn't tell you how to add those tables in the database since I'm using my own database. Does anybody know where I can find the SQLScript to add these tables?
Regards,
AR
The samples are based on the EMP and DEPT tables, which are typically owned by Scott (password tiger). Check first to see if this user exists in the database (it is created automatically when you do a default database creation). Otherwise, you can find the script in ORACLE_HOME\rdbms\admin\scott.sql.
-- Brian
Similar Messages
-
How to get emp and dept tables of scott schema if they acdientally deleted
Hii I accedentally modifiled emp and dept tables in scott schema.... Can you please tell how to recreate fresh emp and dept tables ? is there any way to get emp and dept tables? please help regarding this
If you are on Oracle 10g version...
The demo tableds under scott schema can be created using oracle supplied script.
http://www.oracle.com/technology/sample_code/tech/sql_plus/htdocs/demobld.html
Alternatively, this script exists in $ORACLE_HOME/sqlplus/demo directory.
vr,
Sudhakar B. -
Hi ,
I have mistakenly altered and dropped the Employee and Department Table.
Can anybody help me with the Structure and Data of these tables ?
Or provide me with a procedure to re-create the Emp and Dept table ?
Thanks,
NishaThank you very much !! That really helped.
You just have to execute that file.
For Eg in SQLPLUS : Just say ---> @D:\oracle\ora92\sqlplus\demo\demobld.sql -
Data needed from emp and dept tables
Wondering if somebody can querry the emp table and dept table that comes with some versions of oracle already built in.
I need the data produced from these two querries
select * from emp
select * from deptIf you look in ORACLE_HOME/sqlplus/demo you'll find demobld.sql which contains the script the build all the scott tables.
-
Hi,
I believe that when the database is installed, a few tables are created which all users have access to, i.e. emp and dept.
Can anyone explain to me a bit more about where they are stored and particually where I can locate the scripts for these tables.
Cheers,
Nickrun $ORACLE_HOME\sqlplus\demo\demobld.sql as the user in which you want to install these test tables. Historically, this has been in the SCOTT schema.
HTH-Kevin -
EMP and DEPT sampledata query (SOLVED)
I don't have access to create tables at work - just to run selects on existing tables.
I've used the SQL below to use the 2 standard Oracle test dept and emp tables for testing, but - is it possible to use SQL to join the tables, or can the GET table WITH table AS ... SQL only ever work on one table at a time, rather than allowing joins to be done?
Thanks
GET dept
WITH dept AS
(SELECT 10 deptno
, 'ACCOUNTING ' dname
, 'NEW YORK' loc
FROM DUAL
UNION ALL
SELECT 20 deptno
, 'RESEARCH ' dname
, 'DALLAS' loc
FROM DUAL
UNION ALL
SELECT 30 deptno
, 'SALES ' dname
, 'CHICAGO' loc
FROM DUAL
UNION ALL
SELECT 40 deptno
, 'OPERATIONS ' dname
, 'BOSTON' loc
FROM DUAL)
SELECT *
FROM dept;
GET emp
WITH emp AS
(SELECT 7369 empno
, 'SMITH' ename
, 'CLERK' job
, 7902 mgr
, '17-Dec-80' hiredate
, 800 sal
, NULL comm
, 20 deptno
FROM DUAL
UNION ALL
SELECT 7499 empno
, 'ALLEN' ename
, 'SALESMAN' job
, 7698 mgr
, '20-Feb-81' hiredate
, 1600 sal
, 300 comm
, 30 deptno
FROM DUAL
UNION ALL
SELECT 7521 empno
, 'WARD' ename
, 'SALESMAN' job
, 7698 mgr
, '22-Feb-81' hiredate
, 1250 sal
, 500 comm
, 30 deptno
FROM DUAL
UNION ALL
SELECT 7566 empno
, 'JONES' ename
, 'MANAGER' job
, 7839 mgr
, '02-Apr-81' hiredate
, 2975 sal
, NULL comm
, 20 deptno
FROM DUAL
UNION ALL
SELECT 7654 empno
, 'MARTIN' ename
, 'SALESMAN' job
, 7698 mgr
, '28-Sep-81' hiredate
, 1250 sal
, 1400 comm
, 30 deptno
FROM DUAL
UNION ALL
SELECT 7698 empno
, 'BLAKE' ename
, 'MANAGER' job
, 7839 mgr
, '01-May-81' hiredate
, 2850 sal
, NULL comm
, 30 deptno
FROM DUAL
UNION ALL
SELECT 7782 empno
, 'CLARK' ename
, 'MANAGER' job
, 7839 mgr
, '09-Jun-81' hiredate
, 2450 sal
, NULL comm
, 10 deptno
FROM DUAL
UNION ALL
SELECT 7788 empno
, 'SCOTT' ename
, 'ANALYST' job
, 7566 mgr
, '19-Apr-87' hiredate
, 3000 sal
, NULL comm
, 20 deptno
FROM DUAL
UNION ALL
SELECT 7839 empno
, 'KING' ename
, 'PRESIDENT' job
, NULL mgr
, '17-Nov-81' hiredate
, 5000 sal
, NULL comm
, 10 deptno
FROM DUAL
UNION ALL
SELECT 7844 empno
, 'TURNER' ename
, 'SALESMAN' job
, 7698 mgr
, '08-Sep-81' hiredate
, 1500 sal
, NULL comm
, 30 deptno
FROM DUAL
UNION ALL
SELECT 7876 empno
, 'ADAMS' ename
, 'CLERK' job
, 7788 mgr
, '23-May-87' hiredate
, 1100 sal
, NULL comm
, 20 deptno
FROM DUAL
UNION ALL
SELECT 7900 empno
, 'JAMES' ename
, 'CLERK' job
, 7698 mgr
, '03-Dec-81' hiredate
, 950 sal
, NULL comm
, 30 deptno
FROM DUAL
UNION ALL
SELECT 7902 empno
, 'FORD' ename
, 'ANALYST' job
, 7566 mgr
, '03-Dec-81' hiredate
, 3000 sal
, NULL comm
, 20 deptno
FROM DUAL
UNION ALL
SELECT 7934 empno
, 'MILLER' ename
, 'CLERK' job
, 7782 mgr
, '23-Jan-82' hiredate
, 1300 sal
, NULL comm
, 10 deptno
FROM DUAL)
SELECT *
FROM emp;is it you requirement.
WITH dept AS
(SELECT 10 deptno
, 'ACCOUNTING ' dname
, 'NEW YORK' loc
FROM DUAL
UNION ALL
SELECT 20 deptno
, 'RESEARCH ' dname
, 'DALLAS' loc
FROM DUAL
UNION ALL
SELECT 30 deptno
, 'SALES ' dname
, 'CHICAGO' loc
FROM DUAL
UNION ALL
SELECT 40 deptno
, 'OPERATIONS ' dname
, 'BOSTON' loc
FROM DUAL),
emp AS
(SELECT 7369 empno
, 'SMITH' ename
, 'CLERK' job
, 7902 mgr
, '17-Dec-80' hiredate
, 800 sal
, NULL comm
, 20 deptno
FROM DUAL
UNION ALL
SELECT 7499 empno
, 'ALLEN' ename
, 'SALESMAN' job
, 7698 mgr
, '20-Feb-81' hiredate
, 1600 sal
, 300 comm
, 30 deptno
FROM DUAL
UNION ALL
SELECT 7521 empno
, 'WARD' ename
, 'SALESMAN' job
, 7698 mgr
, '22-Feb-81' hiredate
, 1250 sal
, 500 comm
, 30 deptno
FROM DUAL
UNION ALL
SELECT 7566 empno
, 'JONES' ename
, 'MANAGER' job
, 7839 mgr
, '02-Apr-81' hiredate
, 2975 sal
, NULL comm
, 20 deptno
FROM DUAL
UNION ALL
SELECT 7654 empno
, 'MARTIN' ename
, 'SALESMAN' job
, 7698 mgr
, '28-Sep-81' hiredate
, 1250 sal
, 1400 comm
, 30 deptno
FROM DUAL
UNION ALL
SELECT 7698 empno
, 'BLAKE' ename
, 'MANAGER' job
, 7839 mgr
, '01-May-81' hiredate
, 2850 sal
, NULL comm
, 30 deptno
FROM DUAL
UNION ALL
SELECT 7782 empno
, 'CLARK' ename
, 'MANAGER' job
, 7839 mgr
, '09-Jun-81' hiredate
, 2450 sal
, NULL comm
, 10 deptno
FROM DUAL
UNION ALL
SELECT 7788 empno
, 'SCOTT' ename
, 'ANALYST' job
, 7566 mgr
, '19-Apr-87' hiredate
, 3000 sal
, NULL comm
, 20 deptno
FROM DUAL
UNION ALL
SELECT 7839 empno
, 'KING' ename
, 'PRESIDENT' job
, NULL mgr
, '17-Nov-81' hiredate
, 5000 sal
, NULL comm
, 10 deptno
FROM DUAL
UNION ALL
SELECT 7844 empno
, 'TURNER' ename
, 'SALESMAN' job
, 7698 mgr
, '08-Sep-81' hiredate
, 1500 sal
, NULL comm
, 30 deptno
FROM DUAL
UNION ALL
SELECT 7876 empno
, 'ADAMS' ename
, 'CLERK' job
, 7788 mgr
, '23-May-87' hiredate
, 1100 sal
, NULL comm
, 20 deptno
FROM DUAL
UNION ALL
SELECT 7900 empno
, 'JAMES' ename
, 'CLERK' job
, 7698 mgr
, '03-Dec-81' hiredate
, 950 sal
, NULL comm
, 30 deptno
FROM DUAL
UNION ALL
SELECT 7902 empno
, 'FORD' ename
, 'ANALYST' job
, 7566 mgr
, '03-Dec-81' hiredate
, 3000 sal
, NULL comm
, 20 deptno
FROM DUAL
UNION ALL
SELECT 7934 empno
, 'MILLER' ename
, 'CLERK' job
, 7782 mgr
, '23-Jan-82' hiredate
, 1300 sal
, NULL comm
, 10 deptno
FROM DUAL)
SELECT *
FROM emp,dept
where emp.deptno =dept.deptno -
Unable to Create Fact and Dimension tables from the Tools menu in EIS conso
Hi All,
In the EIS console, I am unable to create the fact table and the dimension tables to produce my OLAP model from the TOOLS menu whereas I am able to create them by dragging from the left panel where the tables are displayed. I am geeting the below error message:
"An exception occured while retrieving OLAP model metadata. Please verify you are connected to the catalog and try again"
Any help appreciated.
Thanks,
RajaI have fact and dimension tables in one server and i moved those stuff to another server.If I do that what happen to essbase and about totale EPM System.I want to know how to do this and what I can expect?
Please reply -
Cutting and pasting tables from one project to another
When cutting and pasting existing tables from one project to
another, the line weights for the cell borders seem to vary at
random - some are the original line weight and some are heavier
when pasted.
I've tried sorting things out with the table properties
dialogue, but to no effect.
Is there a quick fix, or am I better importing in whole
topics and then editing the imported topic?Hi Colum/Peter,
It's not a custom table, I just need to copy an existing
table from one project to another.
My blasted developers (may the fleas of a thousand camels,
etc), just decided to change the toolbars in one of our
applications. As this toolbar appears in slightly different guises
in about 6 tabs, I was trying to update the table that shows what
icon does what and cut and paste that table into all the sub
projects I have. Each table then only needs a minor edit for a few
icons specific to that sub-project.
Peter's on the right track. When I cut and pasted the table
it also pasted in a number of lines of HTML associated with the
styles in the other project. If I delete those lines, the table
then appears as it should.
Thanks for prompt response -
Transfer of FM, reports and DB tables from one system to another System
Hello Experts,
I have one query,
We have two different development system and I want to transfer few programs, function modules and DB tables with entries to another development system.
Ex. 100 (Client) 1st Development system.
200 (Client) 2nd Development System.
I want Transfer Programs from client 100 to client 200 system.
Can you please tell me how we can do this?
Thanks in advance.Hi,
Try it using tcode SCC1.
Thanks,
Archana -
Need to create a procedure whic h search and drop tables from the db.
Dear Gurus,
I need to create a procedure, which first checks the tables and then drop those tables if find in the database. For example, I have 5 tables, then my procedure should first checks the existence , then drop all those 5 tables from the database. Actually, I have to attach this procedure to report buildeer, so please keep in mind the above mentioned scenario. Your input will be highly appriciated.
hare krishna
AlokDropping 5 tables each time user hits the report!!! (According to my understanding)
I would like to share my experience. My group developed many complex reports, we used oracle jobs to run the complex queries time to time, according to our business requirements and stored the result in a final table. Just for viewing at front end level, we used a simple select statement.
-aijaz -
Cutting and pasting tables from PDF files
Hi
We use large pdf files for survey data tables (typically 500-1000 pages). It would be very useful to be able to cut and paste tables into MS-Office applictions, but this is generally not available. However, I have been able to cut and paste from another pdf file.
Right click on the selected tables gives two different menus, even though the software is the same (Adobe reader 9). The file I can cut and paste from has a right-click menu 'Copy with formatting', which works fine - the survey tables don't have the 'Copy with formatting' option.
What causes this difference? Is it possible to get the copy with formatting option?
Apologies if this is really obvious - any help gratefully recieved.
Regards
Georges"Copy with formatting" is available when working with a Tagged output PDF.
If the survey data tables' PDF is created via a reporting app it is most likely not a Tagged output PDF (and likely, not able to be processed out as a Tagged PDF).
Be well... -
What I should do If I move fact and dimension tables from one server to other server
Hi
I have question like
what all changes need to be done in EPM System if we move the Fact and Dimension tables to a different server.
Reply me asap and thanks in advanceI have fact and dimension tables in one server and i moved those stuff to another server.If I do that what happen to essbase and about totale EPM System.I want to know how to do this and what I can expect?
Please reply -
Needed - BW data model and list of Dimensions and Fact table from BW
Dear Friends,
Can somebody please share SAP BW DATA MODEL (LOGICAL) and share the list of DIMENSION and FACT tables exist in BW?
I don't have access to SAP or SAP BW and I am building data-mart and SAP FI/CO will be the source.
Thank you very much in advance.
Regards,
Nitin
Edited by: Nitin Baradia on Apr 5, 2010 9:08 AMLet me rephrase.
I got an EarlyWatch that said my dimensions on one of cube were too big. I ran SAP_INFOCUBE_DESIGNS in SE38 in my development box and that confirmed it.
So, I redesigned the cube, reactivated it and reloaded it. I then ran SAP_INFOCUBE_DESIGNS again. The cube doesn't even show up on it. I suspect I have to trigger something in BW to make it populate for that cube. How do I make that happen manually?
Thanks.
Dave -
Upload and download tables from sap
hi!
i need to download tables from sap 46c in order to upload them again in anther sap system.
is it possible lie doing with programs?
regards
yifathi, about download table content, you can using this one, RFC_READ_TABLE.
It's a RFC FM, so you can call it from your target SAP system, with a available RFC destination already built.
After call it, do modify TABLE in target system.
By the way, I think if you really need to copy data to onther SAP system, you can try client copy, or transportation.
thanks -
Hi all,
11.2.0.1
I have departments in table DEPT which are 10 and 20. Department 10 has 100 employees in EMP while Department 20 has none in EMP, so it has no matching rows.
How can I create a query such that all dept with no EMP will be displayed:
DEPT EMP
==== ====
10 100
20 0
30 20
Thanks,
pKselect d.deptno
, (select count(*) from emp e where e.deptno = d.deptno) emps
from dept d;
-- or:
select *
from ( select d.deptno
, (select count(*) from emp e where e.deptno = d.deptno) emps
from dept d
where emps = 0;
Maybe you are looking for
-
How do I create a new user account (Admin) on iPad3 iOS 6.1.3?
Is it possible to create a new Admin account on an iPad 3? I currently login to Diana's iPad by entering a four digit security code.
-
Adobe air app integration with mac help
Hi all, I want to intergrate my help with adobe air app on mac(so that it should look like mac help). But i am not able to do so as we need to add entry in the file info.plist for doing it. Can anyone please guide me on this. I have downloaded sever
-
I need a copy of my bill from Adobe please. How do i recieve it.
I need a copy of my bill please.
-
New DB Default Username and PW ??
Using the Enterprise Managment console I created a new Database inv1 and now I want to log into the database what is the default database user name and the default password, once I have this I can login as sysdba and then create other users. Thanks A
-
Manually running some tape archives from each of the various protection groups on our DPM2010 server (tape drive is standalone Quantum LTO5 - 1.5/3.0 TB). Co-location is enabled. Everything backs up normally, with the exception of any job from a new