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. LINESIZE
The way NULL values are treated
Columns
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
MODIFY
2. Write the syntax to rename index just_two_more_weeks_i to finally_i
Details
CLOB
12:00:00 A.M
RENAME just_two_more_weeks TO finally_i
3. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
4
RIGHT LEFT JOIN
DESC dict;
COMMIT
4. Another name for a data dictionary view is __________________ or _________________.
X
Combine
Static or dynamic
GROUP BY
5. The COUNT function is useful for determining whether a table has...
Data
SELECT DISTINCT menu FROM restaurant
MODIFY
Export Data
6. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Same
NATURAL JOIN
KEEP INDEX
STORAGE
7. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
B-Tree Index
SELECT DISTINCT menu FROM restaurant
Common column value
FALSE
8. The RTRIM function is useful for eliminating ________ in a string.
999999.9999
IN ANY ALL SOME
Extra spaces
VALUES
9. Match each of the SQL commands on the left with a verb from the list.
Location of the file
V$
Extra spaces
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
10. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
VALUES clause of an INSERT statement
UNION
MODIFY
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
11. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
FALSE
Rounded edges
Combine
**** 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
12. The _______ function adds values together for a group of rows.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Both MIN and MAX
4000
SUM
13. List the different types of data dictionary views.
SELECT DISTINCT menu FROM restaurant
Location of the file
USER_ - ALL_ - DBA_ - and V$
+
14. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
DICT_COLUMNS
Combine
V$
CLOB
15. 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.
STORAGE
F12
ADD
16. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
Three
Data
BETWEEN
Default is 14; when you use the default - you repeat the heading every 14 rows.
17. Checks whether any value in the list makes the condition true.
SELECT SYSDATE+1/96 - FROM dual
Any
Running a script file
KEEP INDEX
18. The ____________ command makes changes permanent.
COMMIT
USER_ - ALL_ - DBA_ - and V$
Another null
Default is 14; when you use the default - you repeat the heading every 14 rows.
19. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
X
@ or START
Same
Black
20. It is considered good form to put all SQL commands in...
Business problems
99.99
All caps
RUN SCRIPT
21. To equijoin a table with another table involves matching the...
A correct statement
Common column value
Business problems
B-Tree Index
22. The time zone displacement value indicates the time difference from _______.
SET clause of an UPDATE statement
Null
UTC
@ or START
23. _________ rows are not allowed in the relational model.
USER_ - ALL_ - DBA_ - and V$
TO_CHAR function
Orphan
**** 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
24. Which operator is most commonly used?
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
Retrieve
UNION
ANSI
25. The same function can be used ______ in a SELECT statement.
Twice
Run scripts
Data
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
26. What does SQL stand for?
Structured Query Language
The way NULL values are treated
RENAME just_two_more_weeks TO finally_i
Equijoin and correlated subquery
27. A calculation with a null always yields...
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
Another null
Black
Same
28. The ______ operator compares a list of values for equivalency
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
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
ANY
Recursive
29. 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.
RUN SCRIPT
DICT_COLUMNS
Parent table
RIGHT LEFT JOIN
30. Self-joins are useful for performing comparisons and checking for ___________ in data.
Inconsistencies
2000
Any
Combine
31. When is it not a good idea to use an index?
BETWEEN
When the table is small (unless your business rules require you too)
ANY
Equijoin
32. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
Scalar
999999.9999
Correlated
Twice
33. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
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
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.
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.
Any
34. 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.
Business problems
Has not changed the name
+
Scalar
35. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
Optional
Equijoin
CLOB
Leading-edge
36. To join four tables - you must have at least _____ join conditions.
Crow's foot
4000
Three
Black
37. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
UNION operator
Rounded edges
FALSE
Hide data
38. The focus of the logical data model is _____________
Nested
RUN SCRIPT
Business problems
Equijoin and correlated subquery
39. List 4 aggregate functions
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Surrogate key
DECODE
Business problems
40. Explain why constraints are used when building tables.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
41. Dynamic views begin with a ___________.
TO_CHAR function
V$
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Month ddth - yyyy
42. Returns rows if the condition is true for all the values in the list
Retrieve
USER_ - ALL_ - DBA_ - and V$
Rounded edges
All
43. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
USER_ - ALL_ - DBA_ - and V$
UNION operator
User-defined reports
@ or START
44. A join across three tables can be expressed with the ________ join syntax.
999999.9999
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.
2000
ANSI
45. What is the keyboard shortcut for the ROLLBACK command?
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.
Recursive
ROLLBACK
F12
46. The ___________ operator tests whether a matching row cannot be found.
Orphan
Precision
X
RIGHT LEFT JOIN
47. To restart a sequence at a lower number - you can drop and ________ the sequence.
Re-create
ANSI
Twice
V$
48. The TRUNC function on a date without a format model truncates the timestamp to...
The way NULL values are treated
RUN SCRIPT
ALL_OBJECTS
12:00:00 A.M
49. You can pass parameters from the operating system when ___________ in SQl*Plus
Same
Running a script file
Both MIN and MAX
Data
50. The __________ operator is inclusive of the two values specified.
SYSDATE
Semicolon or forward slash
BETWEEN
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