Practice 1 - first Save your SQL statement to a file name...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Practice 1 - SQL 1. Initiate a SQL*PLUS session using the user ID and password provided by the instructor 2. SQL * Plus commands access the database True/False 3. Will the SELECT statement execute successfully? True/False Select ename, job, sal salary From emp; 4. Will the SELECT statement execute successfully? True/False Select * from salgrade; 5. There are three coding errors in this statement. Can you identify them? Select empno, ename Salary x 12 ANNUAL SALARY From emp; 6. Show the structure of the DEPT table. Select all data from the DEPT table. 7. 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
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: first. Save your SQL statement to a file name p1q7.sql 8. Run the query in the file p1q7.sql 9. Create a query to display unique jobs from the EMP table. 10. Load p1q7.sql into the SQL buffer. Name the column headings Emp#, Employee, Job, and Hire Date, respectively and display the output. 11. Display the name concatenated with the job, separated by a comma and space and name the column Employee and Title. 12. Create a query to display all the data from the EMP table. Separate each column by a comma. Name the column THE_OUTPUT. THE_OUTPUT 7839,KING,PRESEDENT, ,17-NOV-81,5000,,10 …...
View Full Document

This note was uploaded on 01/29/2012 for the course INTERNATIO 101 taught by Professor Mr.johnnash during the Spring '11 term at Symbiosis International University.

Ask a homework question - tutors are online