In Oracle learning, the focus is on the learning of SQL statements, and all SQL statements are done under the Scott user.

Source: Internet
Author: User

It is necessary to familiarize yourself with the four tables under this user.

View all table names:

SELECT * FROM tab;

To view the structure of each table:

DESC 表名称;

1, Department table: Dept

No Name type description

1 DEPTNO Number (2) department numbers, two digits.

2 dname VARCHAR2 (14) department name, up to 14 characters

3 LOC VARCHAR2 (13) Department location

2. Employee table: EMP

No Name type description

1 EMPNO numer (4) The employee's number, which consists of four digits

2 ename VARCHAR2 (10) The name of the employee, consisting of four characters

3 Job VARCHAR2 (9) Position of employee

4 MGR Numer (4) The number of the employee-corresponding leader, the leader is also an employee

5 HireDate Date Employee's employment time

6 SAL Number (7,2) base pay, two decimal places, five-bit integers. A total of seven digits.

7 COMM Numer (7,2) bonus, commission.

8 DEPTNO Numer (2) The department number where the employee is located.

3. Payroll Registration Form: Salgrade

No Name type description

1 GRADE Number Salary level

2 losal number minimum wage for this level

3 Hisal Number The maximum wage for this level.

4. Salary Table

No Name type description

1 ename VARCHAR2 (10) Employee name

2 Job VARCHAR2 (9) Employee positions

3 SAL number Employee's salary

4 COMM number Employee's bonus

In Oracle learning, the focus is on the learning of SQL statements, and all SQL statements are done under the Scott user.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.