MYSQL-ITS-Actual_Exam-Copy
MYSQL-ITS-Actual_Exam-Copy
Total Score:
Student Name/ID#:
/ 100
ITS Database
QUESTION 1
/1
C datetime D datetime2
QUESTION 2
/1
This question requires that you evaluate the underlined text to determine if it is correct.
Views are database objects that contain all of the data 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
A Tables B Queries
QUESTION 3
/1
You have two tables named Cars and Color as defined below. The two tables are related by ColorId.
A 6 B 0
C 3 D 2
QUESTION 4
/1
A Traditional B Truncate
C Relational
QUESTION 5
/1
QUESTION 7
/1
Which of the following is the process of creating a design for the database that will support the enterprise’s operations
and objectives for the required database system?
QUESTION 8
/1
You are the database administrator for a MySQL database.
The database server is installed on a Unix system.
The time zone files for the system are located at /usr/share/zoneinfo.
You need to ensure that the system and MySQL time zones are based on the same information.
Which of the following statements will you use to accomplish the task?
QUESTION 9
/1
You can back up dynamic log files D When the server is stopped.
C
any time.
QUESTION 10
/1
Which of the following commands cannot be rolled back? Each correct answer represents a complete solution.
(Choose two.)
A UPDATE B TRUNCATE
C COMMIT D DELETE
QUESTION 12
/1
Which of the following are the types of prototyping strategies? Each correct answer represents a complete solution.
(Choose two.)
QUESTION 13
/1
Which of the following DML SQL statements support usage of correlated sub-queries? Each correct answer represents
a complete solution. (Choose all that apply.)
A SELECT B INSERT
C UPDATE D DELETE
QUESTION 14
/1
What is the relationship between the foreign key and primary key? Each correct answer represents a complete
solution. (Choose all that apply.)
QUESTION 15
/1
CREATE Product (
ProductID Char (10) NOT NULL,
OrderID Char (10) NULL
ProductName Varchar NOT NULL,
Primary key (OrderID, ProductID))
What are the errors in the above query? Each correct answer represents a complete solution. (Choose two.)
QUESTION 16
/1
Which of the following steps in database planning is used to record an object so that it is represented visually in the
system?
ERROR 1251: The client does not support authentication protocol requested by the server; consider upgrading MySQL
client You do not want to upgrade any client or server right now, and want to enable all clients to connect to the new
server successfully.
Which of the following steps will you take to resolve the issue?
Run the server with the –secure-auth Run the server with the –old-
A B
option. password option.
Run the server with the –allow-old Run the server with the –enable-old
C D
option. option.
QUESTION 18
/1
In addition to taking backups of your databases, you should also backup up files stated below.
Which of these files store updates that have been made after the backup was made?
C My.cnf D Master.info
QUESTION 19
/1
Which of the following scripts is used to convert Unix-type zone files into SQL statements, and loads the time zone
tables in a mysql database?
A mysql_time_to_sql B mysql_tzinfo_to_sql
C mysql_tz_to_sql D mysql_timezone_to_sql
QUESTION 21
/1
Each new employee joining the company is assigned an E-mail Login and Password.
This E-mail Login and Password is used by each employee to access his account on the company’s Web site.
The value of both the attributes should be unique and cannot be NULL.
You design an artificial key EmpID in the Info table to serve as a primary key.
Which of the following factors lead you to define an artificial key for use as a primary key in the Info table? Each
correct answer represents a part of the solution. (Choose all that apply.)
The value of the primary key must be The value of the primary key must be
A B
unique. persistent.
The value of the primary key cannot The natural key contains highly
C D
be NULL. sensitive data
QUESTION 22
/1
You work as a Database Administrator for DataOneWorld Inc.
Management instructs you to remove an object from the relational database management system.
Which of the following statements will you use to accomplish the task?
A CREATE B SELECT
C ALTER D DROP
QUESTION 23
/1
QUESTION 24
/1
You work as the Database Administrator for www.company.com.
All servers on the www.company.com network run Windows Server 2003 and Windows Server 2000, and all client
computers run Windows XP professional and Windows Vista.
The www.company.com network area consists of a single Active Directory domain named www.company.com.
The www.company.com network contains a Microsoft SQL Server 2005 database server named COMPANY-DB111,
which you administer at a regular interval of time. COMPANY-DB111 contains and hosts three databases that support
different types of business requirements.
The network uses the DBA database that supports internal operations including maintaining data, accounting, and
mailing. The network’s regular users make use of stored procedures for the data values that need insertion into the
tables.
The stored procedures used in the network of the company are designed to access SQL variant type parameters and
then use the values to build and execute ad hoc query statements that are the part of the SQL statements. During a
routine network check, you discover that there are several odd occurrences in the database.
The odd occurrences include data deleted from tables and other unauthorized activity.
You suspect a user is executing the unauthorized statements through the stored procedures.
You are required to stop the unauthorized changes while having least impact on the stored procedures that are in use.
Your explanation must use the least administrative effort.
The stored procedures used for the All data handling activity on the table
D
C table should be replaced with ad hoc should be audited and recorded.
queries.
QUESTION 25
/1
Which of the following enables a user to use generic methods to access a database and to focus on the coding rather
than the syntax for a specific database API?
QUESTION 26
/1
Consider the case of a distance education university.
The university has many regional centers across the country.
Each regional center has a head known as regional manager.
Each regional center has allotted more than one study center in its region.
Each regional center has a region code, which is unique and specifies a region.
Each study center also has a study center code, which is also unique.
C One-to-one D One-to-many
QUESTION 27
/1
Which of the following approaches will she use to accomplish the task?
QUESTION 28
/1
Which of the following is used to give a default value to a column if the value for that column is unknown?
QUESTION 29
/1
Which of the following is a design of the user interface and the application programs that use and process the
database?
A Authentication B Encryption
QUESTION 31
/1
Which of the following values cannot be stored in a character column defined as the primary key of a table?
A '0' B 'null'
C null D "
QUESTION 32
/1
QUESTION 33
/1
Which of the following can be used to populate a table? Each correct answer represents a complete solution. (Choose
all that apply.)
QUESTION 34
/1
For which of the following tables will this command work? Each correct answer represents a complete solution.
(Choose two.)
A FEDERATED B MyISAM
C InnoDB D MERGE
QUESTION 35
/1
Which of the following are the main approaches in the database design? Each correct answer represents a complete
solution. (Choose three.)
QUESTION 36
/1
Your Company is designing and developing a number of databases for a stock exchange.
One of the databases will contain highly sensitive data for which high level of security will be required. Although high
processing speed is one of the prime requirements of the customer, for this database, security of the data will take
priority over the processing speed. It needs to be ensured that even if unauthorized access to the database is
obtained, the rogue user is unable to read the data.
Which of the following protection techniques will you suggest for this database?
QUESTION 37
/1
It prevents the current database operation from reading or writing a data item while the data item is being accessed by
another operation.
A Deadlock B Encryption
C Lock D Constraint
QUESTION 38
/1
You manage a database named Customers, which includes a table named Orders.
The Orders table is frequently queried, but only orders with a sales total of more than $1000.00 are required in the
query.
You want to create an index to speed up these types of queries at the same time, ensuring the index is as small as
possible.
A Filtered B XML
C Non-clustered D Clustered
QUESTION 39
/1
John works as a Database Administrator for DataOneWorld Inc.
The company has a SQL Server database.
John wants to insert records in a table where the database is structured in a fixed format.
Which of the following data models will he use to accomplish the task?
QUESTION 40
/1
A Line 3 B Line 2
C Line 4 D Line 1
QUESTION 41
/1
Which of the following steps in database planning helps to determine the requirements of the database through
interviewing?
E Gathering information
QUESTION 42
/1
Which of the following provides reliable units of work that allow correct recovery from failures and keeps a database
consistent even in cases of system failure?
QUESTION 43
/1
Which of the following database designs will help you accomplish the task?
QUESTION 44
/1
JDBC API 2.0 defines five levels of transaction isolation for database concurrency control.
Which of the following is the lowest level of transaction isolation?
TRANSACTION_READ_UNCOMMITT TRANSACTION_REPEATABLE_REA
A B
ED D
C TRANSACTION_READ_COMMITTED D TRANSACTION_SERIALIZABLE
E TRANSACTION_NONE
QUESTION 45
/1
You are a database developer for a database named Customers hosted on a SQL Server 2008 server.
Recently, several customers were deleted from the Customers database.
To ensure this is not repeated in future, you have decided to create a DML trigger to prevent it.
What code will create the trigger to meet your goals? Each correct answer represents a complete solution. (Choose all
that apply.)
QUESTION 46
/1
Which of the following database planning steps will help him to accomplish the task?
QUESTION 47
/1
John works as a Database Administrator for Bluewell Inc.
The company has a SQL Server database.
A table in the database has a candidate key and an attribute that is not a constituent of the candidate key. The non-key
attribute depends upon the whole of the candidate key rather than just a part of it.
A 4 NF B 1 NF
C 2 NF D 3 NF
QUESTION 48
/1
Which of the following commands can be used to change the authorization type in DB2 9? Each correct answer
represents a complete solution. (Choose all that apply.)
QUESTION 49
/1
Which of the following are DML commands? Each correct answer represents a complete solution. (Choose all that
apply.)
C UPDATE D SELECT
E DELETE F ALTER
QUESTION 50
/1
Which of the following statements is true about referential integrity?
QUESTION 51
/1
You are the database administrator of a MySQL server that runs on a Windows server.
All clients are local clients.
For security, you want to disable connections from the remote clients.
Which of the following steps will you take to accomplish the task?
Start the server with the –secure- Start the server with the –shared-
A B
auth option. memory option.
Start the server with the –disable- Start the server with the –skip-
C D
networking option. networking option.
QUESTION 52
/1
A Update the statistics on the indexes. Change the fillfactor for the indexes
B
to 0.
Change the fillfactor for the indexes Change the fillfactor for the indexes
C D
to 100 to 60.
QUESTION 53
/1
You work as a Database Administrator for Bell Ceramics Inc.
An employee of the company has fired a query, including a DML statement, such as INSERT, against a table named
Sales.
You notice that the DML statement has not executed.
What will you do to resolve the issue? Each correct answer represents a complete solution. (Choose two.)
QUESTION 54
/1
Which of the following is the process of extracting trails on a regular basis so that they can be transferred to a
designated security system where the database administrators do not have access?
QUESTION 55
/1
Which of the following is a management activity that allows the stages of the database application to be realized as
efficiently and effectively as possible?
QUESTION 57
/1
You want to recover one or more tablespaces to a point in time older than the rest of the database.
Which of the following are the recovery situations in which tablespace Point-in-Time Recovery (TSPITR) should be
used?
Each correct answer represents a part of the solution. (Choose all that apply.)
QUESTION 58
/1
A DDL trigger that queries the A DML trigger that queries the
A B
inserted table inserted table
A DDL trigger that queries the A DML trigger that queries the
C D
updated table updated table
QUESTION 59
/1
QUESTION 60
/1
E Encryption
QUESTION 61
/1
This question requires that you evaluate the underlined text to determine if it is correct.
The UNION keyword combines the results of two queries and returns only rows that appear in both result sets.
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
C ALL D JOIN
QUESTION 62
/1
You have a database that contains 10 terabytes of data. You need to back up the database every two hours.
Which type of backup should you use?
A full B partial
C incremental D archive
QUESTION 63
/1
This question requires that you evaluate the underlined text to determine if it is correct.
A relational database management system employs the concept of an attribute to ensure that data entered into a field
in a column is valid.
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.
QUESTION 64
/1
HOTSPOT
You are structuring a table in a relational database.
Instructions: For each of the following statement, select Yes if the statement is true. Otherwise, select No. Each correct
selection is worth one point.
4 Azure Linguistic Analysis API 5 Azure API Apps 6 Azure Batch AI 7 Azure Functions
QUESTION 65
/1
This question requires that you evaluate the underlined text to determine if it is correct.
A key defines the amount of storage space that is allocated to a value in a column.
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
QUESTION 66
/1
You need to create a view to filter rows of data from an underling table.
Which type of clause must be included in the CREATE VIEW statement?
A FILTER B WHERE
C JOIN D CONSTRAINT
QUESTION 67
/1
Instructions: For each of the following statements, select the appropriate answer choice of the following:
Instructions: For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each
correct selection is worth one point.
1 Yes 2 No
QUESTION 69
/1
Instructions: For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each
correct selection is worth one point.
1 Yes 2 No
QUESTION 70
/1
Instructions: Use the drop-down menus to select the answer choice that completes each statement. Each correct
selection is worth one point.
QUESTION 71
/1
Instructions: For each of the following statements, select the appropriate answer choice to each of the statements.
QUESTION 72
/1
You have two database tables as defined below. The StateID column is unique in the State table. The AddressID
column is unique in the Address table. The two tables are related by the StateID column.
1 No 2 Yes
QUESTION 73
/1
Instructions: For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each
correct selection is worth one point.
1 No 2 Yes
QUESTION 74
/1
Instructions: For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each
correct selection is worth one point.
1 No 2 Yes
QUESTION 75
/1
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.
QUESTION 76
/1
The following graphic shows the components of a SQL Server application. You access the SQL Server application
through Internet Explorer.
Instructions: Use the drop-down menus to select the answer choice that completes each statement. Each correct
selection is worth one point.
1 return large result sets 2 return a range of values by using the = operator
3 do not use ORDER BY or GROUP BY clauses 4 are accessed randomly 5 are accessed sequentially
QUESTION 77
/1
Instructions: For each of the following statements, select the appropriate answer choice.
QUESTION 78
/1
Instructions: For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each
correct selection is worth one point.
1 Yes 2 No
QUESTION 79
/1
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 Photo
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 Photo
A Code Segment 1
B Code Segment 2
C Code Segment 3
5 INT NOT NULL PRIMARY KEY, 6 INT NOT NULL FOREIGN KEY,
QUESTION 80
/1
You have a database table that stores information about school attendance.
You have a data set that is defined as follows:
A Brad
B Joe
C Susan
This question requires that you evaluate the underlined text to determine if it is correct.
Views are database objects that contain all of the data 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
C Queries D Tables
QUESTION 82
/1
You have two tables named Cars and Color as defined below. The two tables are related by ColorId.
A 0 B 2
C 6 D 3
QUESTION 83
/1
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.
When volunteers ask to be removed from mailing lists, the table must be updated.
You need to use a transaction to ensure that the database has data integrity and referential integrity.
A Option B B Option A
C Option C D Option D
QUESTION 84
/1
This question requires that you evaluate the underlined text to determine if it is correct.
Create a query that returns a set of table data by using the UPDATE statement.
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.
A SELECT B INSERT
QUESTION 85
/1
This question requires that you evaluate the underlined text to determine if it is correct.
Truncate is a database term used to describe the process of applying a backup to a damaged or corrupt 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 corrector.
C Commit D Restore
QUESTION 86
/1
Your class project requires that you help a charity to create a website that registers volunteers.
The website must store the following data about the volunteers:
. Given name
. Surname
. Telephone number
. Email address
You need to recommend a correct way to store the data.
Create a view that contains columns Create a table that contains columns
A that are named given name surname, B that are named given name,
phone number, and email. surname, phone number, and email.
Create a view that contains rows that Create a table that contains rows
C are named given name surname, D that are named given name,
phone number, and email surname, phone number, and email.
QUESTION 87
/1
This question requires that you evaluate the underlined text to determine if it is correct.
Use the ALLOW SELECT command to give a user permission to read the data in a table.
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
Instructions: Use the drop-down menus to select the answer choice that completes each statement. Each correct
selection is worth one point.
QUESTION 89
/1
This question requires that you evaluate the underlined text to determine if it is correct.
You combine data from three tables into one table. The new table includes redundancy to optimize read performance.
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.
C Normalized D Truncated
QUESTION 90
/1
A ALTER B DELETE
C DROP D TRUNCATE
QUESTION 91
/1
A JOIN B INSERT
C UPDATE D CREATE
QUESTION 92
/1
You need to retrieve data from two related database tables based on a column that exists in both tables.
Which command should you use in a query?
A TRUNCATE B INTERSECT
C JOIN D UNION
QUESTION 93
/1
Which two Structured Query Language (SQL) statements can you use? (Choose two.)
A Option B B Option A
C Option C D Option D
QUESTION 94
/1
This question requires that you evaluate the underlined text to determine if it is correct.
The UNION keyword combines the results of two queries and returns only rows that appear in both result sets.
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
C INTERSECT D JOIN
QUESTION 95
/1
You work at a restaurant and they ask you to help them with a data issue.
They provide you with the following recipe data:
A 2 B 1
C 3 D 4
QUESTION 96
/1
You accept an IT internship at a local charity. The charity has two tables in their data model named Chapter and
Language, as defined below:
You create a third table named ChapterLanguage to relate the Chapter table and the Language table.
You need to select columns from the Chapter and Language tables to create a composite primary key for the
ChapterLanguage table.
A Country B ChapterId
C LanguageId D City
E Region F LanguageName
QUESTION 97
/1
This question requires that you evaluate the underlined text to determine if it is correct.
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.
A UPDATE B CREATE
QUESTION 98
/1
You need to rename a column in a database table.
A INSERT B ALTER
C CREATE D UPDATE
QUESTION 99
/1
This question requires that you evaluate the underlined text to determine if it is correct.
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.
QUESTION 100
/1
This question requires that you evaluate the underlined text to determine if it is correct.
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
A Row B Table
QUESTION 101
/1
This question requires that you evaluate the underlined text to determine if it is correct. You have two tables. Each
table has three rows.
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.
A Six B Zero
QUESTION 102
/1
You need to ensure that each record in the Sales table has a valid associated salesperson record in the Salesperson
table.
QUESTION 103
/1
You have a database table that stores information about school attendance.
You have a data set that is defined as follows:
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.
A StudentName
B GradeLevel
C DaysAbsent
QUESTION 104
/1
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.
QUESTION 105
/1
This question requires that you evaluate the underlined text to determine if it is correct.
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
Save historical data before deleting it Save an extra copy of data stored in
C D
from the base table. a separate table.
QUESTION 106
/1
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.
QUESTION 107
/1
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?
A Option C B Option A
C Option D D Option B
QUESTION 108
/1
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:
A Option D B Option B
C Option C D Option A
QUESTION 109
/1
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
C UNION D ORDER BY
QUESTION 110
/1
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?
A JOIN B TRUNCATE
C UNION D EXCEPT
QUESTION 111
/1
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
QUESTION 112
/1
A 4 B 6
C 7 D 5
QUESTION 113
/1
QUESTION 114
/1
You execute a statement inside a transaction to delete 100 rows from a table. The transaction fails after only 40 rows
are deleted.
What is the result in the database?
A The table will be corrupted. Forty (40) rows will be deleted from
B
the table.
QUESTION 115
/1
You have a table that contains product IDs and product names.
You need to write an UPDATE statement to change the name of a specific product to glass.
QUESTION 116
/1
Your database contains a table named Customer.
You need to delete the record from the Customer table that has a CustomerID of 12345.
A Option D B Option B
C Option C D Option A
QUESTION 117
/1
C User D Table
E Role
QUESTION 118
/1
You have a table of products with fields for ProductID, Name, and Price.
You need to write an UPDATE statement that sets the value in the InStock field to Yes for a specific ProductID.
A THAT B WHERE
C GROUP BY D HAVING
QUESTION 119
/1
A Option D B Option B
C Option C D Option A
QUESTION 120
/1
You assign User1 a set of permissions that include the WITH GRANT OPTION. The WITH GRANT OPTION enables
User1 to:
QUESTION 121
/1
Which type of index changes the order in which the data is stored in a table?
A clustered B sequential
C non-sequential D non-clustered
QUESTION 122
/1
QUESTION 123
/1
You need to store the first name, last name, and student ID for 100 students.
This information will be stored in a table as:
A three items and 100 cells. B 100 items and three cells.
C 100 rows and three columns. D three rows and 100 columns.
QUESTION 124
/1
What are three valid data manipulation language (DML) commands? (Choose three.)
A OUTPUT B UPDATE
C DELETE D INSERT
E COMMIT
QUESTION 125
/1
What is one difference between an update statement and a delete statement?
QUESTION 126
/1
E An index
QUESTION 127
/1
You need to list the name and price of each product, sorted by price from highest to lowest. Which statement should
you use?
A Option B B Option C
C Option D D Option A
QUESTION 128
/1
You delete rows in a table named Order. The corresponding rows in the OrderItem table are automatically deleted. This
process is an example of a/an:
E Waterfall delete
QUESTION 129
/1
Which statement deletes the rows where the employee’s phone number is not entered?
A Option B B Option C
C Option A D Option D
QUESTION 130
/1
You need to insert two new products into the Product table. The first product is named Book and has an ID of 125. The
second product is named Movie and has an ID of 126.
Which statement should you use?
A Option A B Option C
C Option D D Option B
QUESTION 131
/1
You have a table named Employee that includes four columns. You execute the following statement:
SELECT *
FROM Employee
QUESTION 132
/1
Which two elements are required to define a column? (Choose two.)
C A key D An Index
QUESTION 133
/1
You are creating a table to store customer data. The AccountNumber column uses values that always consist of one
letter and four digits.
Which data type should you use for the AccountNumber column?
A SMALLINT B BYTE
C CHAR D DOUBLE
QUESTION 134
/1
A SELECT B UPDATE
C WHERE D ORDER BY
QUESTION 135
/1
You have a table named Customer. You need to add a new column named District. Which statement should you use?
A Option B B Option A
C Option C D Option D
QUESTION 136
/1
You need to remove a view named EmployeeView from your database. Which statement should you use?
QUESTION 137
/1
C Method D Formula
QUESTION 138
/1
You have a table named Product that contains the following data.
The ProductID column is the primary key. The CategoryID column is a foreign key to a separate table named Category.
You execute the following statement:
INSERT INTO Product
VALUES (3296, ‘Table’, 4444)
QUESTION 139
/1
QUESTION 140
/1
You have a table named Product that contains one million rows.
You need to search for product information in the Product table by using the product’s unique ID.
A An index B A subquery
C A trigger D A cursor
QUESTION 141
/1
You need to establish a set of permissions that you can routinely assign to new users. What should you create?
A Resource B Role
C List D Group
QUESTION 142
/1
You need to disable User1’s access to view the data in the Customer table.
A Option B B Option C
C Option D D Option A
QUESTION 143
/1
You have a table named Student that contains 100 rows. Some of the rows have a NULL value in the FirstName column.
You execute the following statement:
DELETE FROM Student
A You will receive an error message. B All rows in the table will be deleted.
All rows containing a NULL value in All rows and the table definition will
D
C the FirstName column will be be deleted.
deleted.
QUESTION 144
/1
QUESTION 145
/1
You need to store the contact information for each student in your school database. You should store each student’s
information in a:
A Row B Variable
QUESTION 146
/1
Which category of SQL statements is used to add, remove, and modify database structures?
QUESTION 147
/1
You have a Customer table and an Order table. You join the Customer table with the Order table by using the
CustomerID column.
QUESTION 148
/1
You have a table named Employee that includes the following columns:
EmployeeID
EmployeeName
Which statement should you use to return the number of rows in the table?
A Option D B Option B
C Option A D Option C
QUESTION 149
/1
The Product table contains the following data.
SELECT COUNT(*)
FROM Product WHERE Quantity > 18
A 2 B 3
C 4 D 1
QUESTION 150
/1
QUESTION 151
/1
Which keyword would you use in a select statement to return rows that meet a specific condition?
A WHERE B UNION
C FROM D ORDER BY
QUESTION 153
/1
You have a table that contains information about all students in your school.
Which SQL keyword should you use to change a student’s first name in the table?
A INSERT B SELECT
C CHANGE D UPDATE
QUESTION 154
/1
You need to populate a table named EmployeeCopy with data from an existing table named Employee.
A Option A B Option B
C Option C D Option D
QUESTION 155
/1
You are writing a select statement to find every product whose name contains a specific character.
Which keyword should you use in your where clause?
A FIND B LIKE
C INCLUDES D BETWEEN
QUESTION 156
/1
A database contains two tables named Customer and Order.
The first order for CustomerID 209 is All orders for CustomerID 209 are
A B
deleted from the Order table. deleted from the Order table.
All orders for CustomerID 209 are CustomerID 209 is deleted from the
D
deleted from the Order table, and Customer table.
C
CustomerID 209 is deleted from the
Customer table.
QUESTION 157
/1
You have a table named Product. The Product table has columns for ProductDescription and ProductCategory.
You need to change the ProductCategory value for all the spoons in the Product table to 43.
A option B B option A
C option C D option D
QUESTION 158
/1
Which command should you use to add a column to an existing table?
A UPDATE B CHANGE
C ALTER D INSERT
E MODIFY
QUESTION 159
/1
CREATE TABLE Product (ID INTEGER PRIMARY KEY, Name VARCHAR(20), Quantity INTEGER)
A 3 B 4
C 1 D 2
E 0
QUESTION 160
/1
Which constraint ensures a unique value in the ID column for each customer?
QUESTION 161
/1
The component that holds information for a single entry in a table is called a:
A COLUMN B ROW
QUESTION 162
/1
QUESTION 163
/1
QUESTION 164
/1
A SELECT B GET
C OUTPUT D READ
QUESTION 165
/1
You need to store product names that vary from three to 30 characters. You also need to minimize the amount of
storage space that is used.
QUESTION 166
/1
QUESTION 167
/1
A RUN B ALLOW
C CALL D EXECUTE
QUESTION 168
/1
You have a table named Product. You create a view that includes all the products from the Product table that are in the
Furniture category.
You execute a statement on the Product table that deletes all the products in the Furniture category.
After you execute the statement, the result set of the view is:
A Deleted B Unchanged
C Archived D Empty
QUESTION 169
/1
an error stating that duplicate IDs are an error stating that NULL values are
A B
not allowed not allowed
QUESTION 170
/1
You need to store product quantities, and you want to minimize the amount of storage space that is used. Which data
type should you use?
A INTEGER B FLOAT
C COUNT D DOUBLE
QUESTION 171
/1
Which statement will result in the creation of an index?
A Option B B Option D
C Option C D Option A
QUESTION 172
/1
You need to enable a new employee to authenticate to your database. Which command should you use?
E ALTER USER
QUESTION 173
/1
A DISTINCT B GROUP BY
C UNIQUE D ORDER BY
QUESTION 174
/1
Which command should you use to give a user permission to read the data in a table?
QUESTION 175
/1
when you encounter an error in your when data becomes corrupted in the
A B
application database
When you need to roll back a when data needs to be deleted from
C D
transaction the database
QUESTION 176
/1
At 3:00 P.M. (1500 hours), you create a backup of your database. At 4:00 P.M. (1600 hours), you create a table named
Customer and import data into the table. At 5:00 P.M. (1700 hours), your server fails.
You run a script to apply only the 3:00 P.M. backup to your database.
C The Customer data no longer exists. D The Customer table no longer exists.
QUESTION 177
/1
Which statement creates a composite key?
A Option B B Option A
C Option C D Option D
QUESTION 178
/1
A local B foreign
C primary D superkey
QUESTION 179
/1
You have a table that contains the following data.
A denormalization B defragmentation
C fragmentation D normalization
QUESTION 180
/1
Which database term is used to describe the relationship between ProductID and ProductCategory?
E Deterministic
QUESTION 181
/1
The terms “bitmap,” “b-tree,” and “hash” refer to which type of database structure?
A View B Trigger
E Function
QUESTION 182
/1
QUESTION 183
/1
One error that may occur is attempting to retrieve data with a well-written query but against the wrong ________.
A row B database
C column D table
QUESTION 184
/1
QUESTION 185
/1
One error that may occur when manipulating data is a missing _______:
A table B column
C keyword D query
QUESTION 186
/1
A WHERE B GROUP BY
C FROM D HAVING
QUESTION 187
/1
QUESTION 188
/1
What statement is used to copy records from an existing table to a new table?
QUESTION 189
/1
Before running a DELETE statement, it is always a good idea to run a(n) ____________ statement on the table that is
about to be changed.
A SELECT B INSERT
C UPDATE D DROP
QUESTION 190
/1
What statement is used to copy records from one table into an existing table?
QUESTION 191
/1
A DELETE B REMOVE
C DROP D CANCEL
QUESTION 192
/1
QUESTION 193
/1
What statement is used to change existing data?
A CHANGE B NEW
C UPDATE D MODIFY
QUESTION 194
/1
What is the difference between a DELETE statement and a TRUNCATE TABLE statement?
One can identify specific records that One can identify specific records that
are being deleted with a TRUNCATE are being deleted with a DELETE
B
A TABLE statement, while a DELETE statement, while a TRUNCATE TABLE
statement allows one to delete specific statement deletes all data in a table
characters in a record
One can identify specific records that One can identify specific records that
are being deleted with a TRUNCATE are being deleted with a DELETE
C
TABLE statement, while a DELETE D statement, while a TRUNCATE TABLE
statement deletes all data in a table statement allows one to delete specific
characters in a record
QUESTION 195
/1
While a clustered index is based on a __________, a nonclustered index can be based on any other field.
QUESTION 196
/1
A numbers B spaces
QUESTION 198
/1
A number B output
C boolean D input
QUESTION 199
/1
a stored statement that leads one to a location within a database that stores
A B
specific information general information
a location within a database that stores a stored statement that leads one to
C D
specific information general information
QUESTION 200
/1
To change a view, with what keyword should CREATE in the CREATE VIEW command be replaced?
A CHANGE B ALTER
C REPLACE D UPDATE
user school - ITS Database : Section 1 Instructors: charis barbosa, Reban Cliff Fajardo, Fe Yara
ITS Database
GRADING INSTRUCTIONS: Grade each question and tally the points to find the student's total points for the assessment. If the factor does not equal 1,
multiply the total points by the factor to obtain the student's final score.
C datetime2 D datetimeoffset
This question requires that you evaluate the underlined text to determine if it is correct.
Views are database objects that contain all of the data 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
A Tables B Queries
A 3 B 6
C 2 D 0
Note: This question has alternate correct answers that may affect scoring. To view all possible scoring options, log into Schoology and
navigate to the correct answer setup of this question.
A Relational B Traditional
C Truncate
A Database design
B
Identifying relationships between
objects
You can back up dynamic log files B When the server is shut down.
A
any time.
Which of the following commands cannot be rolled back? Each correct answer represents a complete solution.
(Choose two.)
A UPDATE B COMMIT
C DELETE D TRUNCATE
Which of the following DML SQL statements support usage of correlated sub-queries? Each correct answer represents
a complete solution. (Choose all that apply.)
A UPDATE B DELETE
C SELECT D INSERT
What is the relationship between the foreign key and primary key? Each correct answer represents a complete
solution. (Choose all that apply.)
CREATE Product (
ProductID Char (10) NOT NULL,
OrderID Char (10) NULL
ProductName Varchar NOT NULL,
Primary key (OrderID, ProductID))
What are the errors in the above query? Each correct answer represents a complete solution. (Choose two.)
Which of the following steps in database planning is used to record an object so that it is represented visually in the
system?
ERROR 1251: The client does not support authentication protocol requested by the server; consider upgrading MySQL
client You do not want to upgrade any client or server right now, and want to enable all clients to connect to the new
server successfully.
Which of the following steps will you take to resolve the issue?
Run the server with the –secure-auth Run the server with the –old-
A
option.
B password option.
Run the server with the –allow-old Run the server with the –enable-old
C D
option. option.
In addition to taking backups of your databases, you should also backup up files stated below.
Which of these files store updates that have been made after the backup was made?
C My.cnf D Master.info
Which of the following scripts is used to convert Unix-type zone files into SQL statements, and loads the time zone
tables in a mysql database?
A mysql_tz_to_sql B mysql_timezone_to_sql
C mysql_tzinfo_to_sql D mysql_time_to_sql
Each new employee joining the company is assigned an E-mail Login and Password.
This E-mail Login and Password is used by each employee to access his account on the company’s Web site.
The value of both the attributes should be unique and cannot be NULL.
You design an artificial key EmpID in the Info table to serve as a primary key.
Which of the following factors lead you to define an artificial key for use as a primary key in the Info table? Each
correct answer represents a part of the solution. (Choose all that apply.)
The value of the primary key cannot The natural key contains highly
A be NULL.
B sensitive data
The value of the primary key must be The value of the primary key must be
C persistent.
D unique.
Which of the following statements will you use to accomplish the task?
A CREATE B DROP
C ALTER D SELECT
A Database design
B
Requirements collection and
analysis
The www.company.com network area consists of a single Active Directory domain named www.company.com.
The www.company.com network contains a Microsoft SQL Server 2005 database server named COMPANY-DB111,
which you administer at a regular interval of time. COMPANY-DB111 contains and hosts three databases that support
different types of business requirements.
The network uses the DBA database that supports internal operations including maintaining data, accounting, and
mailing. The network’s regular users make use of stored procedures for the data values that need insertion into the
tables.
The stored procedures used in the network of the company are designed to access SQL variant type parameters and
then use the values to build and execute ad hoc query statements that are the part of the SQL statements. During a
routine network check, you discover that there are several odd occurrences in the database.
The odd occurrences include data deleted from tables and other unauthorized activity.
You suspect a user is executing the unauthorized statements through the stored procedures.
You are required to stop the unauthorized changes while having least impact on the stored procedures that are in use.
Your explanation must use the least administrative effort.
The stored procedure should be The stored procedures used for the
A customized to use type-specific and B table should be replaced with ad hoc
length-restricted parameters. queries.
All data handling activity on the table The input parameters should be
C
should be audited and recorded. D parsed to watch for and block any
input including single quotes.
Which of the following enables a user to use generic methods to access a database and to focus on the coding rather
than the syntax for a specific database API?
A One-to-one B One-to-many
Which of the following approaches will she use to accomplish the task?
Which of the following is a design of the user interface and the application programs that use and process the
database?
C Encryption D Abstraction
A 'null' B null
C '0' D "
Which of the following can be used to populate a table? Each correct answer represents a complete solution. (Choose
all that apply.)
For which of the following tables will this command work? Each correct answer represents a complete solution.
(Choose two.)
A MERGE B InnoDB
C MyISAM D FEDERATED
Which of the following are the main approaches in the database design? Each correct answer represents a complete
solution. (Choose three.)
Your Company is designing and developing a number of databases for a stock exchange.
One of the databases will contain highly sensitive data for which high level of security will be required. Although high
processing speed is one of the prime requirements of the customer, for this database, security of the data will take
priority over the processing speed. It needs to be ensured that even if unauthorized access to the database is
obtained, the rogue user is unable to read the data.
Which of the following protection techniques will you suggest for this database?
It prevents the current database operation from reading or writing a data item while the data item is being accessed by
another operation.
A Encryption B Deadlock
C Constraint D Lock
You manage a database named Customers, which includes a table named Orders.
The Orders table is frequently queried, but only orders with a sales total of more than $1000.00 are required in the
query.
You want to create an index to speed up these types of queries at the same time, ensuring the index is as small as
possible.
A XML B Filtered
C Non-clustered D Clustered
Which of the following data models will he use to accomplish the task?
A Line 2 B Line 4
C Line 1 D Line 3
Which of the following provides reliable units of work that allow correct recovery from failures and keeps a database
consistent even in cases of system failure?
Which of the following database designs will help you accomplish the task?
JDBC API 2.0 defines five levels of transaction isolation for database concurrency control.
Which of the following is the lowest level of transaction isolation?
A TRANSACTION_NONE B TRANSACTION_SERIALIZABLE
TRANSACTION_REPEATABLE_REA TRANSACTION_READ_UNCOMMITT
C D
D ED
E TRANSACTION_READ_COMMITTED
What code will create the trigger to meet your goals? Each correct answer represents a complete solution. (Choose all
that apply.)
Which of the following database planning steps will help him to accomplish the task?
A table in the database has a candidate key and an attribute that is not a constituent of the candidate key. The non-key
attribute depends upon the whole of the candidate key rather than just a part of it.
A 1 NF B 2 NF
C 4 NF D 3 NF
Which of the following commands can be used to change the authorization type in DB2 9? Each correct answer
represents a complete solution. (Choose all that apply.)
Which of the following are DML commands? Each correct answer represents a complete solution. (Choose all that
apply.)
C SELECT D ALTER
E UPDATE F DELETE
Which of the following steps will you take to accomplish the task?
Start the server with the –secure- Start the server with the –skip-
A
auth option.
B networking option.
Start the server with the –disable- Start the server with the –shared-
C D
networking option. memory option.
Change the fillfactor for the indexes Change the fillfactor for the indexes
A to 60.
B
to 0.
Change the fillfactor for the indexes D Update the statistics on the indexes.
C
to 100
What will you do to resolve the issue? Each correct answer represents a complete solution. (Choose two.)
Which of the following is the process of extracting trails on a regular basis so that they can be transferred to a
designated security system where the database administrators do not have access?
Which of the following is a management activity that allows the stages of the database application to be realized as
efficiently and effectively as possible?
Each correct answer represents a part of the solution. (Choose all that apply.)
A DML trigger that queries the A DDL trigger that queries the
A B
updated table updated table
A DML trigger that queries the A DDL trigger that queries the
C inserted table
D
inserted table
A Abstraction B Authentication
E Referential integrity
This question requires that you evaluate the underlined text to determine if it is correct.
The UNION keyword combines the results of two queries and returns only rows that appear in both result sets.
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
A INTERSECT B ALL
You have a database that contains 10 terabytes of data. You need to back up the database every two hours.
Which type of backup should you use?
A incremental B archive
C partial D full
This question requires that you evaluate the underlined text to determine if it is correct.
A relational database management system employs the concept of an attribute to ensure that data entered into a field
in a column is valid.
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.
Correct answers:
This question requires that you evaluate the underlined text to determine if it is correct.
A key defines the amount of storage space that is allocated to a value in a column.
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
A FILTER B CONSTRAINT
C WHERE D JOIN
Instructions: For each of the following statements, select the appropriate answer choice of the following:
Correct answers:
Correct answers:
1 Yes 2 Yes 3 No
1 possible pt.
Instructions: For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each
correct selection is worth one point.
Correct answers:
1 Yes 2 Yes 3 No
Instructions: Use the drop-down menus to select the answer choice that completes each statement. Each correct
selection is worth one point.
Correct answers:
1 more 2 less
Correct answers:
1 unlimited 2 unlimited
1 possible pt.
You have two database tables as defined below. The StateID column is unique in the State table. The AddressID
column is unique in the Address table. The two tables are related by the StateID column.
Correct answers:
1 No 2 Yes 3 Yes
Instructions: For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each
correct selection is worth one point.
Correct answers:
1 No 2 Yes 3 Yes 4 No
Correct answers:
1 No 2 Yes 3 Yes
Instructions: Use the drop-down menus to select the answer choice that completes each statement Each correct
selection is worth one point.
Correct answers:
Instructions: Use the drop-down menus to select the answer choice that completes each statement. Each correct
selection is worth one point.
Correct answers:
Correct answers:
1 client 2 s01.constoso.com
Correct answers:
1 Yes 2 No 3 No 4 Yes
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 Photo
A Code Segment 1
B Code Segment 2
C Code Segment 3
Correct answers:
A Brad
B Joe
C Susan
Correct answers:
Views are database objects that contain all of the data 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
You have two tables named Cars and Color as defined below. The two tables are related by ColorId.
A 3 B 2
C 6 D 0
A Option A B Option C
C Option B D Option D
This question requires that you evaluate the underlined text to determine if it is correct.
Create a query that returns a set of table data by using the UPDATE statement.
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.
A INSERT B SELECT
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.
C Attach D Restore
Your class project requires that you help a charity to create a website that registers volunteers.
The website must store the following data about the volunteers:
. Given name
. Surname
. Telephone number
. Email address
You need to recommend a correct way to store the data.
Create a table that contains columns Create a view that contains columns
A that are named given name, B that are named given name surname,
surname, phone number, and email. phone number, and email.
Create a table that contains rows Create a view that contains rows that
C that are named given name, D are named given name surname,
surname, phone number, and email. phone number, and email
Use the ALLOW SELECT command to give a user permission to read the data in a table.
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
Instructions: Use the drop-down menus to select the answer choice that completes each statement. Each correct
selection is worth one point.
Correct answers:
1 unlimited 2 unlimited
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.
C Truncated D Normalized
A DELETE B ALTER
C DROP D TRUNCATE
A JOIN B CREATE
C UPDATE D INSERT
A UNION B INTERSECT
C TRUNCATE D JOIN
Which two Structured Query Language (SQL) statements can you use? (Choose two.)
A Option A B Option D
C Option B D Option C
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
C ALL D INTERSECT
You work at a restaurant and they ask you to help them with a data issue.
They provide you with the following recipe data:
A 2 B 4
C 1 D 3
You create a third table named ChapterLanguage to relate the Chapter table and the Language table.
You need to select columns from the Chapter and Language tables to create a composite primary key for the
ChapterLanguage table.
A City B ChapterId
C Country D Region
E LanguageName F LanguageId
This question requires that you evaluate the underlined text to determine if it is correct.
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.
C INSERT D CREATE
A INSERT B UPDATE
C CREATE D ALTER
This question requires that you evaluate the underlined text to determine if it is correct.
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.
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
A Row B Index
This question requires that you evaluate the underlined text to determine if it is correct. You have two tables. Each
table has three rows.
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.
A Zero B Six
You need to ensure that each record in the Sales table has a valid associated salesperson record in the Salesperson
table.
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.
A StudentName
B GradeLevel
C DaysAbsent
Correct answers:
You need to establish a relationship between the data that is in the two tables.
This question requires that you evaluate the underlined text to determine if it is correct.
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
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.
Correct answers:
3 FROM Animal a
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?
A Option C B Option D
C Option A D Option B
A Option C B Option B
C Option A D 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
A ORDER BY B UNION
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?
A JOIN B TRUNCATE
C EXCEPT D 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
A 5 B 6
C 7 D 4
Forty (40) rows will be deleted from No rows will be deleted from the
C
the table.
D table.
You have a table that contains product IDs and product names.
You need to write an UPDATE statement to change the name of a specific product to glass.
A Option C B Option D
C Option A D Option B
C User D Trigger
E Table
A THAT B HAVING
C GROUP BY D WHERE
A Option A B Option D
C Option C D Option B
Which type of index changes the order in which the data is stored in a table?
A non-clustered B non-sequential
C sequential D clustered
A 100 rows and three columns. B three rows and 100 columns.
C three items and 100 cells. D 100 items and three cells.
What are three valid data manipulation language (DML) commands? (Choose three.)
A INSERT B DELETE
C UPDATE D COMMIT
E OUTPUT
E An index
You need to list the name and price of each product, sorted by price from highest to lowest. Which statement should
you use?
A Option A B Option D
C Option C D Option B
E Domino delete
Which statement deletes the rows where the employee’s phone number is not entered?
A Option D B Option A
C Option B D Option C
A Option C B Option B
C Option D D Option A
You have a table named Employee that includes four columns. You execute the following statement:
SELECT *
FROM Employee
A A name B An Index
You are creating a table to store customer data. The AccountNumber column uses values that always consist of one
letter and four digits.
Which data type should you use for the AccountNumber column?
A SMALLINT B CHAR
C DOUBLE D BYTE
A UPDATE B SELECT
C ORDER BY D WHERE
You have a table named Customer. You need to add a new column named District. Which statement should you use?
A Option C B Option A
C Option B D Option D
You need to remove a view named EmployeeView from your database. Which statement should you use?
A Subroutine B Method
You have a table named Product that contains the following data.
The ProductID column is the primary key. The CategoryID column is a foreign key to a separate table named Category.
You execute the following statement:
INSERT INTO Product
VALUES (3296, ‘Table’, 4444)
You have a table named Product that contains one million rows.
You need to search for product information in the Product table by using the product’s unique ID.
A A cursor B A trigger
C A subquery D An index
You need to establish a set of permissions that you can routinely assign to new users. What should you create?
A Group B Role
C Resource D List
A Option D B Option C
C Option B D Option A
You have a table named Student that contains 100 rows. Some of the rows have a NULL value in the FirstName column.
You execute the following statement:
DELETE FROM Student
A All rows in the table will be deleted. All rows containing a NULL value in
B the FirstName column will be
deleted.
C You will receive an error message. All rows and the table definition will
D
be deleted.
You need to store the contact information for each student in your school database. You should store each student’s
information in a:
C Row D Variable
Which category of SQL statements is used to add, remove, and modify database structures?
You have a table named Employee that includes the following columns:
EmployeeID
EmployeeName
Which statement should you use to return the number of rows in the table?
A Option D B Option A
C Option B D Option C
SELECT COUNT(*)
FROM Product WHERE Quantity > 18
A 1 B 4
C 3 D 2
A Subquery B Union
Which keyword would you use in a select statement to return rows that meet a specific condition?
A ORDER BY B UNION
C WHERE D FROM
You have a table that contains information about all students in your school.
Which SQL keyword should you use to change a student’s first name in the table?
A SELECT B UPDATE
C INSERT D CHANGE
You need to populate a table named EmployeeCopy with data from an existing table named Employee.
A Option A B Option B
C Option C D Option D
You are writing a select statement to find every product whose name contains a specific character.
Which keyword should you use in your where clause?
A LIKE B FIND
C INCLUDES D BETWEEN
CustomerID 209 is deleted from the All orders for CustomerID 209 are
A
Customer table. deleted from the Order table, and
B
CustomerID 209 is deleted from the
Customer table.
The first order for CustomerID 209 is All orders for CustomerID 209 are
C
deleted from the Order table.
D deleted from the Order table.
A option A B option B
C option D D option C
A MODIFY B CHANGE
C INSERT D UPDATE
E ALTER
CREATE TABLE Product (ID INTEGER PRIMARY KEY, Name VARCHAR(20), Quantity INTEGER)
A 1 B 4
C 2 D 0
E 3
Which constraint ensures a unique value in the ID column for each customer?
C VIEW D ROW
A GET B READ
C OUTPUT D SELECT
You need to store product names that vary from three to 30 characters. You also need to minimize the amount of
storage space that is used.
A
Give the user control of the query B Improve performance.
logic.
A RUN B EXECUTE
C CALL D ALLOW
You have a table named Product. You create a view that includes all the products from the Product table that are in the
Furniture category.
You execute a statement on the Product table that deletes all the products in the Furniture category.
After you execute the statement, the result set of the view is:
A Unchanged B Empty
C Deleted D Archived
A
an error stating that NULL values are B a new row in the table
not allowed
You need to store product quantities, and you want to minimize the amount of storage space that is used. Which data
type should you use?
A FLOAT B COUNT
C INTEGER D DOUBLE
A Option D B Option C
C Option B D Option A
You need to enable a new employee to authenticate to your database. Which command should you use?
E ALLOW USER
A ORDER BY B GROUP BY
C UNIQUE D DISTINCT
Which command should you use to give a user permission to read the data in a table?
when data needs to be deleted from When you need to roll back a
A B
the database transaction
when you encounter an error in your when data becomes corrupted in the
C
application
D database
A Option A B Option C
C Option D D Option B
A foreign B primary
C local D superkey
A normalization B denormalization
C fragmentation D defragmentation
Which database term is used to describe the relationship between ProductID and ProductCategory?
E Compositional
The terms “bitmap,” “b-tree,” and “hash” refer to which type of database structure?
C View D Trigger
E Function
One error that may occur is attempting to retrieve data with a well-written query but against the wrong ________.
A database B row
C table D column
A
Causes tables to not appear correctly B Causes a statement not to run
within a database
One error that may occur when manipulating data is a missing _______:
A column B keyword
C query D table
A GROUP BY B FROM
C WHERE D HAVING
What statement is used to copy records from an existing table to a new table?
A UPDATE B SELECT
C INSERT D DROP
What statement is used to copy records from one table into an existing table?
A DELETE B DROP
C REMOVE D CANCEL
A UPDATE B MODIFY
C NEW D CHANGE
What is the difference between a DELETE statement and a TRUNCATE TABLE statement?
One can identify specific records that One can identify specific records that
are being deleted with a DELETE are being deleted with a DELETE
A statement, while a TRUNCATE TABLE
B statement, while a TRUNCATE TABLE
statement allows one to delete specific statement deletes all data in a table
characters in a record
One can identify specific records that One can identify specific records that
are being deleted with a TRUNCATE are being deleted with a TRUNCATE
D
C TABLE statement, while a DELETE TABLE statement, while a DELETE
statement allows one to delete specific statement deletes all data in a table
characters in a record
While a clustered index is based on a __________, a nonclustered index can be based on any other field.
C column D row
C symbols D numbers
A number B output
C boolean D input
a location within a database that stores a location within a database that stores
A B
general information specific information
a stored statement that leads one to a stored statement that leads one to
C specific information
D
general information
To change a view, with what keyword should CREATE in the CREATE VIEW command be replaced?
A REPLACE B UPDATE
C ALTER D CHANGE