Exam 3: Structured Query Language

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

Distinguish between Char and VarChar data types.

Free
(Essay)
4.8/5
(35)
Correct Answer:
Verified

Char data type is fixed length,so that no matter what the actual length of the data entered is,it will always take exactly the same storage space.For example,Char(10)indicates that 10 characters will always be stored for each value of that column.If the actual data entered is less than the specified fixed length,the data will be padded with blanks.VarChar data type is variable length so that only the amount of space actually needed to store the data is used.Although VarChar may be more efficient in its use of space,it is not always preferred.VarChar requires the storage of some extra data to indicate the length of the data values,plus it requires some extra processing by the DBMS to arrange the variable length data.

Given the table STUDENT(StudentID,Name,Advisor),which of the following SQL statements would be used to add new student data to the STUDENT table?

Free
(Multiple Choice)
4.7/5
(35)
Correct Answer:
Verified

B

When using SQL to create a table,specifying the NULL property for a column indicates that only null values may be stored in that column.

Free
(True/False)
4.7/5
(36)
Correct Answer:
Verified

False

The SUM built-in function in SQL is used to total the values in a numeric column.

(True/False)
4.9/5
(38)

Which of the following is not one of the five SQL built-in functions?

(Multiple Choice)
4.8/5
(41)

Microsoft Access SQL supports and will correctly implement the numeric data type with (m,n)notation.

(True/False)
4.8/5
(45)

In Microsoft Access,the default method of creating and running a query is ________.

(Short Answer)
4.8/5
(41)

Referential integrity constraints using the ON DELETE NO ACTION phrase may be explicitly stated when the table is created using the CREATE TABLE statement.

(True/False)
4.9/5
(31)

In SQL,the LIKE keyword can be combined with the NOT keyword to form the NOT LIKE condition for selecting values.

(True/False)
4.7/5
(26)

To open a new Microsoft Access Query window:

(Multiple Choice)
4.8/5
(43)

Explain the essential format of the CREATE TABLE statement.

(Essay)
4.8/5
(38)

To open a new Microsoft Access Query window,click the Query Design button on the Create command tab.

(True/False)
4.9/5
(29)

Which of the following data types used in SQL would define a fixed-length text field of 10 characters?

(Multiple Choice)
4.9/5
(38)

The SQL keyword(s)________ mean(s)that a value must be supplied before a new row can be created.

(Short Answer)
4.8/5
(21)

SQL stands for ________.

(Short Answer)
4.8/5
(34)

SQL is a data sublanguage,not a complete programming language.

(True/False)
4.9/5
(25)

Which symbol is used in standard SQL as a wildcard to represent a series of one or more unspecified characters?

(Multiple Choice)
4.9/5
(36)

Given the tables STUDENT(StudentID,StudentName,AdvisorID) ADVISOR(AdvisorID,AdvisorName,Office,Phone) Which of the following SQL statements would be used to implant a join between the two tables?

(Multiple Choice)
4.9/5
(31)

The basic idea of a join is to combine the contents of two or more relations into a new relation.

(True/False)
4.9/5
(41)

Given the table CUSTOMER(CustID,Name,PhoneNumber,AccountBalance) write the standard SQL query to retrieve the Name and Phone Number of customers with a balance greater than 50.

(Essay)
5.0/5
(33)
Showing 1 - 20 of 96
close modal

Filters

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