Exam 3: Creating Tables

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

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:
Verified

True

Which of the following is a valid name for a table?

Free
(Multiple Choice)
4.8/5
(75)
Correct Answer:
Verified

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:
Verified

Even though the POSTAL_CODE column contains numbers, those numbers are not used in calculations. Therefore, the column should have a CHAR data type.

It is recommended that table names be limited to _____.

(Multiple Choice)
4.8/5
(72)

A text file with a .sql extension that contains SQL commands is a _____.

(Multiple Choice)
5.0/5
(72)

SQL was developed in the mid-____.

(Multiple Choice)
4.8/5
(79)

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)

Should a user be allowed to enter null values for the primary key?

(Essay)
4.8/5
(90)

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)

When creating a SQL table, _____.

(Multiple Choice)
4.9/5
(77)

Which SQL command is used to view the data in a table?

(Multiple Choice)
4.9/5
(78)

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
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)