Oracle note (3) Scott's table structure

Source: Internet
Author: User


Oracle note (3) Scott's table structure is being studied in Oracle, focusing on SQL statements, and all SQL statements must be completed under scott, this user has a total of four tables. You can use: SELECT * FROM tab; to view the names of all data tables. If you want to know the table structure of each table, you can run the following command to complete the operation: DESC table name; 1. Department table: dept region www.2cto.com name type description 1 DEPTNONUMBER (2) indicates the Department number, composed of two digits 2DNAMEVARCHAR2 (14) department name, consists of a maximum of 14 characters 3LOCVARCHAR2 (13) Department location

2. Employee table: emp ‑ www.2cto.com name type description 1 EMPNONUMBER (4) employee ID, composed of four digits 2ENAMEVARCHAR2 (10) employee name, A 10-character position consisting of 3JOBVARCHAR2 (9) Employee position 4 MGRNUMBER (4) Employee corresponding leadership number, leadership is also employee 5HIREDATEDATE employee employment date 6 SALNUMBER (7, 2) basic salary, there are two decimal places, five times integer, a total of seven 7 www.2cto.com COMMNUMBER () prize, Commission 8 DEPTNONUMBER (2) Employee's Department number

3. salary level table: salgrade region name type description 1GRADENUMBER salary level 2LOSALNUMBER minimum wage level 3HISALNUMBER highest salary level

4. Payroll: bonus employee www.2cto.com name type description 1ENAMEVARCHAR2 (10) employee name 2JOBVARCHAR2 (9) Employee position 3SALNUMBER employee's salary 4COMMNUMBER employee's bonus
 

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.