Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Chapter 1 4 Individual Assignment: Using an Object Table of XMLType in Oracle Step 1 4 . 1 - Open the text file called: Chapter

Chapter 14 Individual Assignment: Using an Object Table of XMLType in Oracle
Step 14.1- Open the text file called: Chapter_14_Individual_Assignment_Using_an_Object_Table_of_XMLTYPE.txt
Step 14.2- Copy each SQL statement and paste them into SQL*Plus at the SQL> prompt to see an example of creating and using an Oracle Object Table of XMLType called Customers.
Note: Log into the Oracle Database as your Oracle User ID to run all of the statements in the text file (Do not use SYS or SYSTEM for this step).
Note: Show your work by providing screenshots that include the current user id, current system date, executing the SQL statements in the database, and the results. To display the current user and current date, run the following statement before running the SQL statements:
SQL> select user||''||sysdate from dual;
Step 14.3 Design an Oracle Object Table of XMLType called Employees. Then create the Oracle Object Table of XMLType in the database.
Note: Use your Oracle User ID to create the Employees table (Do not use SYS or SYSTEM for this step).
Note: Show your work by providing screenshots that include the current user id, current system date, executing the SQL statements in the database, and the results.
Step 14.4- Design 3 Insert SQL statements using XML format. Then insert the 3 records into the table. Table attributes should include: employee_id, employee_name, employee_address, employee_telephone, employee_job_title, employee_salary.
Note: Use your Oracle User ID to run the Inserts into the Employees table (Do not use SYS or SYSTEM for this step).
Note: Show your work by providing screenshots that include the current user id, current system date, executing the SQL statements in the database, and the results.
Step 14.5- Design 5 Select SQL statements using the example in Step 14.1 as a guide. Then execute the 5 SQL statements in the database.
Note: Show your work by providing screenshots that include the current user id, current system date, executing the SQL statements in the database, and the results.
Note: To display all of the data properly, run the following 2 statements after you log into the Oracle Database as your Oracle User ID (before running the five query statements):
SET LONG 10000
SET PAGESIZE 10014.a - Creating an Object Table of XMLType
create table Customers of XMLtype;
--14.b - Inserting into an XMLType Table
insert into customers values(XMLType(
'
WorldWide Travel Agency

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions

Question

Differentiate between essential and nonessential activities.

Answered: 1 week ago