Docsity

DATABASE PROCESSING FUNDAMENTALS DESIGN AND IMPLEMENTATION COMPREHENSIVE EXAM SCRIPT VERIF, Exams of Database Management Systems (DBMS)

Toggle sidebar
bg1
DATABASE PROCESSING FUNDAMENTALS
DESIGN AND IMPLEMENTATION
COMPREHENSIVE EXAM SCRIPT VERIFIED
QUESTIONS AND SOLUTIONS GRADED
APLUS
●● Surrogate Key
Answer: an attribute that is added onto the table to the primary key.
●● Foreign Key
Answer: an attribute that serves as a primary key in another table to be
joined as a relationship between two tables
●● Primary Key
Answer: is a unique identifier by it
the values of these keys are used to create the relationships between
tables
●● Candidate Key
Answer: an attribute that's selected as a primary key but hasn't been
selected as the primary key
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12

Partial preview of the text

Download DATABASE PROCESSING FUNDAMENTALS DESIGN AND IMPLEMENTATION COMPREHENSIVE EXAM SCRIPT VERIF and more Exams Database Management Systems (DBMS) in PDF only on Docsity!

DATABASE PROCESSING FUNDAMENTALS

DESIGN AND IMPLEMENTATION

COMPREHENSIVE EXAM SCRIPT VERIFIED

QUESTIONS AND SOLUTIONS GRADED

APLUS

●● Surrogate Key Answer: an attribute that is added onto the table to the primary key. ●● Foreign Key Answer: an attribute that serves as a primary key in another table to be joined as a relationship between two tables ●● Primary Key Answer: is a unique identifier by it the values of these keys are used to create the relationships between tables ●● Candidate Key Answer: an attribute that's selected as a primary key but hasn't been selected as the primary key

●● Database Administrator Answer: Those who designs, constructs and manages the database itself ●● Database Management System (DBMS) Answer: a computer program used to create, process, and administer the database and its applications ●● Structured Query Language (SQL) Answer: the universal query language of structure and processing of a relational database by all commercial DBMS ●● Metadata Answer: data about data ●● Integrated Tables Answer: tables that store both data and the relationships among the data ●● Normalization / Normal Form Answer: a set of principles, collectively ●● Attribute Answer: a property in an entity. A column of a relation. Entities that describe their characteristics

Employee: EmployeeNumber, EmployeeName, Street, etc ●● Entity Instance EXAMPLES Answer: 1234 Maggie Gold 24 State St Stillwater FL 304493 Tom Frill [email protected] ●● Identifiers Answer: are attributes that name or identify, entity instances. ●● Identifiers EXAMPLES Answer: Employee can be identified by EmployeeNumber, SS# or EmployeeName ●● Compostie identifiers Answer: consist of two or more attributes

●● Composite identifiers EXAMPLES Answer: (AreaCode, LocalNumber), (ProjectName, TaskName), (FirstName, LastName, DateOFHire) ●● Relationship classes Answer: are associations among entity classes ●● Relationship instances Answer: are associations among entity instances. Specific relationship between two tables ●● Degree Answer: the number of entity classes in the relationship ●● Binary relationship Answer: relationships of degree two ●● Binary relationship EXAMPLE Answer: Involves two entity classes: Qualification relationship: Employee and Skill ●● Ternary relationship Answer: relationships of degree three

Answer: an entity instance of one type is related to at most one entity instance of the other type One parent entity instance can be assoicated with only one child entity instance. Also one child entity instance can be associated with only one parent entity instance. ●● One-to-one (1:1) relationship EXAMPLE Answer: in Employee-Identity relationship: associates one Employee instance with one Badge instance. (No employee has more than one badge and no badge is assigned to more than one employee) ●● One-to-many (1:N) relationship Answer: one parent entity instance can be associated with many child entity instances. Also one child entity instance can be associated with only one parent entity instance ●● One-to-many (1:N) relationship EXAMPLE Answer: in Computer_Assignment relationship: a single instance of Employee can be associated with many instances of Computer, but a Computer instance is associated with a most one instance of Employee. (an Employee can be associated with several computers, but a computer is assigned to just one computer)

●● Parent Answer: is the entity on the 1 side of the relationship ●● Child Answer: is the entity on the many side of the relationship ●● Parent and Child EXAMPLE Answer: in a 1:N relationship between Department and Employee: Department is the parent and employee is the child (one Department has many Employees) ●● Many-to-many (N:M) relationship Answer: one parent entity instance can be associated with manychild entity instances. Also one child entity instance can be associated with many parent entity instances ●● Many-to-many (N:M) relationship EXAMPLE Answer: In Qualifications relationship: Employee instance can be associated with many Skill instances and a Skill instance can be associated with many Employee instances. (an employee many have many skills and a skill may be held by many employees)

Entity instance is required on the right hand side of the relationship but not on the left hand side. ●● Optional-to-mandatory (O-M) relationship EXAMPLE Answer: In Qualifications relationships: Employee must be assigned to at least one Skill, but a Skill may not necessarily be related to any Employee. This is a N:M, O-M relationship (the circle is next to Employee, it means that the Employee is optional in the relationship) ●● Mandatory-to-optional (M-O) relationship Answer: Exchange the circle and the hash mark (Opposite of O-M: Optional-to-mandatory) Entity Instance is required on the left hand side of the relationship, but not on the right hand side. ●● Mandatory-to-optional (M-O) relationship EXAMPLE Answer: In Qualifications relationship: Employee need not to have a Skill, but a Skill must have at least one Employee ●● Null value Answer: a missing data value

●● Schema Answer: a complete logical view, containing all the tables, columns, the primary key of each table (underlining the column names of the primary key columns), and the foreign key that link the tables together (italicizing the column names of the foreign keys columns) ●● SQL Query Answer: an SQL statement that uses SQL SELECT/FROM//WHERE framework to "ask" a question that can be "answered" using database data. ●● SQL SELECT Clause Answer: Which columns are to be listed in the query results ●● SQL FROM Clause Answer: Which tables are to be used in the query ●● SQL WHERE Clause Answer: Which rows are to be listed in the query results to determine the groups ●● SQL SELECT * Statement Answer: Returns all columns for all tables in the query

●● SQL JOIN ON Syntax Answer: The SQL syntax used to create an explicit join ●● Explict Join Answer: If the JOIN metris actually used as part of the SQL statement syntax ●● Implict Join Answer: If the JOIN operator itself doesn't appear in the SQL statement ●● SQL DISTINCT Keyword Answer: Eliminates duplicates in rows of the table ●● SQL Comparison Operator Answer: the equal sign (=) appears in the WHERE clause. If the column contains text or date data, the comparison values must be enclosed in single quotation marks ('text or date data') ●● SQL DESC Keyword Answer: To sort rows in descending order after the column name ●● SQL ASC Keyword

Answer: Is in default order To sort rows in ascending order after the column name ●● SQL BETWEEN Operator & SQL NOT BETWEEN Operator Answer: Include or exclude a range of numerical values in the SQL WHERE clause ●● SQL CREATE TABLE statement Answer: The SQL command used to create a database table ●● SQL DROP TABLE statement Answer: The SQL command used to remove a table from a databse ●● SQL PERCENT % Wildcard Character Answer: Used to specify multiple characters in the character string in front or behind ●● SQL IS NULL operator & SQL IS NOT NULL operator Answer: Include or exclude rows that contain NULL

●● COUNT(*)

Answer: count the number of rows in the table ●● SQL AS Keyword Answer: meaningful column name & allows to assign one ●● Crow's Foot Symbol Answer: Uses to show the many side of the relationship ●● Crow's Foot Model Answer: Uses the notation to indicate the relationship cardinality. ●● Symbol Closest To The Entity Answer: Shows the maximum cardinality ●● Symbol Farthest To The Entity Answer: Shows the minimum cardinality ●● Strong Entity Answer: is an entity that reprents something that can exist on its own

●● Weak Entity Answer: As any entity whose existence depends on the presence of another entity ●● ID-dependent Entity Answer: a special type of weak entity that is an entity whose identifier includes the identifier of another entity ●● ID-dependent Entity EXAMPLE Answer: Apartment is In-dependent on Building BuildingName is the identifier of the entity Building Entity Print is ID-dependent on Painting Entity Exam is ID-depenant on Patient ●● Identifying Relationship Answer: The relationship between the ID-dependent entity & its parent. Solid line. ●● Nonidentifying Relationship Answer: The relationship between strong entities Dashed line connecting strong entities or a non ID-dependent weak entity to its parent