98-364 : Database Fundamentals : Part 05
-
You have a database table named SongInformation as defined below:
You need to create a Structured Query Language (SQL) query to retrieve only the names of songs that sold more than 1000 compact discs (CDs).
Which query should you use?
- Option A
- Option B
- Option C
- Option D
-
You accept an IT internship at a local charity. The charity asks you to keep a record of its volunteers by using a database table named Volunteer.
The table has the following columns and rows:
When volunteer information changes, you must update the table.
You need to change Tia’s name to Kimberly.
Which statement should you choose?
- Option A
- Option B
- Option C
- Option D
-
This question requires that you evaluate the underlined text to determine if it is correct.
Use the FROM keyword in a SELECT statement to return rows that meet a specific condition.
Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes the statement correct
- No change is needed
- ORDER BY
- UNION
- WHERE
-
You need to combine the results of two queries into a single result that contains all of the rows from both queries.
Which Structured Query Language (SQL) statement should you use?
- TRUNCATE
- JOIN
- EXCEPT
- UNION
-
This question requires that you evaluate the underlined text to determine if it is correct.
The CREATE TABLE command removes one or more table definitions and all data, indexes, triggers, constraints, and permission specifications for those tables.
Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes the statement correct
- No change is needed
- DROP TABLE
- TRUNCATE TABLE
- ALTER TABLE
-
You accept an IT internship at a local charity. The charity wants you to help them with compliance and auditing requirements.
You need to ensure that a column or combination of columns uniquely identifies each row of a table.
Which constraint should you define?
- Primary key
- Secondary key
- Foreign key
- Default key
-
HOTSPOT
The following illustration shows the structure of a clustered index in a single partition:
Instructions: Use the drop-down menus to select the answer choice that completes each statement Each correct selection is worth one point.
-
HOTSPOT
You have the following table:
Instructions: Use the drop-down menus to select the answer choice that completes each statement. Each correct selection is worth one point.
-
While attending college, you accept an IT internship at a local charity. The charity needs to report on data that is related and exists in two tables.
You need to establish a relationship between the data that is in the two tables.
Which constraint should you define?
- Foreign key
- Index key
- Link key
- Default key
-
This question requires that you evaluate the underlined text to determine if it is correct.
A view can be used to ensure referential integrity.
Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes the statement correct
- No change is needed.
- Save an extra copy of data stored in a separate table.
- Limit access to specific rows or columns of data in a table.
- Save historical data before deleting it from the base table.
-
DRAG DROP
You need to set up a database to provide a view of North American mammals.
Match the Structured Query Language (SQL) statements to the SQL query.
Instructions: To answer, drag the appropriate SQL statement from the column on the left to its place in the SQL query on the right Each SQL statement may be used once, more than once, or not at all. Each correct match is worth one point.
-
DRAG DROP
You have a database table that stores information about school attendance.
You have a data set that is defined as follows:
You have the following requirements:
– StudentName must consist of a string of characters.
– GradeLevel must be only a whole number.
– DaysAbsent can have one number after the decimal.Match the data types to the column names.
Instructions: To answer, drag the appropriate data type from the column on the left to its column name on the right Each data type may be used once, more than once, or not at all. Each correct match is worth one point.
-
HOTSPOT
Instructions: For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.
-
This question requires that you evaluate the underlined text to determine if it is correct.
In a database table, each column represents a unique record.
Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes the statement correct
- No change is needed
- Table
- Index
- Row
-
This question requires that you evaluate the underlined text to determine if it is correct.
You have two tables. Each table has three rows. You create a SQL query that uses a cross join. The query does not include a WHERE clause.
Nine rows will be included in the Cartesian product of these two tables.
Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes the statement corrector.
- No change is needed
- Zero
- Three
- Six
-
You have two tables named Salesperson and Sales.
You need to ensure that each record in the Sales table has a valid associated salesperson record in the Salesperson table.
Which database object should you add to the Sales table?
- Nonclustered index
- Primary key
- Foreign key
- Clustered index
-
DRAG DROP
Your class project requires that you help a charity set up a website.
The website collects information about volunteers. Each volunteer record must be uniquely identified.
The following information is stored for each volunteer:
Given name
Surname
Date of birth
Phone number
PhotoYou need to create a table to meet the requirements.
Match the Structured Query Language SQL statements to the SQL query.
Instructions: To answer, drag the appropriate SQL statement from the column on the left to its place in the SQL query on the right. Each SQL statement may be used once, more than once, or not at all. Each correct match is worth one point.
-
This question requires that you evaluate the underlined text to determine if it is correct.
Use the ALTER statement to add a new table in a database.
Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes the statement correct.
- No change is needed
- UPDATE
- INSERT
- CREATE
-
You need to rename a column in a database table.
Which data definition language (DDL) statement should you use?
- ALTER
- INSERT
- CREATE
- UPDATE
-
DRAG DROP
You have two database tables as defined below. The first table contains information about students. The second table contains information about courses. The two tables are related by CourseID.
Match the CourseName to the StudentName.
Instructions: To answer, drag the appropriate CourseName from the column on the left to its StudentName on the right. Each CourseName may be used once, more than once, or not at all. Each correct match is worth one point.