Table created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
SQL> commit;
Commit complete.
6 rows selected.
Table created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
Table created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
Table created.
1 row created.
SQL> insert into sal_det_71 values(&Empno,&Salary,&Grosspay,&Netpay);
Enter value for empno: 200
Enter value for salary: 2000
Enter value for grosspay: 20000
Enter value for netpay: 20000
old 1: insert into sal_det_71 values(&Empno,&Salary,&Grosspay,&Netpay)
new 1: insert into sal_det_71 values(200,2000,20000,20000)
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
6 rows selected.
6 rows selected.
SQL> select
2 *
3
SQL> select * from dept_71;
6 rows selected.
SQL> select
2
SQL>
SQL> select * from emp_71;
6 rows selected.
SQL> commit
2
SQL> commit;
Commit complete.
6 rows updated.
SQL> select * from emp_71;
6 rows selected.
6 rows updated.
1 row updated.
1 row updated.
1 row updated.
1 row updated.
1 row updated.
1 row updated.
6 rows selected.
*
ERROR at line 1:
ORA-00936: missing expression
*
ERROR at line 1:
ORA-00936: missing expression
*
ERROR at line 1:
ORA-00936: missing expression
*
ERROR at line 1:
ORA-00936: missing expression
*
ERROR at line 1:
ORA-00936: missing expression
*
ERROR at line 1:
ORA-00907: missing right parenthesis
*
ERROR at line 1:
ORA-00907: missing right parenthesis
*
ERROR at line 1:
ORA-00933: SQL command not properly ended
*
ERROR at line 1:
ORA-00923: FROM keyword not found where expected
*
ERROR at line 1:
ORA-00923: FROM keyword not found where expected
*
ERROR at line 1:
ORA-00933: SQL command not properly ended
*
ERROR at line 1:
ORA-00933: SQL command not properly ended
*
ERROR at line 1:
ORA-00933: SQL command not properly ended
NAME MANAGER_NAME
--------------- ---------------
Joel Anne
NAME
---------------
Joel
NAME
---------------
Ross
Chandler
Rachel
Joey
null
Joel
6 rows selected.
no rows selected
*
ERROR at line 1:
ORA-00936: missing expression
*
ERROR at line 1:
ORA-00907: missing right parenthesis
*
ERROR at line 1:
ORA-00907: missing right parenthesis
*
ERROR at line 1:
ORA-00907: missing right parenthesis
6 rows selected.
SQL> SELECT * FROM E.EMP_71 FROM EMP_71 E,DEPT_71 D WHERE D.NO_OF_EMPLOYEES= SELECT
MAX(NO_OF_EMPLOYEES) FROM DEPT_71 AND D.LOCATION=(SELECT LOCATION='Jacuqt' from
DEPT_71);
SELECT * FROM E.EMP_71 FROM EMP_71 E,DEPT_71 D WHERE D.NO_OF_EMPLOYEES= SELECT
MAX(NO_OF_EMPLOYEES) FROM DEPT_71 AND D.LOCATION=(SELECT LOCATION='Jacuqt' from
DEPT_71)
*
ERROR at line 1:
ORA-00933: SQL command not properly ended
SQL> SELECT * FROM E.EMP_71 FROM EMP_71 E,DEPT_71 D WHERE D.DEP_NO=E.DEP_NO AND
D.NO_OF_EMPLOYEES= (SELECT MAX(NO_OF_EMPLOYEES) FROM DEPT_71) AND
D.LOCATION=(SELECT LOCATION='Jacuqt' from DEPT_71) ;
SELECT * FROM E.EMP_71 FROM EMP_71 E,DEPT_71 D WHERE D.DEP_NO=E.DEP_NO AND
D.NO_OF_EMPLOYEES= (SELECT MAX(NO_OF_EMPLOYEES) FROM DEPT_71) AND
D.LOCATION=(SELECT LOCATION='Jacuqt' from DEPT_71)
*
ERROR at line 1:
ORA-00933: SQL command not properly ended
SQL> SELECT * FROM E.EMP_71 FROM EMP_71 E,DEPT_71 D WHERE D.DEP_NO=E.DEP_NO AND
D.NO_OF_EMPLOYEES= (SELECT MAX(NO_OF_EMPLOYEES) FROM DEPT_71) AND
D.LOCATION=(SELECT LOCATION='Jacuqt' from DEPT_71) ;
SELECT * FROM E.EMP_71 FROM EMP_71 E,DEPT_71 D WHERE D.DEP_NO=E.DEP_NO AND
D.NO_OF_EMPLOYEES= (SELECT MAX(NO_OF_EMPLOYEES) FROM DEPT_71) AND
D.LOCATION=(SELECT LOCATION='Jacuqt' from DEPT_71)
*
ERROR at line 1:
ORA-00933: SQL command not properly ended
SQL> SELECT * FROM E.EMP_71 FROM EMP_71 E,DEPT_71 D WHERE D.DEP_NO=E.DEP_NO AND
D.NO_OF_EMPLOYEES= (SELECT MAX(NO_OF_EMPLOYEES) FROM DEPT_71) AND
D.LOCATION=(SELECT LOCATION='Jacuqt' from DEPT_71);
SELECT * FROM E.EMP_71 FROM EMP_71 E,DEPT_71 D WHERE D.DEP_NO=E.DEP_NO AND
D.NO_OF_EMPLOYEES= (SELECT MAX(NO_OF_EMPLOYEES) FROM DEPT_71) AND
D.LOCATION=(SELECT LOCATION='Jacuqt' from DEPT_71)
*
ERROR at line 1:
ORA-00933: SQL command not properly ended
SQL> SELECT * FROM E.EMP_71 FROM EMP_71 E,DEPT_71 D WHERE D.DEP_NO=E.DEP_NO AND
D.NO_OF_EMPLOYEES= (SELECT MAX(NO_OF_EMPLOYEES) FROM DEPT_71) AND
LOCATION='Jacuqt';
SELECT * FROM E.EMP_71 FROM EMP_71 E,DEPT_71 D WHERE D.DEP_NO=E.DEP_NO AND
D.NO_OF_EMPLOYEES= (SELECT MAX(NO_OF_EMPLOYEES) FROM DEPT_71) AND LOCATION='Jacuqt'
*
ERROR at line 1:
ORA-00933: SQL command not properly ended
SQL> SELECT * FROM E.EMP_71 FROM EMP_71 E,DEPT_71 D WHERE D.DEP_NO=E.DEP_NO AND
D.NO_OF_EMPLOYEES= (SELECT MAX(NO_OF_EMPLOYEES) FROM DEPT_71) AND
LOCATION='Jacuqt';
SELECT * FROM E.EMP_71 FROM EMP_71 E,DEPT_71 D WHERE D.DEP_NO=E.DEP_NO AND
D.NO_OF_EMPLOYEES= (SELECT MAX(NO_OF_EMPLOYEES) FROM DEPT_71) AND LOCATION='Jacuqt'
*
ERROR at line 1:
ORA-00933: SQL command not properly ended
SQL> SELECT * FROM E.EMP_71 FROM EMP_71 E,DEPT_71 D WHERE D.DEP_NO=E.DEP_NO AND
D.NO_OF_EMPLOYEES= (SELECT MAX(NO_OF_EMPLOYEES) FROM DEPT_71) AND
D.LOCATION='Jacuqt';
SELECT * FROM E.EMP_71 FROM EMP_71 E,DEPT_71 D WHERE D.DEP_NO=E.DEP_NO AND
D.NO_OF_EMPLOYEES= (SELECT MAX(NO_OF_EMPLOYEES) FROM DEPT_71) AND
D.LOCATION='Jacuqt'
*
ERROR at line 1:
ORA-00933: SQL command not properly ended
EMP_NO
----------
600