




























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























◍ The M:N Relationship. Answer: This relationship cannot be implemented as such in the relational model however, it can be implemented by creating a new entity in 1:M relationships with the original entities. ◍ CREATE VIEW. Answer: A SQL command that creates a logical, "virtual" table. The view can be treated as a real table. ◍ Manual query optimization. Answer: An operation mode that requires the end user or programmer to define the access path for the execution of a query. ◍ Replacing a subquery with an equivalent join is called what?. Answer: Flattening ◍ International Organization for Standardization (ISO). Answer: An organization formed to develop standards for diverse network systems. ◍ Create a table with complex constraints on string columns. Answer: CREATE TABLE TableName (ColumnName DataType,ColumnName2 DataType,CHECK (ColumnName Constraint),CHECK (ColumnName2 Constraint)); ◍ inner join. Answer: A join operation in which only rows that meet a given criterion are
selected. The join criterion can be an equality condition (natural join or equijoin) or an inequality condition (theta join). The inner join is the most commonly used type of join. Contrast with outer join.
◍ updatable view. Answer: A view that can update attributes in base tables that are used in the view.
◍ regular entity. Answer: See strong entity.
◍ authentication. Answer: The process through which a DBMS verifies that only registered users can access the database.
◍ middleware. Answer: The computer software that allows clients and servers to communicate within the client/server architecture. It is used to insulate client processes from the network protocols and the details of the server process protocols.
◍ input/output (I/O) request. Answer: A low-level data access operation that reads or writes data to and from computer devices.
◍ PRODUCT. Answer: An operator used to yield all possible pairs of rows from two tables.customer × agent
◍ static query optimization. Answer: A query optimization mode in which the access path to a database is predetermined at compilation time.
◍ manual query optimization. Answer: An operation mode that requires the end user or programmer to define the access path for the execution of a query.
◍ bitmap index.
commonly used type of join. Contrast with outer join.
◍ weak relationship. Answer: A relationship in which the primary key of the related entity does not contain a primary key component of the parent entity.
◍ subquery. Answer: A query that is embedded (or nested) inside another query. Also known as a nested query or an inner query.
◍ COMMIT. Answer: The SQL command that permanently writes data changes to a database.
◍ "A salesperson manages zero to many other salespersons, and a salesperson is managed by exactly one other salesperson."What is the name of this model?. Answer: One-to-many unary relationship
◍ composite key. Answer: A multiple-attribute key.
◍ 22. Which query illustrates performing an outer join of the Movie table with a different table?- SELECT M.Title, A.Name FROM Movie M, Actor AWHERE M.ActorID = A.ActorID;- SELECT M.Title, A.Name FROM Movie M, Actor AWHERE M.ActorID = A.MovieID;- SELECT M.Title, A.Name FROM Movie M RIGHT JOIN Actor AON M.ActorID = A.ActorID;- SELECT M.Title, A.Actor FROM Movie MINNER JOIN Actor A ON M.ActorID = A.ActorID. Answer: SELECT M.Title, A.Name FROM Movie MRIGHT JOIN Actor A ON M.ActorID = A.ActorID;
◍ FROM. Answer: A SQL clause that specifies the table or tables from which data is to be retrieved.
◍ simple attribute.
Answer: An attribute that cannot be subdivided into meaningful components. Compare to composite attribute.
◍ GROUP BY. Answer: A SQL clause used to create frequency distributions when combined with any of the aggregate functions in a SELECT statement.
◍ An attribute that can be used to find the value of another attribute in the relation.. Answer: Determinant
◍ COUNT. Answer: A SQL aggregate function that outputs the number of rows containing not null values for a given column or expression, sometimes used in conjunction with the DISTINCT clause.
◍ 44. PATIENT TABLEPK patient_idfirst namelast namebirthdateEXAM TABLE PK exam_idexam dateexam reasonFK patient_idWrite the CREATE TABLE statement to create the Exam table below. Make sure to designate the primary key and foreign key of the table.. Answer: CREATE TABLE Exam (exam_id INT, exam_date DATE, exam_reason VARCHAR(255),, patient_id INT,PRIMARY KEY (exam_id),FOREIGN KEY (patient_id) REFERENCES Patient (patient_id) );
◍ Method. Answer: In the object-oriented data model, a named set of instructions to perform an action. They represent real-world actions, and are invoked through messages.
◍ Entity integrity. Answer: The property of a relational table that guarantees each entity has a unique value in a primary key and that the key has no null values.
◍ database statistics. Answer: In query optimization, measurements about database objects, such as the number of rows in a table, number of disk blocks used, maximum and
◍ relvar. Answer: Short for relation variable, a variable that holds a relation. A relvar is a container (variable) for holding relation data, not the relation itself.
◍ secondary key. Answer: A key used strictly for data retrieval purposes. For example, customers are not likely to know their customer number (primary key), but the combination of last name, first name, middle initial, and telephone number will probably match the appropriate table row. See also key.
◍ foreign key (FK). Answer: An attribute or attributes in one table whose values must match the primary key in another table or whose values must be null. See key.
◍ base tables. Answer: The table on which a view is based.
◍ Remove data from a table. Answer: DELETE FROM TableNameWHERE Condition;
◍ 50. Write a join statement that pulls the values listed from 3 of the tables below (Customer, Invoice, and Invoice Item).CustomerID InvoiceID Date ProductIDCUSTOMER TABLE Customer ID PK INVOICE TABLE Invoice ID PKDateCustomer ID FK INVOICE ITEM TABLEInvoice ID PK FK Product ID PK FK. Answer: SELECT C.CustomerID, I.InvoiceID, Date, IN. ProductIDFROM Customer CJOIN Invoice I ON C.CustomerID = I.CustomerID, JOIN Invoice_Item IN ON I.InvoiceID = IN.InvoiceID;
◍ table space. Answer: In a DBMS, a logical storage space used to group related data. Also known as a file group.
◍ ALTER TABLE. Answer: The SQL command used to make changes to table structure. When the command is followed by a keyword (ADD or MODIFY), it adds a
column or changes column characteristics.
◍ Used with GROUP BY to filter results.. Answer: HAVING
◍ manual statistical generation mode. Answer: A mode of generating statistical data access information for query optimization. In this mode, the DBA must periodically run a routine to generate the data access statistics—for example, running the RUNSTAT command in an IBM DB2 database.
◍ primary key (PK). Answer: In the relational model, an identifier composed of one or more attributes that uniquely identifies a row. Also, a candidate key selected as a unique entity identifier. See also key.
◍ Which activity groups data members that have similarities?. Answer: Clustering
◍ B-tree index. Answer: An ordered data structure organized as an upside-down tree.
◍ weak relationship. Answer: A relationship in which the primary key of the related entity does not contain a primary key component of the parent entity.
◍ What is called a decomposition process?. Answer: Data normalization
◍ Create a table with complex constraints on numerical or date columns. Answer: CREATE TABLE TableName (ColumnName1 DataType CHECK (ColumnName Condition),ColumnName2 DataType CHECK (ColumnName Condition));
◍ What is the correct syntax of the INSERT command?. Answer: INSERT INTO table_name VALUES (value1,value2,value3,...):
◍ batch update routine. Answer: A routine that pools transactions into a single group to update a
Answer: A condition by which a dependent table's foreign key must have either a null entry or a matching entry in the related table
◍ DIVIDE. Answer: In relational algebra, an operator that answers queries about one set of data being associated with all values of data in another set of data.
◍ existence-independent. Answer: A property of an entity that can exist apart from one or more related entities. Such a table must be created first when referencing an existence-dependent table.
◍ NOT. Answer: A SQL logical operator that negates a given predicate.
◍ outer join. Answer: A relational algebra join operation that produces a table in which all unmatched pairs are retained; unmatched values in the related table are left null. Contrast with inner join. See also left outer join and right outer join.
◍ rules of precedence. Answer: Basic algebraic rules that specify the order in which operations are performed. For example, operations within parentheses are executed first, so in the equation 2 + (3 5), the multiplication portion is calculated first, making the correct answer 17.
◍ 7.7 LAB - Create Student table with constraintsCreate a Student table with the following column names, data types, and constraints:ID - integer with range 0 to 65 thousand, auto increment, primary keyFirstName - variable-length string with max 20 chars, not NULLLastName - variable-length string with max 30 chars, not NULLStreet - variable-length string with max 50 chars, not NULLCity - variable-length string with max 20 chars, not NULLState - fixed-length string of 2 chars, not NULL, def. Answer: CREATE TABLE Student( ID SMALLINT UNSIGNED AUTO_INCREMENT PRIMARY KEY, FirstName VARCHAR(20) NOT
NULL, LastName VARCHAR(30) NOT NULL, Street VARCHAR(50) NOT NULL, City VARCHAR(20) NOT NULL, State CHAR(2) NOT NULL DEFAULT 'TX', Zip MEDIUMINT UNSIGNED NOT NULL, Phone CHAR(10) NOT NULL, Email VARCHAR(30) UNIQUE);
◍ base tables. Answer: The table on which a view is based.
◍ The speed at which data is read or written, following initial access.. Answer: Transfer Rate
◍ data cache. Answer: A shared, reserved memory area that stores the most recently accessed data blocks in RAM. Also called buffer cache.
◍ closure. Answer: A property of relational operators that permits the use of relational algebra operators on existing tables (relations) to produce new relations.
◍ reserved words. Answer: Words used by a system that cannot be used for any other purpose. For example, in Oracle SQL, the word INITIAL cannot be used to name tables or columns.
◍ candidate key. Answer: A minimal superkey; that is, a key that does not contain a subset of attributes that is itself a superkey. See key.
◍ connectivity. Answer: Term for the classification of the relationship between entities. Classifications include 1:1, 1:M, and M:N
◍ COMMIT. Answer: The SQL command that permanently writes data changes to a database.
◍ associative entity. Answer: See composite entity.
◍ procedure cache. Answer: See SQL cache.
◍ Strong (identifying) relationship. Answer: A relationship that occurs when two entities are existence-dependent; from a database design perspective, this relationship exists whenever the primary key of the related entity contains the primary key of the parent entity.
◍ set theory. Answer: A part of mathematical science that deals with sets, or groups of things, and is used as the basis for data manipulation in the relational model.
◍ participants. Answer: An ER term for entities that participate in a relationship. For example, in the relationship "PROFESSOR teaches CLASS," the teaches relationship is based on the participants PROFESSOR and CLASS.
◍ JOIN. Answer: In relational algebra, a type of operator used to yield rows from two tables based on criteria. There are many types of joins, such as natural join, theta join, equijoin, and outer join.
◍ International Organization for Standardization (ISO). Answer: An organization formed to develop standards for diverse network systems.
◍ Functional dependence. Answer: The attribute B is fully functionally dependent on the attribute A if each value of A determines one and only one value of B. Written as: A → BIn this case, the attribute A is known as the determinant attribute, and the attribute B is known as the dependent attribute.
◍ Domain. Answer: In data modeling, the construct used to organize and describe an attribute's set of possible values.
◍ Dynamic query optimization. Answer: The process of determining the SQL access strategy at run time, using the most up-to-date information about the database.
◍ Optional participation. Answer: In ER modeling, a condition in which one entity occurrence does not require a corresponding entity occurrence in a particular relationship.
◍ 7.8 LAB - Create Horse table with constraintsCreate a Horse table with the following columns, data types, and constraints. NULL is allowed unless 'not NULL' is explicitly stated.ID - integer with range 0 to 65535, auto increment, primary keyRegisteredName - variable-length string with max 15 chars, not NULLBreed - variable-length string with max 20 chars, must be one of the following: Egyptian Arab, Holsteiner, Quarter Horse, Paint, SaddlebredHeight - number with 3 significant digits and 1. Answer: CREATE TABLE Horse( ID SMALLINT UNSIGNED AUTO_INCREMENT PRIMARY KEY , RegisteredName VARCHAR(15) NOT NULL, Breed VARCHAR(20) CHECK (Breed IN ('Egyptian Arab', 'Holsteiner', 'Quarter Horse', 'Paint', 'Saddlebred')), Height DECIMAL(3,1) CHECK (Height >=10.0 AND Height <= 20.0), BirthDate DATE CHECK (BirthDate >= '2015-01-01'));
◍ B-tree index. Answer: An ordered data structure organized as an upside-down tree.
◍ LIKE. Answer: In SQL, a comparison operator used to check whether an attribute's text value matches a specified string pattern.
◍ existence-independent. Answer: A property of an entity that can exist apart from one or more related entities. Such a table must be created first when referencing an existence-dependent table.
◍ strong (identifying) relationship. Answer: A relationship that occurs when two entities are
rows of a relation can be arranged in any order, which is not true of a file.- Every row/column position, sometimes referred to as a "cell", can have only a single value, which is not necessarily true in a file.- No two rows of a relation are identical, which is not necessarily true in a file.
◍ MIN. Answer: A SQL aggregate function that yields the minimum attribute value in a given column.
◍ AND. Answer: The SQL logical operator used to link multiple conditional expressions in a WHERE or HAVING clause. It requires that all conditional expressions evaluate to true.
◍ right outer join. Answer: In a pair of tables to be joined, a join that yields all of the rows in the right table, including the ones with no matching values in the other table. For example, a right outer join of CUSTOMER with AGENT will yield all of the AGENT rows, including the ones that do not have a matching CUSTOMER row. See also left outer join and outer join.
◍ non-identifying relationship. Answer: A relationship in which the primary key of the related entity does not contain a primary key component of the parent entity.
◍ relationship degree. Answer: The number of entities or participants associated with a relationship. A relationship degree can be unary, binary, ternary, or higher.
◍ database statistics. Answer: In query optimization, measurements about database objects, such as the number of rows in a table, number of disk blocks used, maximum and average row length, number of columns in each row, and number of distinct values in each column. Such statistics provide a snapshot of database characteristics.
◍ index.
Answer: An ordered array of index key values and row ID values (pointers). Indexes are generally used to speed up and facilitate data retrieval. Also known as an index key.
◍ What are the values of Business Intelligence?. Answer: - Financial value associated w/ increased profitability.- Productivity value associated with increased throughput.- Trust value (customer, employee, supplier satisfaction) as well as increased confidence in forecasting.- Risk value - decreased risk associated with decision making
◍ manual query optimization. Answer: An operation mode that requires the end user or programmer to define the access path for the execution of a query.
◍ cascading order sequence. Answer: A nested ordering sequence for a set of rows, such as a list in which all last names are alphabetically ordered and, within the last names, all first names are ordered.
◍ Composite attribute. Answer: An attribute that can be further subdivided to yield additional attributes. For example, a phone number such as 615-898- 2368 may be divided into an area code (615), an exchange number (898), and a four-digit code (2368). Compare to simple attribute.
◍ subquery. Answer: A query that is embedded (or nested) inside another query. Also known as a nested query or an inner query.
◍ full functional dependence. Answer: A condition in which an attribute is functionally dependent on a composite key but not on any subset of the key.
◍ Converts the decomposed queries to the appropriate syntax for each participating database.. Answer: Database Wrapper
◍ recursive query. Answer: A nested query that joins a table to itself.
◍ relationship degree. Answer: The number of entities or participants associated with a relationship. A relationship degree can be unary, binary, ternary, or higher.
◍ prime attribute. Answer: A key attribute; that is, an attribute that is part of a key or is the whole key. See also key attributes.
◍ ternary relationship. Answer: An ER term used to describe an association (relationship) between three entities. For example, a DOCTOR prescribes a DRUG for a PATIENT.
◍ entity integrity. Answer: The property of a relational table that guarantees each entity has a unique value in a primary key and that the key has no null values.
◍ PROJECT. Answer: In relational algebra, an operator used to select a subset of columns.
◍ union-compatible. Answer: Two or more tables that have the same number of columns and the corresponding columns have compatible domains.
◍ UPDATE. Answer: A SQL command that allows attribute values to be changed in one or more rows of a table.
◍ JOIN. Answer: In relational algebra, a type of operator used to yield rows from two tables based on criteria. There are many types of joins, such as natural join, theta join, equijoin, and outer join.
◍ batch update routine. Answer: A routine that pools transactions into a single group to update a
master table in a single operation.
◍ LENGTH. Answer: Returns the number of characters in a string value
◍ flags. Answer: Special codes implemented by designers to trigger a required response, alert end users to specified conditions, or encode values. Flags may be used to prevent nulls by bringing attention to the absence of a value in a table.
◍ Which operator is considered an equijoin?. Answer: =
◍ nested query. Answer: In SQL, a query that is embedded in another query. See subquery.
◍ Modality. Answer: It is a minimum number of entity occurrences that can be involved in a relationship.
◍ dynamic query optimization. Answer: The process of determining the SQL access strategy at run time, using the most up-to-date information about the database.
◍ regular entity. Answer: See strong entity.
◍ What is the general theme of the ETL process?. Answer: 1. Get the data2. Map the data to staging area3. Validate and clean the data4. Apply necessary transformations5. Map data to loading model6. Move data to repository7. Load data to warehouse
◍ base tables. Answer: The table on which a view is based.
◍ associative entity. Answer: See composite entity.