Create a sequence deptid_seq to generate department Id (in dept table) and another sequence empid_seq to generate employee Id (in the employee table). Use deptid_seq to add a new department in the dept table. Now, add yourself as a new employee with empid_seq in the department you just added.

Use case study databases for the following queries.


```
SQL> CREATE SEQUENCE DEPTID_SEQ
2 START WITH 55
3 INCREMENT BY 10
4 MAXVALUE 95
5 NOCACHE;

SEQUENCE CREATED.

SQL> CREATE SEQUENCE EMPID_SEQ
2 START WITH 600
3 MAXVALUE 999
4 NOCACHE;

SEQUENCE CREATED.

SQL> INSERT INTO DEPT
2 VALUES (DEPTID_SEQ.NEXTVAL, 'PROJECTS', 'MONROE', 111);

1 ROW CREATED.

SQL> INSERT INTO EMPLOYEE
2 VALUES (EMPID_SEQ.NEXTVAL, 'SHAH', 'NILESH', 2, 111,
3 '13-JAN-04', 110000, 5000, DEPTID_SEQ.CURRVAL, 1);

1 ROW CREATED.
```

Computer Science & Information Technology

You might also like to view...

Explain in detail why the phrase “software program” is redundant.

What will be an ideal response?

Computer Science & Information Technology

A useful visual presentation of information that is related both horizontally as well as vertically is called a(n):

A) Header. B) Table. C) Inventory Manager. D) Footer.

Computer Science & Information Technology

Constantly updated sites of the World Live Web, such as ____, provide their own search engine to enable users to find content on its site that might be too new to be indexed by traditional search engines.

A. Outlook B. Delicious C. Digg D. YouTube

Computer Science & Information Technology

Case Based Critical ThinkingKatie's team takes on their biggest challenge to date: designing and producing a cookbook. Katie has a kickoff meeting to discuss the project with her staff. Someone on her team asks for advice on creating an index.  What does Katie tell them?

A. You can only create one entry per index item B. You cannot anticipate the way in which a reader will search, so just add the one entry that is the closest to the item C. Cookbooks do not require an index D. Create a cross reference using the New Cross-reference dialog box

Computer Science & Information Technology