Databases and SQL Concepts

Covers database fundamentals including SQL queries, indexing strategies, database design principles, and performance optimization

19 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

ETL stands for

  1. Export Transform Load
  2. Extract Track Load
  3. Extract Tool Load
  4. Extract Transform Load
Question 2 Multiple Choice (Single Answer)

How is a parent package variable value passed to child package?

  1. by global variables
  2. by setting package configurations in child package
  3. by setting package configurations in parent package
  4. by Execute Package task
Question 3 Multiple Choice (Single Answer)

Partition Primary Index would be defined in which stage of modeling?

  1. Logical
  2. Extended Logical
  3. Physical
  4. Extended Physical
Question 4 True/False

Number of NULLs is considered a data demographic

  1. True
  2. False
Question 5 Multiple Choice (Multiple Answers)

Which two data demographics should you consider when deciding whether or not to store or calculate derived data? (Select 2)

  1. Maximum Number of NULLs
  2. Access Frequency
  3. Change Rating
  4. Typical Rows Per Value
Question 6 Multiple Choice (Multiple Answers)

Pick the two statements that are true regarding Identity Columns. (Select 2)

  1. They don't have to be a Primary Index column
  2. They are not allowed to be a Primary Index column.
  3. They are required to be a Non-Unique Primary Index
  4. You can only specify one Identity Column per table.
Question 7 Multiple Choice (Multiple Answers)

What is contained in a USI subtable? (Select 3)

  1. The buckets containing the AMP numbers where the data is stored.
  2. The USI column value
  3. The Row ID of the base row.
  4. The Secondary Index Row ID.
  5. The Integer Type of all Value-Ordered NUSIs.
Question 8 Multiple Choice (Multiple Answers)

What are some benefits of using a USI?

  1. They eliminate Full Table Scans.
  2. Duplicate row checks are avoided.
  3. There is no overhead involved.
  4. They are best used for range queries.
  5. You cannot insert rows with a duplicate USI value.
Question 9 True/False

Data type assignments should be made at the row level to avoid data conversion.

  1. True
  2. False
Question 10 Multiple Choice (Single Answer)

What is one significant aspect about a Cover Query?

  1. All columns required by the query are available via the Primary index.
  2. All columns required by the query are available via a Join Index.
  3. All columns required by the query are available via the Hash Index
  4. 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.
Question 11 Multiple Choice (Multiple Answers)

Select two true statements about Join Indexes. (Select 2)

  1. Join Indexes have repeating values.
  2. Join Indexes do not have repeating values.
  3. Join Indexes are updated automatically when their underlying rows change
  4. Join Indexes are not updated automatically when their underlying rows change.
Question 12 Multiple Choice (Multiple Answers)

When denormalizing a table, what are some things to consider? (Select 2)

  1. Downtime
  2. Stability
  3. Performance
  4. Volatility
Question 13 True/False

The OR operator displays a record if both the first condition and the second condition is true.

  1. True
  2. False
Question 14 Multiple Choice (Single Answer)

Which operator allows you to specify multiple values in a WHERE clause?

  1. BETWEEN
  2. IN
  3. HAVING
  4. ALIAS
Question 15 Multiple Choice (Multiple Answers)

The UNION operator is used to combine the result-set of two or more SELECT statements when

  1. each SELECT statement within the UNION has the same number of columns
  2. The columns have similar data types
  3. the columns in each SELECT statement are in same order.
  4. None
Question 16 Multiple Choice (Multiple Answers)

Which of the following are Scalar functions?

  1. MAX( )
  2. MID( )
  3. SUM( )
  4. NOW( )
Question 17 True/False

WHERE keyword could not be used with aggregate functions.

  1. True
  2. False
Question 18 True/False

Running an IMS program in DBB is faster than running it in DLI.

  1. True
  2. False
Question 19 Multiple Choice (Multiple Answers)

Which of the following are true regarding SSA's and IMS database calls?

  1. INIT call gets the database availability status
  2. It is not advisable to use GOBACK for ending an IMS COBOL program
  3. If the SSA contains only the segment name, byte 9 must contain a blank
  4. Basic checkpoint calls do not support GSAM files