Database Fundamentals and Teradata
Comprehensive quiz covering SQL fundamentals, database normalization, transactions, indexing, and Teradata-specific features and architecture
Questions
What is the result of a full table scan occurring on Teradata? (Choose two)
- All data rows are copied into temporary space
- Each data block for a table is read
- Each data row is accessed only one
- A random set of data blocks for a table is read
Of the following which is a true statement with regard to a primary index operation?
- When choosing a primary index you should pick a column with a severely limited value set
- If distribution is skewed an all-AMP operation will take longer than if all AMPs were evenly utilized
- Selecting a NUPI for storing data provides for maximum efficiency and makes the best use of the parallel features of Teradata
- The degree of uniqueness is not critical ot efficiency.
Which are two exclusive features of Teradata? (Choose two)
- Mature optimizer
- Industry standard access language(SQL)
- Concurrent users
- Parallel architecture
Queries based on set threshold are restricted by which tool?
- Teradata Manager
- BTEQ
- Teradata SQL Assistant
- TDQM
You are an administrator at CertKiller.com. CertKiller.com has a Teradata system with 100 GB of permanent space, of which 50 GB is reserved for spool space. The system currently has 30 GB of user data. What is the total available spool space for user queries?
- 70 GB
- 50GB
- 30 GB
- 80 GB
In which way is data distributed with a Partitioned Primary Index?
- It is based on the Secondary Index
- It is based on the primary key of the table
- It is on the partitioning column
- It is based on the Primary Index of the table
A Partitioned Primary Index should be used for what two reasons? (Choose two)
- It is the Primary Key of the table, which guarantees uniqueness
- It allows instantaneous dropping of old data and rapid addition of new data
- It avoids full table scans without the overhead of a secondary index.
- It places all data in a specific range on the same AMP.
An example of an OLTP environment is _____
- creating a report to show a comparison of sales from this week to last week
- creating a report show how much credit can be extended to a customer
- creating a report that shows the top ten selling items across all stores for one year
- updating a checking account to reflect a deposit
You are an administrator at CertKiller.com. CertKiller.com has a Teradata system with 100 GB of permanent space and creates User A with 30 GB permanent space. How much spaces will User A have, if User A creates User B with 20 GB permanent space?
- 70GB
- 80GB
- 10GB
- 30GB
When utilizing a unique secondary index, how may AMP (s) is usually accessed?
- All-AMP
- One-AMP
- Multi-AMP
- Two-AMP
How would you define a transaction?
- A logon, submittal of work, and logoff
- A single sql statement
- A logical unit or work
- A single sql, statement and the unit of recovery
Consider the emp table having columns empno, ename Which of the following SQL query fetches empno that occur more than twice in the emp table.
- select count() from emp group by empno having count() >2;
- select empno, count() from emp having count() >2;
- select empno, count() from emp where count() >2;
- select empno, count() from emp group by empno having count() >2;
In a database row is also called as
- Query
- Attribute
- Relation
- Record
which of the following denote single value function used in SQL
- AVG ( )
- SQRT ( )
- COUNT ( )
- All the Above
While creating tables the concept that is used to reduce redundancy in data is called
- Views
- Aliases
- Sequence
- Normalization
A table T1 having 100 rows is joined with a table T2 with 50 rows without specifying the joined column in the where clause then result will have
- 100 rows
- 50 rows
- 150 rows
- 5000 rows
Which isolation level doesn't exists
- Isolation level2
- Isolation level3
- Isolation level4
- Isolation level1
Which normal forms require that non-key columns be functionally dependent solely on the primary key?
- Second
- Fifth
- Third
- None of above
Which of the following options is FALSE about unchained mode in ASE
- A commit tran is always implied for every transaction.
- Unchained mode is the default mode in ASE
- The server does not issue the begin tran implicity
- The value of @@tranchained is 0
The modulos operator (%) CANNOT be used on the _____ datatype.
- Tinyint
- Money
- Float
- Smallint