Teradata and SQL Database Quiz
Covers Teradata architecture, SQL functions, and Oracle database concepts
Questions
What is the Max size of NVARCHAR2 in PL/SQL?
- 4000
- 8000
- 32768
- 32767
What is the correct order to get a correct SQL statement?
- SELECT FROM GROUP BY WHERE
- SELECT FROM GROUP BY ROLLUP
- SELECT GROUP BY FROM
- SELECT WHERE FROM GROUP BY
NULL values violate CHECK constraint
- True
- False
Which of these operators is used to calculate super aggregate results?
- ROLLUP
- COUNT
- AVG
- SUM
Which is the syntax for enforcing the rule of deleting the dependent Foreign Key values on the deletion of a Primary Key?
- ON DELETE SET NULL
- ON DELETE CASCADE
- ON DELETE DELETE
- ON DELETE RESTRICT
UNION ALL has a comparitively faster performance compared to UNION?
- True
- False
Which of these is a String Aggregation function used to get values from different rows into a single column?
- SUBSTR
- CON_STR
- CON_CAT
- WM_CONCAT
TRANSLATE
- Restricts the length of the String
- Replaces a sequence of characters in a string with another set of characters
- Modifies the datatype of a column
- Renames a column
which of these can be used to filter aggregate functions?
- WHEN
- HAVING
- WHERE
- ANY
REPLACE
- Replaces word by word
- Replaces a column with another column
- Replaces character by character
- Replaces a row with another row
How is IN different form EXISTS ?
- IN executes the inner query for each row affected by the outer query and EXISTS executes the inner query only once irrespective of the outer query
- IN executes the inner query only once irrespective of the outer query and EXISTS executes the inner query only once irrespective of the outer query
- IN executes the inner query only once irrespective of the outer query and EXISTS executes the outer query for each row affected by the outer query
- IN executes the inner query for each row affected by the outer query and EXISTS executes the outer query for each row affected by the outer query
Teradata components handle data distribution by
- AMP bucket number
- Primary Index
- Primary Key
- None of the above
_____ and _____ are true about the Primary Index
- Defined immediately after the table CREATE statement, used to find the Primary Key
- Defined during the table CREATE statement, used to assign rows to an AMP
- Defined immediately after the table CREATE statement, used to assign rows to an AMP
- Defined during the table CREATE statement, used to find the Primary Key
_____ and _____ are true about the Primary Index
- Defined immediately after the table CREATE statement, used to assign rows to an AMP
- Defined immediately after the table CREATE statement, used to find the Primary Key
- Defined during the table CREATE statement, used to assign rows to an AMP
- Defined during the table CREATE statement, used to find the Primary Key
A new table has been created in the employee. There are no rows in the table.What would be the output of the following query?select count(*) from employee
- Error
- 1
- No data Found
- 0
Which of the query will print the output as 'TCS' (single quotes should come in the output of the query)
- select '''||'TCS'||''' from dual
- select 'TCS' from dual
- select '''TCS''' from dual
- select "TCS" from dual
What's the output select to_Date('2009-may-25','yyyymmdd') from dual
- 2009-may-25
- Error
- may-2009-25
- 200925may
Which of the query will print the output as 'TCS' (single quotes should come in the output)
- select '''||'TCS ||''' from dual
- select '''TCS''' from dual
- select "TCS" from dual
- select 'TCS' from dual
Session Handling is done by which part of teradata system?
- AMP
- PE
- BYNET
- CLIQUE
TERADATA is Shared _________ architecture.
- Nothing
- Everything
- Disk
- Processor