後の例で使用するテーブルを作成して、データを取り込みます。
CREATE TABLE employeeTable(empId INTEGER, age INTEGER, pos CHAR(10), salary INTEGER); INSERT INTO employeeTable(1, 24, 'engineer', 50000); INSERT INTO employeeTable(2, 34, 'engineer', 100000); INSERT INTO employeeTable(3, 25, 'engineer', 50000); INSERT INTO employeeTable(4, 21, 'engineer', 75000); INSERT INTO employeeTable(5, 31, 'salesman', 50000); INSERT INTO employeeTable(6, 32, 'salesman', 100000); INSERT INTO employeeTable(7, 33, 'salesman', 50000); INSERT INTO employeeTable(8, 40, 'salesman', 75000); INSERT INTO employeeTable(9, 40, 'manager', 75000); INSERT INTO employeeTable(10, 41, 'manager', 50000); INSERT INTO employeeTable(11, 45, 'manager', 125000); INSERT INTO employeeTable(12, 48, 'manager', 100000); INSERT INTO employeeTable(13, 50, 'executive', 125000); INSERT INTO employeeTable(14, 51, 'executive', 150000); INSERT INTO employeeTable(15, 52, 'executive', 150000); INSERT INTO employeeTable(16, 52, 'executive', 200000); INSERT INTO employeeTable(17, 60, 'executive', 1000000);