Exam 3: Creating Tables
Exam 1: Introduction to Kimtay Pet Supplies and Staywell Student Accommodation Databases36 Questions
Exam 2: Database Design Fundamentals33 Questions
Exam 3: Creating Tables35 Questions
Exam 4: Single Table Queries35 Questions
Exam 5: Multiple Table Queries34 Questions
Exam 6: Updating Data34 Questions
Exam 7: Database Administration35 Questions
Exam 8: Functions Procedures and Triggers35 Questions
Select questions type
When adding rows to character columns, make sure you enclose the values in single quotation marks.
Free
(True/False)
4.8/5
(82)
Correct Answer:
True
Which of the following is a valid name for a table?
Free
(Multiple Choice)
4.8/5
(75)
Correct Answer:
A
Why does the POSTAL_CODE column in the REP table of the KimTay database have a data type of CHAR, if a postal code is made up of numbers?
Free
(Essay)
4.9/5
(83)
Correct Answer:
Even though the POSTAL_CODE column contains numbers, those numbers are not used in calculations. Therefore, the column should have a CHAR data type.
A text file with a .sql extension that contains SQL commands is a _____.
(Multiple Choice)
5.0/5
(72)
Laura is adding a new product to the CANDY table, which has columns for the product ID, name, description, and price. Price is a dollars and cents value; the others are strings of characters. Which SQL command should Laura use to add the row for the new product?
(Multiple Choice)
4.9/5
(90)
To list all the columns in a table and their properties in MySQL, use the LIST COLUMNS command.
(True/False)
4.8/5
(77)
Which data type should you use for columns that contain letters and special characters or numbers that will not be used in calculations?
(Multiple Choice)
4.7/5
(97)
Which MySQL command do you use to define a table's structure by listing its columns, data types, and column lengths?
(Multiple Choice)
4.8/5
(103)
The DESCRIBE TABLE command defines a SQL table's structure by listing its columns, data types, and column lengths.
(True/False)
4.9/5
(68)
To display all the rows and columns in a table, type the word SELECT, followed by a(n) _____, followed by the keyword FROM and then the name of the table containing the data you want to view.
(Multiple Choice)
4.8/5
(86)
What special value is used in SQL to represent cases in which an actual value is unknown, unavailable, or not applicable?
(Multiple Choice)
5.0/5
(82)
In SQL Server, you can execute the sp_columns command to list all the columns in a table.
(True/False)
4.8/5
(60)
Pete would like to set up a database called BAKE_SALE_FUNDRAISER so that he can begin defining the objects within it. Which MySQL command should Pete use?
(Multiple Choice)
4.7/5
(89)
Which of the following SQL commands changes the value in the column LAST_NAME within the row containing a REP_ID of 007?
(Multiple Choice)
4.9/5
(83)
Jesse has written some commands in MySQL Workbench that he expects to run regularly, and he would like to save them for future use. What should he do next?
(Multiple Choice)
4.9/5
(74)
Showing 1 - 20 of 35
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)