SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
Oracle SQL
Start Test
Study First
Subjects
:
oracle
,
it-skills
Instructions:
Answer 50 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. It is considered good form to put all SQL commands in...
ANSI
All caps
Month ddth - yyyy
99.99
2. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Mathematical equations
Running a script file
INNER JOIN
Data
3. The RTRIM function is useful for eliminating ________ in a string.
Testing functions
X
Extra spaces
The indexed column is part of an expression. In this case - consider creating a function-based index instead
4. The ______ depicts the M of a 1:M relationship.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
5. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
IN ANY ALL SOME
DESC dict;
F12
DECODE
6. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
999999.9999
Location of the file
MINUS
When you want to run the same script repeatedly - but want to be able to change a variable you would use a substitution variable. During the execution of the script the user will be prompted to input the variable to use.
7. It is always good practice to include the old values in the WHERE clause of UPDATE to ensure that another session or user _________________ in the meantime.
Has not changed the name
Groups
Self-joins
4
8. To join four tables - you must have at least _____ join conditions.
TO_CHAR function
SELECT DISTINCT menu FROM restaurant
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Three
9. The __________ operator is inclusive of the two values specified.
Correlated
X
BETWEEN
ADD_MONTHS function
10. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
ROLLBACK
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Orable's flashback query feature allows you to look at values of a query at a specific time in the past - such as before specfic DML statements occured. This can be usefull in case a suer accidentally performs an unintended but committed DML change.
A correct statement
11. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
TO_CHAR function
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
VALUES clause of an INSERT statement
SYSDATE
12. PAGESIZE
Default is 14; when you use the default - you repeat the heading every 14 rows.
Crow's foot
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Command returns the number of records returned by a query.
13. Subqueries can return...
Details
Multiple rows
Fractional seconds
Surrogate key
14. A calculation with a null always yields...
**** Select a row from the outer query - Determine the value of the correlated column - Execute the inner query for each record of the outer query. - Feed the results of the inner query to the outer query and evaluate it. It if satisfies the criteria
Another null
RIGHT LEFT JOIN
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
15. In a view you can give a column a different name than it has in the...
When you issue a INSERT - UPDATE - DELETE - or MERGE statement - Oracle automatically locks the modified rows. The lock prevents other sessions from making changes to these rows. The lock is released when the session initiating change commits or roll
Parent table
SUM
Three
16. __________________ inserts the current date and time.
SYSDATE
Any
User-defined reports
Equijoin
17. Which operator is most commonly used?
RIGHT LEFT JOIN
UNION
Logical unit of work
Leading-edge
18. You use the __________ keyword to change characteristics of a column.
Same
MODIFY
DD-MON-YY
Implicit conversion
19. When you create a report in SQL Developer all the column names must match identically the names of the columns found in the tables you are referencing.
FALSE
X
CLOB
VALUES
20. The same function can be used ______ in a SELECT statement.
Twice
DROP INDEX need_to_pass_i
Orable's flashback query feature allows you to look at values of a query at a specific time in the past - such as before specfic DML statements occured. This can be usefull in case a suer accidentally performs an unintended but committed DML change.
MODIFY
21. Dynamic views begin with a ___________.
V$
Twice
Semicolon or forward slash
User-defined reports
22. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
@ or START
Surrogate key
Three
23. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
User-defined reports
Month ddth - yyyy
DICT_COLUMNS
Fractional seconds
24. Write a statement that drops the index need_to_pass_i
FALSE
NATURAL JOIN
DROP INDEX need_to_pass_i
Retrieve
25. The COUNT function is useful for determining whether a table has...
The main components of a ROWID are the data object number - the number of the data block - the numbers of rows within the data block - and the data file number.
GROUP BY
Columns
Data
26. The ALTER SESSION statement can change the session's...
Time zone
F12
DROP INDEX need_to_pass_i
Optional
27. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Running a script file
ALL_OBJECTS
Both MIN and MAX
28. FEEDBACK
DECODE
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Command returns the number of records returned by a query.
Crow's foot
29. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Extra spaces
Same
Non-matching rows
The static data dictionary stores details about database objects - such as tables - indexes - and views. Whenever a new object is added or an object is changed - data about the object is recorded in the data dictionary.
30. A join across three tables can be expressed with the ________ join syntax.
ANSI
Twice
Scale
Surrogate key
31. The ________ operator cannot compare against a list of values.
Testing functions
Mathematical equations
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
LIKE
32. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Equijoin and identical column names
X
Inconsistencies
Has not changed the name
33. _________ rows are not allowed in the relational model.
Default is 14; when you use the default - you repeat the heading every 14 rows.
Scalar
999999.9999
Orphan
34. What is the main difference between the NOT EXISTS and the NOT IN operators?
X
ADD_MONTHS function
The way NULL values are treated
Fractional seconds
35. What is the most common DATE format found in SQL?
When you want to run the same script repeatedly - but want to be able to change a variable you would use a substitution variable. During the execution of the script the user will be prompted to input the variable to use.
DICTIONARY
DD-MON-YY
A correct statement
36. When you INSERT new information into a table - it is followed with a _______ keyword that contains the information that is going to be added to the table.
VALUES clause of an INSERT statement
VALUES
ANSI
ROLLBACK
37. Which format mask displays December 31st - 1999?
CLOB
Month ddth - yyyy
RUN SCRIPT
When you want to run the same script repeatedly - but want to be able to change a variable you would use a substitution variable. During the execution of the script the user will be prompted to input the variable to use.
38. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
Twice
Business problems
Default is 14; when you use the default - you repeat the heading every 14 rows.
SELECT DISTINCT menu FROM restaurant
39. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
NATURAL JOIN
Correlated
TO_CHAR function
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
40. The time zone displacement value indicates the time difference from _______.
X
ADD_MONTHS function
ANY
UTC
41. The COUNT function uses the __________ wildcard.
Asterisk
Actual column
@ or START
When you want to run the same script repeatedly - but want to be able to change a variable you would use a substitution variable. During the execution of the script the user will be prompted to input the variable to use.
42. Converting a text literal to DATE format requires the use of the...
The SPOOL command - together with a file name - spools any subsequently issued SQL Plus or SQL command to a file. Just as with other file names - you can add a path to store the file in a directory other than your SQL Plus default directory. SQL Deve
TO_CHAR function
Location of the file
When you issue a INSERT - UPDATE - DELETE - or MERGE statement - Oracle automatically locks the modified rows. The lock prevents other sessions from making changes to these rows. The lock is released when the session initiating change commits or roll
43. How many characters can you have using the VARCHAR data type?
FALSE
4000
The main components of a ROWID are the data object number - the number of the data block - the numbers of rows within the data block - and the data file number.
All
44. What do views do that makes them so useful for security?
The indexed column is part of an expression. In this case - consider creating a function-based index instead
99.99
Hide data
SET clause of an UPDATE statement
45. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
INNER JOIN
X
BETWEEN
Null
46. SELECT * FROM instructor ORDER BY phone
SYSDATE
Semicolon or forward slash
A correct statement
User-defined reports
47. List 6 Table-Related Menu Choices
12:00:00 A.M
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Multiple rows
RIGHT LEFT JOIN
48. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
The main components of a ROWID are the data object number - the number of the data block - the numbers of rows within the data block - and the data file number.
USER_ - ALL_ - DBA_ - and V$
Equijoin and correlated subquery
Testing functions
49. Explain what is found in the All Objects report folder in SQL Developer
MODIFY
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
LENGTH
User-defined reports
50. To equijoin a table with another table involves matching the...
Common column value
Has not changed the name
Surrogate
ROLLBACK