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. A join across three tables can be expressed with the ________ join syntax.
ANSI
All
FALSE
B-Tree Index
2. A transaction is a...
X
Running a script file
Logical unit of work
Actual column
3. When column names on the tables are different - you use the ______ condition.
B-Tree Index
ON
SELECT SYSDATE+1/96 - FROM dual
Results
4. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
+
DESC dict;
Default is 14; when you use the default - you repeat the heading every 14 rows.
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.
5. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
X
X
SELECT DISTINCT menu FROM restaurant
DICT_COLUMNS
6. What is Oracle's most popular index storage structure?
B-Tree Index
KEEP INDEX
12:00:00 A.M
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.
7. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Testing functions
COMMIT
Mathematical equations
Run scripts
8. You can pass parameters from the operating system when ___________ in SQl*Plus
+
Running a script file
Fractional seconds
DECODE
9. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
999999.9999
Month ddth - yyyy
When the table is small (unless your business rules require you too)
X
10. _________________ relationships are always optional relationships.
Recursive
Equijoin
Implicit conversion
INTERSECT
11. In SQL Developer field names and table names are shown in the color _______.
Black
Structured Query Language
IN ANY ALL SOME
Equijoin
12. The ROWID pseudocolumn is not an ________- but it acts like one.
Actual column
Correlated
+
INTERSECT
13. The ______ operator compares a list of values for equivalency
ANY
Equijoin
KEEP INDEX
Null
14. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
4
Location of the file
GROUP BY
SET clause of an UPDATE statement
15. It is considered good form to put all SQL commands in...
UTC
All caps
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
Black
16. The TRUNC function on a date without a format model truncates the timestamp to...
12:00:00 A.M
X
NATURAL JOIN
SELECT SYSDATE+1/96 - FROM dual
17. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Combine
All
Logical unit of work
DD-MON-YY
18. When you have issued a DELETE command - you can still ________ those rows and restore the information.
VALUES
Retrieve
Run scripts
Has not changed the name
19. The _______ function lets you perform if-then-else functionality with the SQL language.
DECODE
999999.9999
Both MIN and MAX
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.
20. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
Structured Query Language
SELECT SYSDATE+1/96 - FROM dual
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
12:00:00 A.M
21. The using clause of the ANSI join syntax always assumes an...
Equijoin and identical column names
BETWEEN
LIKE
Self-joins
22. The ____________ command makes changes permanent.
12:00:00 A.M
COMMIT
Results
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
23. To restart a sequence at a lower number - you can drop and ________ the sequence.
UTC
STORAGE
Re-create
RIGHT LEFT JOIN
24. FEEDBACK
Command returns the number of records returned by a query.
X
Run scripts
MINUS
25. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
Structured Query Language
X
FALSE
ON
26. NUMBER functions can be...
Parent table
All
DESC dict;
Nested
27. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
UTC
Nested
Primary key/foreign key
Semicolon or forward slash
28. Dynamic views begin with a ___________.
Leading-edge
Twice
UNION
V$
29. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
Nested
DICT_COLUMNS
X
Scalar
30. How many characters can be stored in the CHAR column/field?
Details
Twice
NATURAL JOIN
2000
31. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
All caps
Committed
Both MIN and MAX
RUN SCRIPT
32. The term ____________ ___________ is used to express a join that satisfies the join condition.
Running a script file
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
Month ddth - yyyy
INNER JOIN
33. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
Equijoin and correlated subquery
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 achieve good performance for data retrieval and data manipulation statements Oracle uses indexes. In the same way you would use an index in the back of a book to quickly find information - Oracle uses indexes to speed up data retrieval. If the app
Export Data
34. What is the name of the key automatically generated from a sequence?
SELECT DISTINCT menu FROM restaurant
Surrogate key
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
Actual column
35. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
Optional
User-defined reports
Re-create
Fractional seconds
36. Explain how Substitution Variables are used when writing scripts.
Same
12:00:00 A.M
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.
Business problems
37. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
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.
Primary key/foreign key
Rounded edges
Surrogate
38. 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.
Twice
DICT_COLUMNS
ADD
Has not changed the name
39. What do views do that makes them so useful for security?
RENAME just_two_more_weeks TO finally_i
LIKE
Hide data
ON
40. 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.
RIGHT LEFT JOIN
X
Three
UNION operator
41. __________________ inserts the current date and time.
Surrogate key
SYSDATE
ANY
Scale
42. The ________ operator cannot compare against a list of values.
999999.9999
LIKE
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
SELECT SYSDATE+1/96 - FROM dual
43. The COUNT function is useful for determining whether a table has...
Data
ANSI
Black
Multiple rows
44. UNION ALL does not sort - therefore it is less time consuming to use than the...
BETWEEN
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.
UNION operator
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.
45. The __________ operator is inclusive of the two values specified.
Rounded edges
BETWEEN
Scalar
RUN SCRIPT
46. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
Three
Correlated
Surrogate key
IN ANY ALL SOME
47. What are the main components of a ROWID?
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
A correct statement
VALUES clause of an INSERT statement
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.
48. Oracle uses the outer join operator to indicate that nulls are shown for...
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
MODIFY
Non-matching rows
Equijoin and identical column names
49. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
BETWEEN
Nested
NATURAL JOIN
Export Data
50. Checks whether any value in the list makes the condition true.
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
Any
Structured Query Language
Parent table