Databases and SQL Concepts
Covers database fundamentals including SQL queries, indexing strategies, database design principles, and performance optimization
Questions
ETL stands for
- Export Transform Load
- Extract Track Load
- Extract Tool Load
- Extract Transform Load
How is a parent package variable value passed to child package?
- by global variables
- by setting package configurations in child package
- by setting package configurations in parent package
- by Execute Package task
Partition Primary Index would be defined in which stage of modeling?
- Logical
- Extended Logical
- Physical
- Extended Physical
Number of NULLs is considered a data demographic
- True
- False
Which two data demographics should you consider when deciding whether or not to store or calculate derived data? (Select 2)
- Maximum Number of NULLs
- Access Frequency
- Change Rating
- Typical Rows Per Value
Pick the two statements that are true regarding Identity Columns. (Select 2)
- They don't have to be a Primary Index column
- They are not allowed to be a Primary Index column.
- They are required to be a Non-Unique Primary Index
- You can only specify one Identity Column per table.
What is contained in a USI subtable? (Select 3)
- The buckets containing the AMP numbers where the data is stored.
- The USI column value
- The Row ID of the base row.
- The Secondary Index Row ID.
- The Integer Type of all Value-Ordered NUSIs.
What are some benefits of using a USI?
- They eliminate Full Table Scans.
- Duplicate row checks are avoided.
- There is no overhead involved.
- They are best used for range queries.
- You cannot insert rows with a duplicate USI value.
Data type assignments should be made at the row level to avoid data conversion.
- True
- False
What is one significant aspect about a Cover Query?
- All columns required by the query are available via the Primary index.
- All columns required by the query are available via a Join Index.
- All columns required by the query are available via the Hash Index
- The PE covers the query by looking into cache to see if the same query has been run in the last 240 minutes. If it has been cached the PE doesn't have to generate steps for the AMPs.
Select two true statements about Join Indexes. (Select 2)
- Join Indexes have repeating values.
- Join Indexes do not have repeating values.
- Join Indexes are updated automatically when their underlying rows change
- Join Indexes are not updated automatically when their underlying rows change.
When denormalizing a table, what are some things to consider? (Select 2)
- Downtime
- Stability
- Performance
- Volatility
The OR operator displays a record if both the first condition and the second condition is true.
- True
- False
Which operator allows you to specify multiple values in a WHERE clause?
- BETWEEN
- IN
- HAVING
- ALIAS
The UNION operator is used to combine the result-set of two or more SELECT statements when
- each SELECT statement within the UNION has the same number of columns
- The columns have similar data types
- the columns in each SELECT statement are in same order.
- None
Which of the following are Scalar functions?
- MAX( )
- MID( )
- SUM( )
- NOW( )
WHERE keyword could not be used with aggregate functions.
- True
- False
Running an IMS program in DBB is faster than running it in DLI.
- True
- False
Which of the following are true regarding SSA's and IMS database calls?
- INIT call gets the database availability status
- It is not advisable to use GOBACK for ending an IMS COBOL program
- If the SSA contains only the segment name, byte 9 must contain a blank
- Basic checkpoint calls do not support GSAM files