SQL and PL/SQL Database Concepts
Covers SQL operations, PL/SQL cursors and exceptions, Oracle database features, and Teradata utilities for database management and data loading.
Questions
Explicit Cursor attributes
- %Found
- %NOTFOUND
- %ROWCOUNT
- %ISOPEN
How to view installed Oracle version information
- select banner from v$version;
- select # from v$version;
- select ver from v$version
- select version from v$version;
Which of the below arePL/SQL Exceptions
- No_Data_Found
- Too_many_rows
- Value_Error
- Zero_Error
The maximum number of triggers we can apply to a single table is 12
- True
- False
SYSDATE is a pseudo column
- True
- False
Cursor_Already_Open is a valid Cursor exception?
- True
- False
Is it possible to have multiple datasources to display a single report?
- True
- False
Data integrity exists on ACCESS LOCK?
- True
- False
Data integrity exists on READ LOCK?
- True
- False
Teradata maintain rows in the received order
- True
- False
What determines the number of concurrent users to the database ?
- PMON
- CMON
- Both
- None of the above
FLOAD can be used to load data in
- Tables with already existing data
- Empty tables
- Both 1 & 2
- None of the above
The TOP option can appear in the
- FROM clause
- WHERE clause
- Correlated sub query
- None of the above
If the TOP option specifies a number greater than the number of rows in the query result set, then
- The query returns the rows in the query result set without producing an error.
- Return no rows
- Produces an error
- The query returns rows
MULTILOAD faster than FLOAD
- True
- False
In Teradata's parallel environment, response time is as fast as
- the fastest AMP invloved
- slowest AMP involved
- sum of all amps involved
- average performance of all AMPs
How many columns are presented after executing this query: SELECT address1||','||address2||','||address2 "Adress" FROM employee;
- 2
- 1
- 3
- 0
What output will the follwing statement produce? Select NVL2(NULL,'NOT NULL', NULL) from dual;
- Null
- Not Null
- Function NVL2 is not defined
- None of The above
Which three definitions are associated with implicit cursors?
- %rowtype, %toomanyrows, %found
- %found, %notfound, %rowcount
- %rowtype, %rowcount, %notfound
- None of the above
Which command will delete all data from a table and will not write to the rollback segment?
- DROP
- DELETE
- TRUNCATE
- CASCADE