DP 1 2 Practice

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

www.oracle.

com/academy

Database Programming with SQL


1.2: Relational Database Technology
Practice Activities
Objectives
 Define and give an example of a relational database
 Identify table-key terms, including row, column, field, primary key, and foreign key
 Relate the importance of databases to everyday life

Vocabulary
Identify the vocabulary word for each definition below.

Row An entry in a table, consisting of values for each appropriate col-


umn.
Primary Key The set of mandatory columns within a table that is used to en-
force uniqueness of rows, and that is normally the most frequent
means by which rows are accessed.
Table An arrangement of data in rows and columns.

Foreign key A column or set of columns that refers to a primary key in the
same table or another table.
Relational Database Collections of objects or relations, set of operators to act on those
relations, and data integrity for accuracy and consistency
Field Intersection of a row and column

Database Manipulation language Used to modify the table data by entering, changing, or removing
(DML) rows
Data Definition language (DDL) Creates, changes, and removes data structures from the data-
base
Transaction Control language Used to manage the changes made by DML statements
(TCL)
Data Control language (DCL) Used to give or remove access rights to the database and the
structures within it

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their
respective owners.
This study source was downloaded by 100000833626226 from CourseHero.com on 09-22-2022 22:54:32 GMT -05:00

https://www.coursehero.com/file/40168920/DP-1-2-Practicedocx/
2

Try It / Solve It
1. The Global Fast Foods database consists of how many tables? 9 tables

2. How is the F_SHIFTS table related to the F_STAFFS table? F_SHIFT_ASSIGNMENTS

3. What are the names of the columns in the F_CUSTOMERS table?


ID, FIRST_NAME, LAST_NAME, ADDRESS, CITY, STATE, ZIP, PHONE_NUMBER

4. How many rows of data have been entered in the F_PROMOTIONAL_MENUS table?
2

5. In the F_FOOD_ITEMS table, column is a foreign-key column. What table and


column is this key referencing?
REGULAR_CODE to F_REGULAR_MENUS
PROMO_CODE to F_PROMOTIONAL_MENUS

6. List the primary key to foreign key relationships required to go from the F_SHIFTS table to
the F_REGULAR_MENUS table.
F_SHIFTS to F_SHIFT_ASSIGNMENTS to F_STAFFS to F_ORDERS to
F_ORDER_LINES to F_FOOD_ITEMS to F_REGULAR_MENUS.

7. Which table(s) contains null values?


F_STAFFS and F_FOOD_ITEMS

This study source was downloaded by 100000833626226 from CourseHero.com on 09-22-2022 22:54:32 GMT -05:00

https://www.coursehero.com/file/40168920/DP-1-2-Practicedocx/
Powered by TCPDF (www.tcpdf.org)

You might also like