Docsity

WGU C170 DATA MANAGEMENT APPLICATIONS GSA1 COMPREHENSIVE STUDY GUIDE, Exams of Database Management Systems (DBMS)

Toggle sidebar
bg1
◍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.
◍iterative process.
Answer: A process based on repetition of steps and procedures.
◍COMMIT.
Answer: The SQL command that permanently writes data changes to a
database.
◍Write the SQL query to "Retrieve the entire record for salesperson 186":.
Answer: SELECT *FROM SALESPERSONWHERE SPNUM=186;
◍view.
Answer: A virtual table based on a SELECT query that is saved as an object
in the database.
◍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.
WGU C170 DATA MANAGEMENT
APPLICATIONS GSA1 COMPREHENSIVE
STUDY GUIDE
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25

Partial preview of the text

Download WGU C170 DATA MANAGEMENT APPLICATIONS GSA1 COMPREHENSIVE STUDY GUIDE and more Exams Database Management Systems (DBMS) in PDF only on Docsity!

◍ 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.

◍ iterative process. Answer: A process based on repetition of steps and procedures.

◍ COMMIT. Answer: The SQL command that permanently writes data changes to a database.

◍ Write the SQL query to "Retrieve the entire record for salesperson 186":. Answer: SELECT *FROM SALESPERSONWHERE SPNUM=186;

◍ view. Answer: A virtual table based on a SELECT query that is saved as an object in the database.

◍ 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.

WGU C170 DATA MANAGEMENT

APPLICATIONS GSA1 COMPREHENSIVE

STUDY GUIDE

◍ Which SQL command is an example of data definition language (DDL)?- UPDATE- ALTER- SELECT- DELETE. Answer: CREATE, ALTER, OR DROP

◍ A federated database name for a participating database object, such as tables and columns.. Answer: Nickname

◍ CREATE TABLE. Answer: A SQL command that creates a table's structures using the characteristics and attributes given.

◍ existence-dependent. Answer: A property of an entity whose existence depends on one or more other entities. In such an environment, the existence-independent table must be created and loaded first because the existence-dependent key cannot reference a table that does not yet exist.

◍ 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.

◍ single-valued attribute. Answer: An attribute that can have only one value.

◍ SQL performance tuning. Answer: Activities to help generate a SQL query that returns the correct answer in the least amount of time, using the minimum amount of resources at the server end

◍ Determinant. Answer: Any attribute in a specific row whose value directly determines other values in that row.

◍ Write the SQL query to "Find the customer numbers, customer names, and headquarters cities of those customers with the customer numbers greater than 1000. List the results in alphabetic order by headquarters cities (and

Answer: The attributes that form a primary key

◍ Ensures transactions are properly executed.. Answer: Transaction Manager

◍ CREATE VIEW. Answer: A SQL command that creates a logical, "virtual" table. The view can be treated as a real table.

◍ 31. All changes to a table structure are made using the _____ command, followed by a keyword that produces the specific changes a user wants to make.- ALTER TABLE- UPDATE TABLE- COMMIT TABLE- DELETE TABLE. Answer: ALTER TABLE

◍ Represents a union of the data sets. Answer: OR

◍ cardinality. Answer: A property that assigns a specific value to connectivity and expresses the range of allowed entity occurrences associated with a single occurrence of the related entity.

◍ 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.

◍ BETWEEN. Answer: In SQL, a special comparison operator used to check whether a value is within a range of specified values.

◍ Database designer specifies a function on the column value consistent with a WHERE clause. Can be applied to any index type. Considered when the WHERE clause format is different than the storage format.. Answer: Function Index

◍ DROP INDEX.

Answer: A SQL command used to delete database objects such as tables, views, indexes, and users.

◍ table space. Answer: In a DBMS, a logical storage space used to group related data. Also known as a file group.

◍ 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.

◍ partial dependency. Answer: A condition in which an attribute is dependent on only a portion (subset) of the primary key

◍ HAVING. Answer: A clause applied to the output of a GROUP BY operation to restrict selected rows.

◍ table space (file group). Answer: In a DBMS, a logical storage space used to group related data

◍ 8.2 Practice Lab 2The Rating table has the following columns:RatingCode—variable-length string, primary keyRatingDescription—variable-length stringThe Movie table should have the following columns:Title—variable-length string, maximum 30 charactersRatingCode—variable-length string, maximum 5 charactersWrite a SQL statement to create the Movie table. Designate the RatingCode column in the Movie table as a foreign key to the RatingCodecolumn in the Rating table.. Answer: CREATE TABLE Movie ( Title VARCHAR(30), RatingCode VARCHAR(5), FOREIGN KEY (RatingCode) REFERENCES Rating(RatingCode));

◍ ORDER BY.

Answer: A SQL clause that is useful for ordering the output of a SELECT query (for example, in ascending or descending order).

◍ CEIL/CEILING/FLOOR. Answer: Returns the smallest integer greater than or equal to a number or returns the largest integer equal to or less than a number, respectively

◍ 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.

◍ INSERT. Answer: A SQL command that allows the insertion of one or more data rows into a table.

◍ SELECT. Answer: (1) A SQL command that yields the values of all rows or a subset of rows in a table. The SELECT statement is used to retrieve data from tables. (2) In relational algebra, an operator to select a subset of rows. Also known as RESTRICT.

◍ GROUP BY. Answer: A SQL clause used to create frequency distributions when combined with any of the aggregate functions in a SELECT statement.

◍ dependent. Answer: An attribute whose value is determined by another attribute.

◍ cross join. Answer: A join that performs a relational product (or Cartesian product) of two tables.

◍ index key. Answer: See index.

◍ 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.

◍ Subset of table columns.. Answer: Vertical Partition

◍ subquery. Answer: A query that is embedded (or nested) inside another query. Also known as a nested query or an inner query.

◍ 7.9 LAB - Create LessonSchedule table with FK constraintsTwo tables are created:1.- Horse with columns:ID - integer, primary keyRegisteredName - variable-length string2.- Student with columns:ID - integer, primary keyFirstName - variable-length stringLastName - variable-length stringCreate the LessonSchedule table with columns:HorseID - integer with range 0 to 65 thousand, not NULL, partial primary key, foreign key references Horse(ID)StudentID - integer with range 0 to 65 thousand. Answer: CREATE TABLE LessonSchedule( HorseID SMALLINT UNSIGNED NOT NULL, StudentID SMALLINT UNSIGNED, LessonDateTime DATETIME NOT NULL, PRIMARY KEY (HorseID, LessonDateTime), CONSTRAINT fk_HorseID FOREIGN KEY (HorseID) REFERENCES Horse(ID) ON DELETE CASCADE, CONSTRAINT fk_StudentID FOREIGN KEY (StudentID) REFERENCES Student(ID) ON DELETE SET NULL);or CREATE TABLE LessonSchedule( HorseID SMALLINT UNSIGNED NOT NULL, StudentID SMALLINT UNSIGNED, LessonDateTime DATETIME NOT NULL, PRIMARY KEY (HorseID, LessonDateTime), FOREIGN KEY (HorseID) REFERENCES Horse(ID) ON DELETE CASCADE, FOREIGN KEY (StudentID) REFERENCES Student(ID) ON DELETE SET NULL);

◍ optional participation. Answer: In ER modeling, a condition in which one entity occurrence does

"A determines B" indicates that knowing the value of attribute A means that the value of attribute B can be looked up.

◍ join columns. Answer: Columns that are used in the criteria of join operations. The join columns generally share similar values (have a compatible domain).

◍ optional attribute. Answer: In ER modeling, an attribute that does not require a value; therefore, it can be left empty.

◍ ALL. Answer: This operator can be used to compare something to every returned row of a subquery

◍ Classification. Answer: Classification involves examining the attributes of a particular object and assigning it to a defined class.

◍ Modify data in a table (specific rows). Answer: UPDATE TableNameSET ColumnName = NewValueWHERE Condition;

◍ AVG. Answer: A SQL aggregate function that outputs the mean average for a specified column or expression.

◍ Dependency diagram. Answer: A representation of all data dependencies (primary key, partial, or transitive) within a table.

◍ linking table. Answer: In the relational model, a table that implements an M:M relationship. See also composite entity.

◍ hash index. Answer: An index based on an ordered list of hash values.

◍ 7.4 LAB - Delete rows from Horse tableThe Horse table has the following

columns:ID - integer, auto increment, primary keyRegisteredName - variable-length stringBreed - variable-length stringHeight - decimal numberBirthDate - dateDelete the following rows:1.- Horse with ID 5.2.- All horses with breed Holsteiner or Paint.3.- All horses born before March 13, 2013.. Answer: DELETE FROM HorseWHERE ID = 5;DELETE FROM HorseWHERE Breed IN ('Holsteiner' , 'Paint'); DELETE FROM HorseWHERE BirthDate < '2013-03-13';

◍ Scalar subquery. Answer: Is the most restrictive subquery because it produces only a single value

◍ correlated subquery. Answer: A subquery that executes once for each row in the outer query.

◍ OR. Answer: The SQL logical operator used to link multiple conditional expressions in a WHERE or HAVING clause. It requires only one of the conditional expressions to be true.

◍ DCL. Answer: Data control language is used to control access to data stored in a database.

◍ homonyms. Answer: The use of the same name to label different attributes. Homonyms generally should be avoided. Some relational software automatically checks for homonyms and either alerts the user to their existence or automatically makes the appropriate adjustments. See also synonym.

◍ Weak entity. Answer: An entity that displays existence dependence and inherits the primary key of its parent entity. For example, a DEPENDENT requires the existence of an EMPLOYEE.

◍ Set a primary key when creating a table.

added to the statement finds grades with a count greater than 2?a. WITH gradeCount <> DUPLICATE b. NOT gradeCount = NULLc. HAVING gradeCount > 2d. INCLUDING gradeCount > 2. Answer: HAVING gradeCount > 2

◍ INSERT. Answer: A SQL command that allows the insertion of one or more data rows into a table.

◍ UPDATE. Answer: A SQL command that allows attribute values to be changed in one or more rows of a table.

◍ optional attribute. Answer: In ER modeling, an attribute that does not require a value; therefore, it can be left empty.

◍ 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.

◍ B-tree index. Answer: An ordered data structure organized as an upside-down tree.

◍ derived attribute. Answer: An attribute that does not physically exist within the entity and is derived via an algorithm. For example, the Age attribute might be derived by subtracting the birth date from the current date.

◍ "A salesperson may have no customers or many customers.". Answer:

◍ Wildcard character. Answer: A symbol that can be used as a general substitute for: 1) all columns in a table (*) when used in an attribute list of a SELECT statement or, 2) zero or more characters in a SQL LIKE clause condition ( % and _ ).

◍ YEAR.

Answer: MySQL function that returns a four-digit year

◍ What is used for populating summaries or any cube dimensions that can be performed at the staging area (ETL)?. Answer: Aggregation

◍ Minimum number of entity instances that must participate in a relationship instance. These values typically assume a value of zero (optional) or one (mandatory).. Answer: Minimum Cardinality

◍ iterative process. Answer: A process based on repetition of steps and procedures.

◍ 8.1 Practice Lab 1The Member table will have the following columns:ID—positive integerFirstName—variable-length string with up to 100 charactersMiddleInitial—fixed-length string with 1 characterLastName—variable-length string with up to 100 charactersDateOfBirth—dateAnnualPledge—positive decimal value representing a cost of up to $999,999, with 2 digits for centsWrite a SQL statement to create the Member table.Do not add any additional constraints to any column beyond wha. Answer: CREATE TABLE Member ( ID INT UNSIGNED, FirstName VARCHAR(100), MiddleInitial CHAR(1), LastName VARCHAR(100), DateOfBirth DATE, AnnualPledge DECIMAL(8,2) UNSIGNED);

◍ 47. Write a query that will return all of the cities from the Customer table above. Do not include duplicates -list each city only once.. Answer: SELECT DISTINCT CityFROM Customer

◍ Composite identifier. Answer: In ER modeling, a key composed of more than one attribute.

◍ Database repeatedly splits the index in two until it finds a match.. Answer: Binary Search

◍ 36. Which kind of relationship is displayed in the entity-relationship

Answer: Slow Query Log

◍ International Organization for Standardization (ISO). Answer: An organization formed to develop standards for diverse network systems.

◍ equijoin. Answer: A join operator that links tables based on an equality condition that compares specified columns of the tables.

◍ bitmap index. Answer: An index that uses a bit array (0s and 1s) to represent the existence of a value or condition.

◍ 13. The Vehicle table has the following columns:ID—integer, primary keyMake—variable-length stringModel—variable-length stringYear—integerA new column must be added to the Automobile table:Column name: EngineSizeData type: decimal (2,1)Write a SQL statement to add the EngineSize column to the Vehicle table.. Answer: ALTER TABLE VehicleADD EngineSize DECIMAL(2,1);

◍ What is the correct syntax of the CREATE VIEW command?. Answer: CREATE VIEW view_name ASSELECT column_name(s)FROM table_nameWHERE condition

◍ base tables. Answer: The table on which a view is based.

◍ Volatile- Used to conduct daily business -Changes in real time -Detailed Designed for specific business function -Concerned primarily with current data. Answer: Operational Data

◍ dynamic statistical generation mode. Answer: In a DBMS, the capability to automatically evaluate and update the database access statistics after each data access operation.

◍ DBMS performance tuning.

Answer: Activities to ensure that clients' requests are addressed as quickly as possible while making optimum use of existing resources

◍ data cache. Answer: A shared, reserved memory area that stores the most recently accessed data blocks in RAM. Also called buffer cache.

◍ AVG. Answer: A SQL aggregate function that outputs the mean average for a specified column or expression.

◍ Extraction essentially boils down to two questions:. Answer: 1. What data should be extracted?2. How should that data be extracted?

◍ homonyms. Answer: The use of the same name to label different attributes. Homonyms generally should be avoided. Some relational software automatically checks for homonyms and either alerts the user to their existence or automatically makes the appropriate adjustments. See also synonym.

◍ data sparsity. Answer: A column distribution of values or the number of different values a column can have.

◍ IS NULL. Answer: In SQL, a comparison operator used to check whether an attribute has a value.

◍ FULL OUTER JOIN. Answer: Returns rows with matching values and includes all rows from both tables (T1 and T2) with unmatched valuesSELECT *FROM T ____________ T2 ON T1.C1=T2.C

◍ DISTINCT. Answer: A SQL clause that produces only a list of values that are different from one another.

exam idexam dateexam reason FK patient idCREATE TABLE Exam (exam_id INT NOT NULL AUTO_INCREMENT, exam_date DATE NOT NULL, exam_reason VARCHAR(100), patient_id INT NOT NULL, PRIMARY KEY (exam_id),FOREIGN KEY (patient_id) REFERENCES Patient (patient_id) ON DELETE RESTRICT);What would happen to exams in the Exam table that are linked to a patient if that patient is deleted.

  • Those invoices would remain in the database- Those invoices would be deleted also- The Customer ID for those invoices would be changed to NULL- The delete of the Customer would not be allowed. Answer: The delete of the Customer would not be allowed

◍ 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.

◍ 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.

◍ linking table. Answer: In the relational model, a table that implements an M:M relationship. See also composite entity.

◍ composite identifier. Answer: In ER modeling, a key composed of more than one attribute.

◍ Conforms to all rules at all times.. Answer: Consistent

◍ Define the delete rule RESTRICT.. Answer: If the delete rule between two relations is RESTRICT and an attempt is made to delete a record on the "one side" of the one-to-many relationship, the system will forbid the delete to take place if there are any matching foreign key values in the relation on the "many side".

◍ MIN.

Answer: A SQL aggregate function that yields the minimum attribute value in a given column.

◍ data cache. Answer: A shared, reserved memory area that stores the most recently accessed data blocks in RAM. Also called buffer cache.

◍ domain. Answer: In data modeling, the construct used to organize and describe an attribute's set of possible values.

◍ required attribute. Answer: In ER modeling, an attribute that must have a value. In other words, it cannot be left empty.

◍ Updates data on multiple nodes of a distributed database. Two-phase commit (nodes receive notice of update, store update in log, send confirmation, then receive commit). Either all nodes or no nodes must be successfully updated.. Answer: Distributed Transactions

◍ Foreign key. Answer: An attribute or attributes in one table whose values must match the primary key in another table or whose values must be null.

◍ Extents. Answer: In a DBMS environment, refers to the ability of data files to expand in size automatically using predefined increments.

◍ statistically based query optimization algorithm. Answer: A query optimization technique that uses statistical information about a database. The DBMS then uses these statistics to determine the best access strategy.

◍ Aggregate function (multi-value (summary) output). Answer: SELECT LabelsColumn, FUNCTION(DataColumn)FROM TableNameGROUP BY LabelsColumn;