Sunteți pe pagina 1din 1

PRACTICA 1 SQL 1. 2. SQL*Plus commands access the database. True/False Will the SELECT statement execute successfully?

True/False SQL> SELECT rownum, ename, job, sal Salary 2 FROM emp; Will the SELECT statement execute successfully? True/False SQL> SELECT * 2 FROM salgrade; There are three coding errors in this statement,. Can you identify them? SQL> SELECT empno, ename 2 salary x 12 ANNUAL SALARY 3 FROM emp; Show the structure of the DEPT table. Select all data from the DEPT table.

3.

4.

5.

6. Show the structure of the EMP table. Create a query to display the name, job, hire date and employee number for each employee, with employee number appearing first. 7. Create a query to display unique jobs from the EMP table.

10. Name the column headings Emp #, Employee, Job, and Hire Date, respectively. Rerun your query. Emp # Employee Job Hire Date ----- --------- ---------- ---------------

S-ar putea să vă placă și