db.books.35_generated_columns_A.sql Maven / Gradle / Ivy
The newest version!
-- Generated columns
-- Oracle syntax
CREATE TABLE X_EMPLOYEES(
EMPLOYEEID INTEGER NOT NULL,
EMPLOYEE_NAME VARCHAR2(30),
START_DATE DATE,
END_DATE DATE,
ANNUAL_SALARY INTEGER,
HOURLY_RATE GENERATED ALWAYS AS (ANNUAL_SALARY/2080),
ACTIVE AS (CASE WHEN END_DATE IS NULL THEN 'Y' ELSE 'N' END)
);
© 2015 - 2025 Weber Informatics LLC | Privacy Policy