This quiz tests knowledge on SQL functions like SUBSTR, UPPER, INITCAP, INSTR, TRIM, and TRANSLATE, focusing on syntax and usage.
Converts letters currently uppercase into lowercase
Converts all characters to uppercase
Converts the first letter of each word to uppercase
Rate this question:
Sets all letters to uppercase (CAPS)
Sets the first letter of each word to caps provided there is a space before each word
Sets the first letter of each word to caps provided there is not a space before each word
Rate this question:
INSTR(Name, ‘:’)
SELECT Name, INSTR(Name ‘:’, 15)
SELECT Name, INSTR(Name, ‘es’, -5, 2)
SELECT Name, INSTR(Name, ‘es’, 1, 2)
Rate this question:
‘SQLisfun!’
‘SQL is fun! ‘
‘SQL is fun!’
‘ SQL is fun!’
Rate this question:
A. Translate is used to replace one character with another
B. Translate can eliminate characters by having fewer replacement characters specified than characters to replace
C. If the replacement string is NULL it means that all the characters to replace should be deleted
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
568.9
570
568.862
568.86
Rate this question:
564
560
563.4
600
Rate this question:
True
False
Rate this question:
DDD
DDDD
Day
DD
Rate this question:
5.6
An error since the mask is not large enough for the number to be displayed
####
6.9
Rate this question:
Check a column for null and return either the column value if not null or a replacement value of the same type if it is null.
Check a column for null and return either the column value if not null or a replacement value of any type if it is null.
Check a column for null and return one replacement value when it is null and a different replacement value if it is not null.
Rate this question:
Check a column for null and return either the column value if not null or a replacement value of any type if it is null.
Check a column for null and return either the column value if not null or a replacement value of the same type if it is null.
Check a column for null and return one replacement value when it is null and a different replacement value if it is not null.
Rate this question:
The function searches for a value provided among a list of possible outcomes
If the value provided matches one of the possible outcomes, the value associated with that outcome is returned
If the value provided does not match one of the possible outcomes, the value provided by DEFAULT is returned
DEFAULT is optional. If omitted the DECODE function returns an error.
Rate this question:
COUNT()
COUNT(*)
COUNT(%)
COUNT(ColumnName)
Rate this question:
True
False
Rate this question:
A column function takes an entire column of data and summarizes it into a single data item.
A column function takes an entire row of data and summarizes it into a single data item.
A column function takes the values of two columns and adds them together to create a new value.
When using column functions, the WHERE clause cannot be used.
Rate this question:
True
False
Rate this question:
If a column function is used on the HAVING clause, it will be calculated after the GROUP BY, creating additional processing.
HAVING is used to eliminate groups from the result set.
HAVING clause normally consists of one or more of the column functions applied to each of the groups.
HAVING is used to eliminate rows from the result set.
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
DML (Data Manipulation Language)
DDL (Data Defnition Language)
Transactions
All the above
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
Slower since the view adds overhead.
Not affected as views do not affect execution speed at all.
Faster, since selecting from a view is not as much work.
Affected by what the view contains, so it might be slower, faster or the same.
Rate this question:
Marked as invalid – it must be dropped and recreated.
Dropped as well.
Not affected in any way.
Unavailable until the table is recreated.
Rate this question:
It is a view that contains a subquery.
It is a view that returns a subset of columns in a table but returns all of the rows.
It is a view that returns all columns in a table but returns a subset of the rows.
It is a view that selects data from 2 or more tables.
Rate this question:
It is a view that contains a subquery.
It is a view that selects data from 2 or more tables.
It is a view that returns all columns in a table but returns a subset of the rows.
It is a view that returns a subset of columns in a table but returns all of the rows.
Rate this question:
The programmer must run a subquery first and then run another command to send the result set to the next select statement.
That a materials fee must be paid before the query can be run.
A create table statement must be executed first.
The query in the view must be run first and an intermediate result set built before the query against the view can be run.
User_Tables
DBA_Tables
System Catalog
All_Tables
Dictionary
Rate this question:
This option ensures that all constraints are checked before the view allows any rows to be updated.
This option prevents any sort of update from occurring to the source table in the view if the view cannot see the rows being updated.
This option turns on or off a view's ability to be updated.
This option ensures that only check constraints are checked before the view allows any rows to be updated.
Rate this question:
SYS
MASTER
ROOT
SYSTEM
DBA
Rate this question:
U
C
V
P
R
Rate this question:
Information on system tables.
Information on tables you have been granted access to.
Information on your tables (tables in your schema).
Rate this question:
Information on your tables (tables in your schema).
Information on system tables.
Information on tables you have been granted access to.
Rate this question:
Transitive
Derived
Partial
Relational
Inverse
Rate this question:
Inverse
Relational
Derived
Transitive
Partial
Rate this question:
Redundancy
Insertion
Deletion
Modification
None of the above
Rate this question:
Redundancy
Insertion
Deletion
Modification
None of the above
Rate this question:
Redundancy
Insertion
Deletion
Modification
None of the above
Rate this question:
1st
2nd
3rd
4th
None of the above
Rate this question:
1st
2nd
3rd
4th
None of the above
Rate this question:
1st
2nd
3rd
4th
None of the above.
Rate this question:
1st
2nd
3rd
4th
None of the above
Rate this question:
Quiz Review Timeline (Updated): Mar 21, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.