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. Write a statement for SQL*Plus that shows the dictionary.
All caps
DESC dict;
99.99
INNER JOIN
2. The ________ operator cannot compare against a list of values.
Structured Query Language
USER_ - ALL_ - DBA_ - and V$
LIKE
Run scripts
3. In SQL Developer field names and table names are shown in the color _______.
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.
Black
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
SUM
4. Returns rows if the condition is true for all the values in the list
Equijoin
LIKE
All
Groups
5. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
ALL_OBJECTS
F12
**** 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
Orphan
6. _________________ relationships are always optional relationships.
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Recursive
Semicolon or forward slash
LENGTH
7. 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
Optional
ANSI
8. UNION ALL does not sort - therefore it is less time consuming to use than the...
Mathematical equations
LIKE
UNION operator
Has not changed the name
9. The RTRIM function is useful for eliminating ________ in a string.
Correlated
ANSI
Extra spaces
Time zone
10. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
Any
IN ANY ALL SOME
SYSDATE
Export Data
11. The time zone displacement value indicates the time difference from _______.
X
+
UTC
RENAME just_two_more_weeks TO finally_i
12. Subqueries can return...
Business problems
Multiple rows
UNION
Precision
13. What are the main components of a ROWID?
DICT_COLUMNS
Business problems
Run scripts
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.
14. PAGESIZE
Location of the file
Groups
Default is 14; when you use the default - you repeat the heading every 14 rows.
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.
15. Oracle uses the outer join operator to indicate that nulls are shown for...
Script
Hide data
Non-matching rows
Columns
16. You can pass parameters from the operating system when ___________ in SQl*Plus
Scalar
Running a script file
FALSE
LIKE
17. Explain Flashback queries and how they are used. Give an example of a FLASHBACK_TRANSACTION query and explain what it does row by row.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
18. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
The way NULL values are treated
Scale
INTERSECT
19. What is the most common DATE format found in SQL?
Hide data
DD-MON-YY
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 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
20. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
2000
KEEP INDEX
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
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
21. How many characters can you have using the VARCHAR data type?
4000
@ or START
MINUS
V$
22. Self-joins are useful for performing comparisons and checking for ___________ in data.
Inconsistencies
ALL_OBJECTS
UNION
ANY
23. When you have issued a DELETE command - you can still ________ those rows and restore the information.
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
Retrieve
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.
Optional
24. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
X
Mathematical equations
Both MIN and MAX
Results
25. SELECT * FROM instructor ORDER BY phone
A correct statement
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Any
UNION operator
26. You can use the ________________ to subtract months from a given date.
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
Run scripts
Hide data
ADD_MONTHS function
27. What does SQL stand for?
X
DICTIONARY
RENAME just_two_more_weeks TO finally_i
Structured Query Language
28. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
MINUS
F12
Groups
VALUES clause of an INSERT statement
29. 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
BETWEEN
Surrogate
KEEP INDEX
30. The key that most database designers prefer and is chosen by the system is the _____________ key.
Surrogate
ANY
Leading-edge
CLOB
31. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
ALL_OBJECTS
DECODE
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
ADD
32. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
RENAME just_two_more_weeks TO finally_i
RUN SCRIPT
All caps
Structured Query Language
33. When column names on the tables are different - you use the ______ condition.
999999.9999
Structured Query Language
Correlated
ON
34. To equijoin a table with another table involves matching the...
Common column value
Time zone
Null
Results
35. Explicit data type conversion is preferable to Oracle's...
Static or dynamic
Recursive
Implicit conversion
SET clause of an UPDATE statement
36. SQL*Plus is used more than SQL Developer when you need to...
Run scripts
Scale
Export Data
Time zone
37. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
Hide data
Equijoin and identical column names
4
Correlated
38. Write the syntax to rename index just_two_more_weeks_i to finally_i
X
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
RENAME just_two_more_weeks TO finally_i
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
39. 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.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Equijoin and identical column names
RIGHT LEFT JOIN
The indexed column is part of an expression. In this case - consider creating a function-based index instead
40. You use the _________ keyword to add columns or constraints to a table.
ADD
DECODE
Scalar
Columns
41. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
X
Default is 14; when you use the default - you repeat the heading every 14 rows.
INNER JOIN
SYSDATE
42. A join across three tables can be expressed with the ________ join syntax.
Hide data
Fractional seconds
ANSI
Leading-edge
43. What is the maximum value for a column defined as NUMBER(4 -2)?
99.99
Location of the file
Any
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
44. It is considered good form to put all SQL commands in...
DESC dict;
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
All caps
Month ddth - yyyy
45. Converting a text literal to DATE format requires the use of the...
Both MIN and MAX
Actual column
TO_CHAR function
Nested
46. The DUAL table can be used for...
BETWEEN
Testing functions
Has not changed the name
USER_ - ALL_ - DBA_ - and V$
47. The _______ function lets you perform if-then-else functionality with the SQL language.
B-Tree Index
DECODE
VALUES
Default is 14; when you use the default - you repeat the heading every 14 rows.
48. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
Groups
A correct statement
99.99
999999.9999
49. A _________ subquery returns a single column with a single row
Semicolon or forward slash
Scalar
DICTIONARY
Another null
50. To join four tables - you must have at least _____ join conditions.
Three
SET clause of an UPDATE statement
Any
SUM
Sorry!:) No result found.
Can you answer 50 questions in 15 minutes?
Let me suggest you:
Browse all subjects
Browse all tests
Most popular tests
Major Subjects
Tests & Exams
AP
CLEP
DSST
GRE
SAT
GMAT
Certifications
CISSP go to https://www.isc2.org/
PMP
ITIL
RHCE
MCTS
More...
IT Skills
Android Programming
Data Modeling
Objective C Programming
Basic Python Programming
Adobe Illustrator
More...
Business Skills
Advertising Techniques
Business Accounting Basics
Business Strategy
Human Resource Management
Marketing Basics
More...
Soft Skills
Body Language
People Skills
Public Speaking
Persuasion
Job Hunting And Resumes
More...
Vocabulary
GRE Vocab
SAT Vocab
TOEFL Essential Vocab
Basic English Words For All
Global Words You Should Know
Business English
More...
Languages
AP German Vocab
AP Latin Vocab
SAT Subject Test: French
Italian Survival
Norwegian Survival
More...
Engineering
Audio Engineering
Computer Science Engineering
Aerospace Engineering
Chemical Engineering
Structural Engineering
More...
Health Sciences
Basic Nursing Skills
Health Science Language Fundamentals
Veterinary Technology Medical Language
Cardiology
Clinical Surgery
More...
English
Grammar Fundamentals
Literary And Rhetorical Vocab
Elements Of Style Vocab
Introduction To English Major
Complete Advanced Sentences
Literature
Homonyms
More...
Math
Algebra Formulas
Basic Arithmetic: Measurements
Metric Conversions
Geometric Properties
Important Math Facts
Number Sense Vocab
Business Math
More...
Other Major Subjects
Science
Economics
History
Law
Performing-arts
Cooking
Logic & Reasoning
Trivia
Browse all subjects
Browse all tests
Most popular tests