Create the Table

First, create the employees table with various fields:

CREATE TABLE employees (
    employee_id NUMBER GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
    first_name VARCHAR2(50),
    last_name VARCHAR2(50),
    hire_date DATE,
    salary NUMBER,
    department_id NUMBER
);

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *