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

Info icon This 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
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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern