Uploaded by Habana OhNaNa

Assignment No. 3 Ensuring Quality Query Results

advertisement
Technological Institute of the Philippines
938 Aurora Blvd. Cubao, Quezon City
College of Computer Studies
ITE 014 – Information Management
Final Period
Name: Surname, Firstname Mi.
Date:
Program / Section:
Instructor
Assessment Task: Assignment No. 3: Ensuring Quality Query Results
Instructions:
- Connect to the SQL Plus, SQL Developer, or SQL Live using a database account. Example:
ORA2_PDBRAP or you can use Oracle SQL Live.
- Analyze and perform the problems below and answer it to the best of your ability
- Include screenshots of your complete SQL Statements and the result/s. (for hands-on problems)
Note: No screenshots. No Points. Must screenshot the entire SQL tool.
- There must be a full name for each image (see sample image below)
- Save your work as SURNAME_Assign3.DOCX (Ex. Pagaduan_Assign3.DOCX). Also, save
your file in .PDF format.
- Each item corresponds to one (1) point, total points is 27.
1. Problem:
- Create a list of all tables whose first
two characters in the name of the
table is JO.
- The tables must be owned by the
current Oracle User.
Tables Used:
- User_tables
Answer
Query:
SQL>
a space, and the last name of the
employee.
Tables Used:
- Employees
Answer
Query:
SQL>
Output:
Output:
2. Problem:
- Create a list that includes the first
initial of every employee's first name,
3. Problem:
- Create a list of every employee's first
name concatenated to a space and
the employee's last name, and the
email of all employees where the
email address contains the string 'IN'.
Tables Used:
- Employees
Answer:
Query:
SQL>
Output:
4. Problem:
– Create a list of 'smallest' last name and
the 'highest' last name from the
employees table.
Tables Used:
- Employees
Answer:
Query:
SQL>
Output:
5. Note: see pdf file for questions number
5 to 27. Follow the template above.
Honor Pledge: "I affirm that we have not given or
received any unauthorized help on this
assignment and that this work is our own"
Download