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. Returns rows if the condition is true for all the values in the list
All
DESC dict;
DICT_COLUMNS
Logical unit of work
2. You use the __________ keyword to change characteristics of a column.
Asterisk
Semicolon or forward slash
@ or START
MODIFY
3. Checks whether any value in the list makes the condition true.
Any
Running a script file
Scalar
Twice
4. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
Rounded edges
DICT_COLUMNS
Correlated
UTC
5. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
ADD_MONTHS function
Script
Run scripts
Three
6. What do views do that makes them so useful for security?
Re-create
LIKE
Hide data
X
7. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
Structured Query Language
When the table is small (unless your business rules require you too)
X
Default is 14; when you use the default - you repeat the heading every 14 rows.
8. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
MINUS
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
A correct statement
USER_ - ALL_ - DBA_ - and V$
9. Which operator is most commonly used?
Scalar
99.99
UNION
Columns
10. SELECT * FROM instructor ORDER BY phone
ADD_MONTHS function
A correct statement
Static or dynamic
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
11. The purpose of the HAVING clause is to eliminate___________.
Groups
STORAGE
UNION operator
DICT_COLUMNS
12. What does SQL stand for?
4
Structured Query Language
Committed
V$
13. 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.
4000
Rounded edges
**** 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
FALSE
14. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
All caps
999999.9999
12:00:00 A.M
Self-joins
15. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
KEEP INDEX
Subqueries allow you to nest multiple queries into each other. This gives you the ability to use one statement to break down a problem into individual components. Without nesting queries - you would be required to have multiple queries which could be
Script
Rounded edges
16. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
BETWEEN
X
DICT_COLUMNS
Parent table
17. The _______ operator determines common rows.
INTERSECT
Both MIN and MAX
Columns
All caps
18. Joins involving multiple columns must always follow the ____________ relationship path.
Primary key/foreign key
LENGTH
BETWEEN
Has not changed the name
19. _________________ relationships are always optional relationships.
Running a script file
Data
VALUES clause of an INSERT statement
Recursive
20. Comparison operators can compare multiple _________________.
X
DESC dict;
Columns
Committed
21. When column names on the tables are different - you use the ______ condition.
IN ANY ALL SOME
ON
Hide data
Data
22. The using clause of the ANSI join syntax always assumes an...
Re-create
MINUS
Hide data
Equijoin and identical column names
23. Explain the steps needed to run a script in SQL Developer
Load the file into the SQL Statement Box - by opening the location the file is stored and inserting it into the statement Box. Next you can press the F5 key.
Equijoin
TO_CHAR function
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
24. 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.
MODIFY
ROLLBACK
FALSE
VALUES
25. You can use the ________________ to subtract months from a given date.
Mathematical equations
Logical unit of work
ADD_MONTHS function
Primary key/foreign key
26. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Crow's foot
Correlated
Static or dynamic
Optional
27. Explain how Substitution Variables are used when writing scripts.
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.
TO_CHAR function
X
Combine
28. Write a solution that adds 20 minutes to a given date.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
UTC
VALUES
SELECT SYSDATE+1/96 - FROM dual
29. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
Static or dynamic
NATURAL JOIN
Hide data
FALSE
30. Match each of the SQL commands on the left with a verb from the list.
99.99
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.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Business problems
31. Users can only see changes made to a database once they have been...
Committed
Inconsistencies
Recursive
ALL_OBJECTS
32. 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
33. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Both MIN and MAX
TO_CHAR function
4000
All caps
34. What is the data type you can use if you need an unlimited number of textual characters?
Structured Query Language
STORAGE
CLOB
Semicolon or forward slash
35. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
FALSE
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
BETWEEN
99.99
36. UNION ALL does not sort - therefore it is less time consuming to use than the...
B-Tree Index
UNION operator
Load the file into the SQL Statement Box - by opening the location the file is stored and inserting it into the statement Box. Next you can press the F5 key.
INNER JOIN
37. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
SELECT DISTINCT menu FROM restaurant
SUM
Command returns the number of records returned by a query.
DICT_COLUMNS
38. What is the first column of a composite index called?
ANSI
ALL_OBJECTS
Leading-edge
Non-matching rows
39. When is it not a good idea to use an index?
Recursive
Run scripts
Leading-edge
When the table is small (unless your business rules require you too)
40. What is the main difference between the NOT EXISTS and the NOT IN operators?
The way NULL values are treated
Correlated
Mathematical equations
Constraints are used to enforce the business rules of a system. For instance - 'The salary of an employee may not be a negative number' may be enforced with a check constraint on the salary column. Constraints also ensure integrity and data consisten
41. When you run a script in SQL*Plus you must give the...
A correct statement
Equijoin
Orphan
Location of the file
42. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Common column value
ALL_OBJECTS
SELECT SYSDATE+1/96 - FROM dual
Same
43. To join four tables - you must have at least _____ join conditions.
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.
Three
RIGHT LEFT JOIN
Month ddth - yyyy
44. Checks whether any value in the list makes the condition true.
BETWEEN
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
MODIFY
Any
45. SELECT LIST of a subquery in an INSERT statement
User-defined reports
CLOB
Asterisk
SET clause of an UPDATE statement
46. When writing an ANSI outer join - the keywords _________ OUTER and _________ OUTER are added to the __________ keyword to indicate the rows from which table to use.
VALUES clause of an INSERT statement
RIGHT LEFT JOIN
Multiple rows
USER_ - ALL_ - DBA_ - and V$
47. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
User-defined reports
SELECT DISTINCT menu FROM restaurant
BETWEEN
SYSDATE
48. In SQL Developer field names and table names are shown in the color _______.
Black
SELECT DISTINCT menu FROM restaurant
UNION operator
DD-MON-YY
49. __________________ inserts the current date and time.
4000
FALSE
Load the file into the SQL Statement Box - by opening the location the file is stored and inserting it into the statement Box. Next you can press the F5 key.
SYSDATE
50. The _______ function adds values together for a group of rows.
Both MIN and MAX
X
SUM
Run scripts