1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
SELECT employee_id , emp_name , salary FROM employees WHERE salary > 5000 AND job_id = 'it_prog' ORDER BY employee_id;
SELECT employee_id , emp_name , salary , job_id FROM employees WHERE salary > 5000 OR job_id = 'it_prog' ORDER BY employee_id;
SELECT * FROM employees;
CREATE TABLE ex3_1 ( col1 VARCHAR2(10), col2 NUMBER, col3 DATE );
INSERT INTO ex3_1(col1, col2, col3) VALUES ('ABC', 10, SYSDATE);
INSERT INTO ex3_1(col3, col1, col2) VALUES (SYSDATE, 'DEF', 20);
SELECT * FROM ex3_1;
INSERT INTO ex3_1(col1, col2, col3) VALUES ('ABC', 10, 30);
INSERT INTO ex3_1 VALUES ('GHI', 10, SYSDATE);
INSERT INTO ex3_1 (col1, col2) VALUES('GHI', 20);
SELECT * FROM ex3_1;
|