Oracle SQL Fundamentals
Test your knowledge of Oracle SQL syntax, functions, querying, and database concepts including ROWNUM, TO_DATE, indexes, triggers, and SQL*Plus commands.
Questions
With SQL, how do you select all the columns from a table named "Persons"?
- SELECT [all] FROM Persons
- SELECT Persons
- SELECT *.Persons
- SELECT * FROM Persons
Which two are attributes of iSQL*Plus? (Choose two)
- iSQL*Plus commands manipulate table definitions in the database.
- iSQL*Plus is the Oracle proprietary interface for executing SQL statements.
- iSQL*Plus commands cannot be abbreviated.
- iSQL*Plus commands are accesses from a browser.
You need to perform certain data manipulation operations through a view called EMP_DEPT_VU, which you previously created. You want to look at the definition of the view (the SELECT statement on which the view was create.) How do you obtain the definition of the view?
- Use the DESCRIBE command in the EMP_DEPT VU view.
- Use the DEFINE VIEW command on the EMP_DEPT VU view.
- Query the USER_VIEWS data dictionary view to search for the EMP_DEPT_VU view.
- Query the USER_SOURCE data dictionary view to search for the EMP_DEPT_VU view.
Which is an /SQL*Plus command?
- insert
- update
- select
- describe
Evaluate this SQL statement: SELECT e.EMPLOYEE_ID,e.LAST_NAME,e.DEPARTMENT_ID, d.DEPARTMENT_NAME. FROM EMP e, DEPARTMENT d WHERE e.DEPARTMENT_ID = d.DEPARTMENT_ID; In the statement, which capabilities of a SELECT statement are performed?
- Selection, projection, join
- Difference, projection, join
- Selection, intersection, join
- Intersection, projection, join
:new can be used in stament level trigger
- True
- False
Order by cause should be used only at end of query
- True
- False
union all is faster than union
- True
- False
bitmap index should be created on columns which have high cardinality
- True
- False
what is max length of table name in oracle
- 50
- 30
- 20
- 40
Oracle is written in which language
- sql
- java
- unix
- plsql
Answer the below query.. select to_date('01-01-51','DD-MM-YY') from dual ;
- 1/1/0051
- 1/1/1951
- 1/1/2051
- 1/1/9951
Answer the below query.. select to_date('01-01-51','DD-MM-RR') from dual
- 1/1/2051
- 1/1/1951
- 1/1/0051
- 1/1/9951
The out put of the below two queries will be same 1.select to_date('01-01-99','DD-MM-YY') from dual 2.select to_date('01-01-99','DD-MM-RR') from dual
- True
- False
The output of the below two queries will be same. 1.select to_date('01-01-00','DD-MM-YY') from dual 2.select to_date('01-01-00','DD-MM-RR') from dual
- True
- False
Output of the below query will be.. select '#' from dual;
- Error: invalid identifier
- Error : Invalid Character
- NULL
- #
Output of the below query.. select # from dual;
- Error : Invalid Character
- Error : Invalid identifier
- #
- NULL
Output of the below two queries would be same.. 1.select 1 from dual; 2.select '1' from dual;
- True
- False
How many rows records the following query will display.. select * from TEMP where rownum between 0 and 3 ? N.R. Temp table has 30 records
- 1 row
- NULL
- 30 rows
- 3 rows
- 2 rows
How many rows records the following query will display.. select * from TEMP where rownum in (1,3); N.R. Temp table has 30 records
- 1 row
- NULL
- 0 row
- 3 rows
- 30 rows
- 2 rows