SET DATABASE UNIQUE NAME HSQLDB9831887274
SET DATABASE DEFAULT RESULT MEMORY ROWS 0
SET DATABASE EVENT LOG LEVEL 0
SET DATABASE TRANSACTION CONTROL LOCKS
SET DATABASE DEFAULT ISOLATION LEVEL READ COMMITTED
SET DATABASE TRANSACTION ROLLBACK ON CONFLICT TRUE
SET DATABASE TEXT TABLE DEFAULTS ''
SET DATABASE SQL NAMES FALSE
SET DATABASE SQL RESTRICT EXEC FALSE
SET DATABASE SQL REFERENCES FALSE
SET DATABASE SQL SIZE TRUE
SET DATABASE SQL TYPES FALSE
SET DATABASE SQL TDC DELETE TRUE
SET DATABASE SQL TDC UPDATE TRUE
SET DATABASE SQL SYS INDEX NAMES TRUE
SET DATABASE SQL CONCAT NULLS TRUE
SET DATABASE SQL UNIQUE NULLS TRUE
SET DATABASE SQL CONVERT TRUNCATE TRUE
SET DATABASE SQL AVG SCALE 0
SET DATABASE SQL DOUBLE NAN TRUE
SET FILES WRITE DELAY 500 MILLIS
SET FILES BACKUP INCREMENT TRUE
SET FILES CACHE SIZE 10000
SET FILES CACHE ROWS 50000
SET FILES SCALE 32
SET FILES LOB SCALE 32
SET FILES DEFRAG 0
SET FILES NIO TRUE
SET FILES NIO SIZE 256
SET FILES LOG TRUE
SET FILES LOG SIZE 50
SET FILES CHECK 317
SET DATABASE COLLATION "SQL_TEXT" PAD SPACE
CREATE USER SA PASSWORD DIGEST 'd41d8cd98f00b204e9800998ecf8427e'
ALTER USER SA SET LOCAL TRUE
CREATE SCHEMA PUBLIC AUTHORIZATION DBA
CREATE SEQUENCE PUBLIC.DEPARTMENTS_ID_SEQ AS INTEGER START WITH 1
CREATE SEQUENCE PUBLIC.EMPLOYEES_ID_SEQ AS INTEGER START WITH 1
CREATE MEMORY TABLE PUBLIC.DEPARTMENTS(ID BIGINT NOT NULL PRIMARY KEY,NAME VARCHAR(80) NOT NULL,HEAD VARCHAR(80),BUSINESS_UNIT VARCHAR(4) NOT NULL,UPDATE_TIMESTAMP TIMESTAMP NOT NULL)
CREATE UNIQUE INDEX DEPARTMENT_NAME_IDX ON PUBLIC.DEPARTMENTS(NAME)
CREATE MEMORY TABLE PUBLIC.EMPLOYEES(ID BIGINT NOT NULL PRIMARY KEY,SALUTATION VARCHAR(5),FIRST_NAME VARCHAR(40) NOT NULL,LAST_NAME VARCHAR(40) NOT NULL,DATE_OF_BIRTH DATE,DEPARTMENT_ID BIGINT NOT NULL,GENDER VARCHAR(1) NOT NULL,PHONE_NUMBER VARCHAR(40),EMAIL VARCHAR(80),SALARY DECIMAL(10,2),RETIRED BIT(1) NOT NULL,UPDATE_TIMESTAMP TIMESTAMP NOT NULL,CONSTRAINT EMPLOYEES_DEPARTMENT_FK FOREIGN KEY(DEPARTMENT_ID) REFERENCES PUBLIC.DEPARTMENTS(ID))
CREATE UNIQUE INDEX EMPLOYEE_NAME_IDX ON PUBLIC.EMPLOYEES(FIRST_NAME,LAST_NAME,DATE_OF_BIRTH)
CREATE MEMORY TABLE PUBLIC.PAYMENTS(EMPLOYEE_ID BIGINT NOT NULL,YEAR DECIMAL(4) NOT NULL,MONTH DECIMAL(2) NOT NULL,AMOUNT DECIMAL(8,2) NOT NULL,PRIMARY KEY(EMPLOYEE_ID,YEAR,MONTH),CONSTRAINT PAYMENTS_EMPLOYEE_FK FOREIGN KEY(EMPLOYEE_ID) REFERENCES PUBLIC.EMPLOYEES(ID))
ALTER SEQUENCE SYSTEM_LOBS.LOB_ID RESTART WITH 1
ALTER SEQUENCE PUBLIC.DEPARTMENTS_ID_SEQ RESTART WITH 3
ALTER SEQUENCE PUBLIC.EMPLOYEES_ID_SEQ RESTART WITH 6
SET DATABASE DEFAULT INITIAL SCHEMA PUBLIC
GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.CARDINAL_NUMBER TO PUBLIC
GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.YES_OR_NO TO PUBLIC
GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.CHARACTER_DATA TO PUBLIC
GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.SQL_IDENTIFIER TO PUBLIC
GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.TIME_STAMP TO PUBLIC
GRANT DBA TO SA
SET SCHEMA SYSTEM_LOBS
INSERT INTO BLOCKS VALUES(0,2147483647,0)
SET SCHEMA PUBLIC
INSERT INTO DEPARTMENTS VALUES(1,'Development','Bloggs','ITTK','2025-07-22 11:48:02.632000')
INSERT INTO DEPARTMENTS VALUES(2,'Sales',NULL,'ITTK','2025-07-22 11:48:02.602000')
INSERT INTO EMPLOYEES VALUES(1,NULL,'Peter','Sharp',NULL,1,'M','+49-7531-457160',NULL,2084.57,'0','2026-01-07 11:00:31.479000')
INSERT INTO EMPLOYEES VALUES(2,NULL,'Fred','Bloggs',NULL,1,'M','+49-5555-505050',NULL,1927.30,'0','2026-01-07 11:00:31.485000')
INSERT INTO EMPLOYEES VALUES(3,NULL,'Emma','White',NULL,2,'F','+49-040-125486',NULL,19500.00,'0','2025-07-22 11:48:02.614000')
INSERT INTO EMPLOYEES VALUES(4,NULL,'John','Doe',NULL,2,'M',NULL,NULL,18800.00,'0','2025-07-22 11:48:02.619000')
INSERT INTO EMPLOYEES VALUES(5,NULL,'Sarah','Smith',NULL,1,'F',NULL,NULL,1986.73,'0','2026-01-07 11:00:31.485000')
INSERT INTO PAYMENTS VALUES(1,2024,0,2116.47)
INSERT INTO PAYMENTS VALUES(1,2024,1,1984.97)
INSERT INTO PAYMENTS VALUES(1,2024,2,2164.44)
INSERT INTO PAYMENTS VALUES(1,2024,3,2163.83)
INSERT INTO PAYMENTS VALUES(1,2024,4,2084.11)
INSERT INTO PAYMENTS VALUES(1,2024,5,2109.05)
INSERT INTO PAYMENTS VALUES(1,2024,6,2110.20)
INSERT INTO PAYMENTS VALUES(1,2024,7,2067.47)
INSERT INTO PAYMENTS VALUES(1,2024,8,2032.56)
INSERT INTO PAYMENTS VALUES(1,2024,9,2138.33)
INSERT INTO PAYMENTS VALUES(1,2024,10,2081.66)
INSERT INTO PAYMENTS VALUES(1,2024,11,2032.26)
INSERT INTO PAYMENTS VALUES(1,2025,0,2141.56)
INSERT INTO PAYMENTS VALUES(1,2025,1,2143.74)
INSERT INTO PAYMENTS VALUES(1,2025,2,2165.99)
INSERT INTO PAYMENTS VALUES(1,2025,3,2031.24)
INSERT INTO PAYMENTS VALUES(1,2025,4,2009.95)
INSERT INTO PAYMENTS VALUES(1,2025,5,2023.82)
INSERT INTO PAYMENTS VALUES(1,2025,6,2122.72)
INSERT INTO PAYMENTS VALUES(3,2023,8,1676.30)
INSERT INTO PAYMENTS VALUES(3,2023,9,1539.27)
INSERT INTO PAYMENTS VALUES(3,2023,10,1589.12)
INSERT INTO PAYMENTS VALUES(3,2023,11,1585.46)
INSERT INTO PAYMENTS VALUES(3,2024,0,1711.29)
INSERT INTO PAYMENTS VALUES(3,2024,1,1527.65)
INSERT INTO PAYMENTS VALUES(3,2024,2,1707.65)
INSERT INTO PAYMENTS VALUES(3,2024,3,1631.66)
INSERT INTO PAYMENTS VALUES(3,2024,4,1628.84)
INSERT INTO PAYMENTS VALUES(3,2024,5,1696.50)
INSERT INTO PAYMENTS VALUES(3,2024,6,1697.37)
INSERT INTO PAYMENTS VALUES(3,2024,7,1705.28)
INSERT INTO PAYMENTS VALUES(3,2024,8,1631.25)
INSERT INTO PAYMENTS VALUES(3,2024,9,1644.49)
INSERT INTO PAYMENTS VALUES(3,2024,10,1638.11)
INSERT INTO PAYMENTS VALUES(3,2024,11,1579.79)
INSERT INTO PAYMENTS VALUES(3,2025,0,1595.32)
INSERT INTO PAYMENTS VALUES(3,2025,1,1584.49)
INSERT INTO PAYMENTS VALUES(3,2025,2,1705.24)
INSERT INTO PAYMENTS VALUES(3,2025,3,1535.01)
INSERT INTO PAYMENTS VALUES(3,2025,4,1570.31)
INSERT INTO PAYMENTS VALUES(3,2025,5,1589.28)
INSERT INTO PAYMENTS VALUES(3,2025,6,1635.85)
INSERT INTO PAYMENTS VALUES(4,2023,8,1537.52)
INSERT INTO PAYMENTS VALUES(4,2023,9,1492.59)
INSERT INTO PAYMENTS VALUES(4,2023,10,1563.42)
INSERT INTO PAYMENTS VALUES(4,2023,11,1644.99)
INSERT INTO PAYMENTS VALUES(4,2024,0,1599.96)
INSERT INTO PAYMENTS VALUES(4,2024,1,1478.96)
INSERT INTO PAYMENTS VALUES(4,2024,2,1555.33)
INSERT INTO PAYMENTS VALUES(4,2024,3,1607.79)
INSERT INTO PAYMENTS VALUES(4,2024,4,1503.24)
INSERT INTO PAYMENTS VALUES(4,2024,5,1662.30)
INSERT INTO PAYMENTS VALUES(4,2024,6,1597.99)
INSERT INTO PAYMENTS VALUES(4,2024,7,1540.34)
INSERT INTO PAYMENTS VALUES(4,2024,8,1594.86)
INSERT INTO PAYMENTS VALUES(4,2024,9,1541.15)
INSERT INTO PAYMENTS VALUES(4,2024,10,1559.06)
INSERT INTO PAYMENTS VALUES(4,2024,11,1588.71)
INSERT INTO PAYMENTS VALUES(4,2025,0,1658.09)
INSERT INTO PAYMENTS VALUES(4,2025,1,1580.82)
INSERT INTO PAYMENTS VALUES(4,2025,2,1662.68)
INSERT INTO PAYMENTS VALUES(4,2025,3,1516.00)
INSERT INTO PAYMENTS VALUES(4,2025,4,1658.02)
INSERT INTO PAYMENTS VALUES(4,2025,5,1656.84)
INSERT INTO PAYMENTS VALUES(4,2025,6,1593.82)
INSERT INTO PAYMENTS VALUES(5,2024,1,3712.52)
INSERT INTO PAYMENTS VALUES(5,2024,2,3701.72)
INSERT INTO PAYMENTS VALUES(5,2024,3,3700.66)
INSERT INTO PAYMENTS VALUES(5,2024,4,3735.87)
INSERT INTO PAYMENTS VALUES(5,2024,5,3747.88)
INSERT INTO PAYMENTS VALUES(5,2024,6,3627.49)
INSERT INTO PAYMENTS VALUES(5,2024,7,3689.30)
INSERT INTO PAYMENTS VALUES(5,2024,8,3691.68)
INSERT INTO PAYMENTS VALUES(5,2024,9,3595.01)
INSERT INTO PAYMENTS VALUES(5,2024,10,3724.73)
INSERT INTO PAYMENTS VALUES(5,2024,11,3579.28)
INSERT INTO PAYMENTS VALUES(5,2025,0,3580.73)
INSERT INTO PAYMENTS VALUES(5,2025,1,3583.22)
INSERT INTO PAYMENTS VALUES(5,2025,2,3723.42)
INSERT INTO PAYMENTS VALUES(5,2025,3,3567.65)
INSERT INTO PAYMENTS VALUES(5,2025,4,3721.49)
INSERT INTO PAYMENTS VALUES(5,2025,5,3597.20)
INSERT INTO PAYMENTS VALUES(5,2025,6,3741.68)
