98-364 : Database Fundamentals : Part 02
-
You are writing an SQL statement to retrieve rows from a table.
Which data manipulation language (DML) command should you use?
- READ
- SELECT
- OUTPUT
- GET
-
Which constraint ensures a unique value in the ID column for each customer?
- DISTINCT
- FOREIGN KEY
- SEQUENTIAL
- PRIMARY KEY
-
The component that holds information for a single entry in a table is called a:
- Data type
- Row
- Column
- View
-
You execute the following statement:
SELECT EmployeeID, FirstName, DepartmentName
FROM Employee, DepartmentThis type of operation is called a/an:
- Intersection
- Outer join
- Equi-join
- Cartesian product
-
Which command should you use to add a column to an existing table?
- MODIFY
- ALTER
- UPDATE
- INSERT
- CHANGE
-
You 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?
- 0
- 1
- 2
- 3
- 4
-
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?
- FIND
- BETWEEN
- INCLUDES
- LIKE
-
A database contains two tables named Customer and Order.
You execute the following statement:
DELETE FROM Order
WHERE CustomerID = 209What is the result?
- The first order for CustomerID 209 is deleted from the Order table.
- All orders for CustomerID 209 are deleted from the Order table, and CustomerID 209 is deleted from the Customer table.
- All orders for CustomerID 209 are deleted from the Order table.
- CustomerID 209 is deleted from the Customer table.
-
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.
Which statement should you use?
- Option A
- Option B
- Option C
- Option D
-
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?
- UPDATE
- CHANGE
- SELECT
- INSERT
-
You need to populate a table named EmployeeCopy with data from an existing table named Employee.
Which statement should you use?
- Option A
- Option B
- Option C
- Option D
-
You execute the following statement:
This statement is an example of a/an:
- Subquery
- Union
- Outer join
- Cartesian product
-
Which keyword would you use in a select statement to return rows that meet a specific condition?
- WHERE
- UNION
- ORDER BY
- FROM
-
You have a table named Employee that includes the following columns:
EmployeeID
Smp1oyeeNameWhich statement should you use to return the number of rows in the table?
- Option A
- Option B
- Option C
- Option D
-
The Product table contains the following data.
You execute the following statement:
SELECT COUNT(*)
FROM Product WHERE Quantity > 18What is the value returned by this statement?
- 1
- 2
- 3
- 4
-
Which command should you use to remove a table from a database?
- REMOVE TABLE
- UPDATE TABLE
- DROP TABLE
- DELETE TABLE
-
You need to store the contact information for each student in your school database.
You should store each student’s information in a:
- Stored procedure
- Function
- Row
- Variable
-
Which category of SQL statements is used to add, remove, and modify database structures?
- Data access language (DAL)
- Data manipulation language (DML)
- Data control language (DCL)
- Data definition language (DDL)
-
You have a Customer table and an Order table. You join the Customer table with the Order table by using the CusromerID column.
The results include:
– All customers and their orders
– Customers who have no ordersWhich type of join do these results represent?
- Complete join
- Partial join
- Inner join
- Outer join
-
Data in a database is stored in:
- Tables
- Queries
- Data types
- Stored procedures
Subscribe
0 Comments
Newest