Quiz
CET_TARDE - MTA Database - E_COMANDS
Dieses Quiz enthält Fragetypen, die sich im gewohnten Player öffnen.
Fragen in diesem Quiz (43)
1You have the following table:
- Aforeign key
- Bclustered index
- Cnonclustered index
- Dforeign key
- Eclustered index
- Fnonclustered index
2You have the following SQL query SELECT * FROM dbo.ProAthlete WHERE Salary > 500000
The query takes too much time to return data. You need to improve the performance of
the query. Which item should you add to the Salary column?- ANon-null constraint
- BDefault constraint
- CIndex
- DForeign key
3This 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:- ANo change is needed
- BDROP TABLE
- CTRUNCATE TABLE
- DALTER TABLE
4You have a table named Employee that includes four columns. You execute the following statement:
SELECT * FROM Employee
Which columns are returned?- Aall columns
- Bonly the last column
- Conly the first column
- Donly the first and last columns
5Which keyword must be included in a create view statement?
- AWHERE
- BORDER BY
- CUPDATE
- DSELECT
6The Product table contains the following data.
You execute the following statement:
SELECT COUNT(*) FROM Product WHERE Quantity > 18
What is the value returned by this statement?
- A1
- B2
- C3
- D4
7You 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?
- AUPDATE
- BCHANGE
- CSELECT
- DINSERT
8Which keyword would you use in a select statement to return rows that meet a specific condition?
- AWHERE
- BUNION
- CORDER BY
- DFROM
9You have the following table definition:
CREATE TABLE Product (ID INTEGER PRIMARY KEY, Name VARCHAR(20), Quantity INTEGER)
The Product table contains the following data.
You execute the following statement:
SELECT Name FROM Product WHERE Quantity IS NOT NULL
How many rows are returned?
- A0
- B1
- C2
- D3
- E4
10You execute the following statement:
SELECT EmployeeID, FirstName, DepartmentName FROM Employee,
Department This type of operation is called a/an:- AIntersection
- BOuter join
- CEqui-join
- DCartesian product
11You are writing an SQL statement to retrieve rows from a table. Which data manipulation
language (DML) command should you use?- AREAD
- BSELECT
- COUTPUT
- DGET
12which command used to removes all rows from a table without logging the individual row deletions.
- ADROP TABLE
- BTRUNCATE TABLE
- CCREATE TABLE
- DALTER TABLE
13You need to delete a database table. Which data definition language (DDL) keyword should you use?
- AALTER
- BDELETE
- CDROP
- DTRUNCATE
14You need to rename a column in a database table. Which data definition language (DDL)
statement should you use?- AALTER
- BINSERT
- CCREATE
- DUPDATE
15What are three valid data manipulation language (DML) commands? (Choose three.)
- AINSERT
- BCOMMIT
- CDELETE
- DOUTPUT
- EUPDATE
16You are writing an SQL statement to retrieve rows from a table. Which data manipulation
language (DML) command should you use?- AREAD
- BSELECT
- COUTPUT
- DGET
1717. You have the following table definition:
CREATE TABLE Road (RoadID INTEGER NOT NULL, Distance INTEGER NOT NULL)
The Road table contains the following data:
You execute the following statement:
INSERT INTO Road VALUES (1234, 36)
What is the result?
- Aan error stating that NULL values are not allowed
- Ba new row in the table
- Can error stating that duplicate IDs are not allowed
- Da syntax error
18You need to enable a new employee to authenticate to your database. Which command should you use?
- AALLOW USER
- BCREATE USER
- CADD USER
- DINSERT USER
- EALTER USER
19This 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.- ANo change is needed
- BINSERT
- CREPLACE
- DSELECT
20You 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:- AOption A
- BOption B
- COption C
- DOption D
21You 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. What should you
include in the update statement?- ASET ProduetName = ‘glass’
- BLET ProduetName = ‘glass’
- CEXEC ProduetName = ‘glass’
- DASSIGN ProduetName = ‘glass’
22You 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.
Which clause should you use in your update statement?- ATHAT
- BWHERE
- CGROUP BY
- DHAVING
23You need to list the name and price of each product, sorted by price from highest to lowest.
Which statement should you use?
- AOption A
- BOption B
- COption C
- DOption D
24You have a table named Customer. You need to add a new column named District. Which
statement should you use?
- AOption A
- BOption B
- COption C
- DOption D
25You need to remove a view named EmployeeView from your database. Which statement
should you use?- ADELETE VIEW EmployeeView
- BDELETE EmployeeView
- CDROP EmployeeView
- DDROP VIEW EmployeeView
26On which database structure does an update statement operate?
- ATable
- BUser
- CTrigger
- DRole
27You need to populate a table named EmployeeCopy with data from an existing table named Employee.
Which statement should you use?
- AOption A
- BOption B
- COption C
- DOption D
28You execute the following statement:
SELECT DepartamentName
FROM Departament
WHERE DepartamentID =
(SELECT DepartamentID
FROM Employee
WHERE EmployeeID = 1234
This statement is an example of a/an:- ASubquery
- BUnion
- COuter join
- DCartesian product
29Which command should you use to add a column to an existing table?
- AMODIFY
- BALTER
- CUPDATE
- DINSERT
- ECHANGE
30Which keyword can be used in a create table statement?
- AORDER BY
- BDISTINCT
- CGROUP BY
- DUNIQUE
31Which statement creates a composite key?

- AOption A
- BOption B
- COption C
- DOption D
32You are creating a database object named Student to store the following data:
Which syntax should you use to create the object?- AOption A
- BOption B
- COption C
- DOption D
33You have a database table named SongInformation as defined below:
- AOption A
- BOption B
- COption C
- DOption D
34You 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. Which statement should you use?

- AOption A
- BOption B
- COption C
- DOption D
35You have a database table that contains the following columns:
Which two Structured Query Language (SQL) statements can you use? (Choose two.)- AOption A
- BOption B
- COption C
- DOption D
36You have the database table named Cars as defined below:
How many rows are returned by the SQL statement?- A4
- B5
- C6
- D7
37Your database contains a table named Customer. You need to delete the record from the Customer table that has a CusromerID of 12345.
Which statement should you use?
- AOption A
- BOption B
- COption C
- DOption D
38You have the following table definition:
CREATE TABLE Product (ProductID INTEGER, Name VARCHAR(20))
You need to insert a new product. The product’s name is Plate and the product’s ID is 12345. Which statement should you use?
- AOption A
- BOption B
- COption C
- DOption D
39Which statement deletes the rows where the employee’s phone number is not entered?

- AOption A
- BOption B
- COption C
- DOption D
40You 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?

- AOption A
- BOption B
- COption C
- DOption D
- EOption E
41You have a table named Product that contains the following data.
The PrcducrID 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)
What is the result?
- Aa foreign key constraint violation
- Ba syntax error
- Ca new row in the Product table
- Da primary key constraint violation
- Ea new row in the Category table
42You have a table named Employee that includes the following columns:
EmployeeID
Smp1oyeeName
Which statement should you use to return the number of rows in the table?
- AOption A
- BOption B
- COption C
- DOption D
43You 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.
Which statement should you use?
- AOption A
- BOption B
- COption C
- DOption D
Informationen
- Beschreibung
- Database Quizzes preparing to certification
- Autor
- Hawerth Castro
- Sprache
- Português
- Aufrufe
- 145
- Schlagwörter
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz