Inf2603 Ch5 – Sql – True / False Test Questions – Flashcards

Unlock all answers in this set

Unlock answers
question
A database language enables the user to create database and table structures to perform basic data management chores.
answer
True
question
A database language enables the user to perform complex queries designed to transform the raw data into useful information.
answer
True
question
The ANSI prescribes a standard SQL-the current fully approved version is known as SQL-07.
answer
False
question
The ANSI SQL standards are also accepted by the ISO.
answer
True
question
SQL is considered difficult to learn; its command set has a vocabulary of more than 300 words.
answer
False
question
Data type selection is usually dictated by the nature of the data and by the intended use.
answer
True
question
Only numeric data types can be added and subtracted in SQL.
answer
False
question
Entity integrity is enforced automatically when the primary key is specified in the CREATE TABLE command sequence.
answer
True
question
The CHECK constraint is used to define a condition for the values that the attribute domain cannot have.
answer
False
question
SQL requires the use of the ADD command to enter data into a table.
answer
False
question
You cannot insert a row containing a null attribute value using SQL.
answer
False
question
To list the contents of a table, you must use the DISPLAY command.
answer
False
question
Any changes made to the contents of a table are not physically saved on disk until you use the SAVE command.
answer
False
question
The COMMIT command does not permanently save all changes. In order to do that, you must use SAVE.
answer
False
question
If you have not yet used the COMMIT command to store the changes permanently in the database, you can restore the database to its previous condition with the ROLLBACK command.
answer
True
question
All SQL commands must be issued on a single line.
answer
False
question
Although SQL commands can be grouped together on a single line, complex command sequences are best shown on separate lines, with space between the SQL command and the command's components.
answer
True
question
You can select partial table contents by naming the desired fields and by placing restrictions on the rows to be included in the output.
answer
True
question
Oracle users can use the Access QBE (query by example) query generator.
answer
False
question
Since computers identify all characters by their numeric codes, mathematical operators cannot be used to place restrictions on character-based attributes.
answer
False
question
String comparisons are made from left to right.
answer
True
question
Date procedures are often more software-specific than other SQL procedures.
answer
True
question
SQL allows the use of logical restrictions on its inquiries such as OR, AND, and NOT.
answer
True
question
ANSI-standard SQL allows the use of special operators in conjunction with the WHERE clause.
answer
True
question
The conditional LIKE must be used in conjunction with wildcard characters.
answer
True
question
Most SQL implementations yield case-insensitive searches.
answer
False
question
Some RDBMSs, such as Microsoft Access, automatically make the necessary conversions to eliminate case sensitivity.
answer
True
question
The COUNT function is designed to tally the number of non-null "values" of an attribute, and is often used in conjunction with the DISTINCT clause.
answer
True
question
To join tables, simply enumerate the tables in the FROM clause of the SELECT statement. The DBMS will create a Cartesian product of every table in the FROM clause. To get the correct results, you need to select the rows in which the common attribute values do not match.
answer
False
question
When joining three or more tables, you need to specify a join condition for one pair of tables.
answer
False
Get an explanation on any task
Get unstuck with the help of our AI assistant in seconds
New