Commit aa495b9e authored by O'Reilly Media, Inc's avatar O'Reilly Media, Inc
Browse files

Initial commit

parents
Loading
Loading
Loading
Loading
+67 −0
Changes for Learning SQL For Oracle - Working Files/Chapter 1/Assignment_1.html: 67 added lines, 0 removed lines.
Original line number Diff line number Diff line
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Assignment 1 </title>
	<style>

	body {
	  	font-family: Arial, Helvetica, sans-serif;
  	}

  	h2 {
		color: maroon;
  	}

	.lesson {
		color: maroon;
		font-weight: bold;
	}

	.lpre {
		padding-left: 10px;
		color: #000033;
		font-family: Ariel, Helvetica, san-serif;
		font-size: 14pt;
		font-weight: normal;
	}

	</style>
</head>

<body>
<br><br>
<p class="lesson">LESSON:&nbsp;&nbsp;&nbsp;
Assignment 1
</p>

<pre class="lpre">

You do not need to run any SQL statements to
answer these questions...



<b>Question 1.</b> What is an Entity?




<b>Question 2.</b>What is the purpose of a Primary Key?




<b>Question 3.</b>What does a NULL value represent?




- END -


</pre>


</body>
</html>
+77 −0
Changes for Learning SQL For Oracle - Working Files/Chapter 1/Assignment_1_Solution.html: 77 added lines, 0 removed lines.
Original line number Diff line number Diff line
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Assignment 1 Solution</title>
	<style>

	body {
	  	font-family: Arial, Helvetica, sans-serif;
  	}

  	h2 {
		color: maroon;
  	}

	.lesson {
		color: maroon;
		font-weight: bold;
	}

	.lpre {
		padding-left: 10px;
		color: #000033;
		font-family: Ariel, Helvetica, san-serif;
		font-size: 14pt;
		font-weight: normal;
	}

	</style>
</head>

<body>
<br><br>
<p class="lesson">LESSON:&nbsp;&nbsp;&nbsp;
Assignment 1 Solution
</p>

<pre class="lpre">

You do not need to run any SQL statements to
answer these questions...



<b>Question 1.</b> What is an Entity?

		An Entity is a person, place, or thing for which you wish to
		hold information.



<b>Question 2.</b>What is the purpose of a Primary Key?

		A Primay key uniquely identifies each Row in a table.

		The Primary Key is defined as any Column (or combination
		of columns) that can be used to uniquely identify a particular row.



<b>Question 3.</b>What does a NULL value represent?

		NULL means Unknown, Missing, or Not Applicable
		NULL does NOT mean Zero or Blank





- END -


</pre>


</body>
</html>
+416 −0

File added.

Preview size limit exceeded, changes collapsed.

+86 −0
Changes for Learning SQL For Oracle - Working Files/Chapter 10/Assignment_10.html: 86 added lines, 0 removed lines.
Original line number Diff line number Diff line
<!DOCTYPE HTML>

<html>
<head>
	<title>Assignment 10</title>
	<style>

	body {
	  	font-family: Arial, Helvetica, sans-serif;
  	}

  	h2 {
		color: maroon;
  	}

	.lesson {
		color: maroon;
		font-weight: bold;
	}

	.lpre {
		padding-left: 10px;
		color: #000033;
		font-family: Ariel, Helvetica, san-serif;
		font-size: 14pt;
		font-weight: normal;
	}

	</style>
</head>

<body>
<p class="lesson">LESSON:&nbsp;&nbsp;&nbsp;
Assignment 10
</p>

<pre class="lpre">


PROBLEM:

A company, XYZ, Inc., has analyzed the data attributes that they
was to track in their database. They need your help to
organize the attributes into database tables and
develop the correct relationships between the tables.

Use the data attributes below to answer the questions

	Data attributes for the XYZ Inc.
	---------------------------------

	Department name
	Job Title
	Social security numbers (SSN) for their employees
	Employee name, address and phone number
	Employee department number and job code
	Salary for employee
	Job Description for employee



<b>Question 1.</b>   Create an Entity-Relationship diagram for
the entities required to model this data.


<b>Question 2.</b>   Apply the Normalization Guidelines to decide what columns
would go with each entity.

Express your answer in Relational Notation format.
Example...

   SOMETABLE(myid-PK, name, city)






- END -


</pre>


</body>
</html>
+94 −0
Changes for Learning SQL For Oracle - Working Files/Chapter 10/Assignment_10_Solution.html: 94 added lines, 0 removed lines.
Original line number Diff line number Diff line
<!DOCTYPE HTML>

<html>
<head>
	<title>Assignment 10 Solution</title>
	<style>

	body {
	  	font-family: Arial, Helvetica, sans-serif;
  	}

  	h2 {
		color: maroon;
  	}

	.lesson {
		color: maroon;
		font-weight: bold;
	}

	.lpre {
		padding-left: 10px;
		color: #000033;
		font-family: Ariel, Helvetica, san-serif;
		font-size: 14pt;
		font-weight: normal;
	}

	</style>
</head>

<body>
<p class="lesson">LESSON:&nbsp;&nbsp;&nbsp;
Assignment 10 Solution
</p>

<pre class="lpre">


PROBLEM:

A company, XYZ, Inc., has analyzed the data attributes that they
was to track in their database. They need your help to
organize the attributes into database tables and
develop the correct relationships between the tables.

Use the data attributes below to answer the questions

	Data attributes for the XYZ Inc.
	---------------------------------

	Department name
	Job Title
	Social security numbers (SSN) for their employees
	Employee name, address and phone number
	Employee department number and job code
	Salary for employee
	Job Description for employee


<b>Question 1.</b>   Create an Entity-Relationship diagram for
the entities required to model this data.


	<img src="http://profperrytest.com/wampwww/A_OracleSQL/Working_Files/asgn_10_db.jpg" alt="Image of ER diagram for XYZ, inc.">




<b>Question 2.</b>   Apply the Normalization Guidelines to decide what columns
would go with each entity.

Express your answer in Relational Notation format.


	EMPLOYEE (employee_id-PK, ssn, last_name, first_name, street, city, zip, phone, salary, dept_num-FK, job_code-FK)
	DEPARTMENT (dept_num-PK, department_name)
	JOB (job_code-PK, job_title, job_description)








- END -


</pre>


</body>
</html>
Loading