SQL and Database Transformations Quiz
Test your knowledge of SQL queries, PL/SQL, database operations, and ETL transformations
Questions
What is the output of the the query: select 'Sql' from dual where null is null;
- No rows will be displayed
- Sql
- It throws Error
- None
What is the output of the below query: if table A is having 16 rows: select count(*) from A having 1=10;
- No rows will be displayed
- 0
- 16
- None
The below query can be used to get distinct sal from emp table: select unique sal from emp;
- True
- False
Output of the query if emp table is having 100 rows: select rownum from emp group by rownum having rownum = 69;
- Error
- 69
- 1
- None
Which pl/sql block gives error? A) begin null; end; B) begin return; end; C) declare begin null; return; end; D) begin end;
- A
- B
- C
- D
If emp table is having 10 rows, which of the below queries executes successfully without error? A) delete from emp; B) delete emp; C) delete emp where 1=1;
- A
- B
- C
- None
If emp table having 10 records what is the output of : select * from emp where rownum=8;
- It throws error
- it will give 8th row
- no rows will get displayed
- None
Select the option to find the size of the database in sql server
- sp_databases
- sp_spaceused
- db_dbm_space_file
- None of the above
By using unconnected lookup how many rows can be returned?
- 0
- 1
- 2
- Any Number
If the sources are comming from homogeneous databases then which transformation is required to join the sources?
- Joiner
- Lookup
- Source Qualifier
- All
Sorter is --- transformation.
- Connected
- Unconnected
- Active
- None
To check a record which is present in the target table or not. Then which transformation is required?
- Joiner
- Lookup
- Source Qualifier
- All
Data driven option is present in which transformation?
- Normalizer
- Sequence Generator
- Union
- Update strategy
which transformation filters based on more than one condition?
- Filter
- Router
- Lookup
- All
There are 4 sources.Then how many Joiner transformations required to join the sources?
- 1
- 2
- 3
- None
Stroed Procedure is --- transformation.
- Connected
- Unconnected
- Passive
- All
Sorted input is used for which transformation?
- Normalizer
- Sequence Generator
- Sorter
- Aggregator
SQL override option is present in which transformation?
- Filter
- Router
- Lookup
- Expression
In databases, a view is which of the following?
- A virtual table that can be accessed via SQL commands
- A virtual table that cannot be accessed via SQL commands
- There is no difference between a view and a table
- None of these