SQL and Teradata Database Utilities
Test your knowledge of SQL fundamentals including SELECT, INSERT, DELETE, ORDER BY, GROUP BY, sub-queries, views, and operators, plus Teradata-specific utilities like FastLoad and TPUMP for data warehousing operations.
Questions
Which SQL statement is used to extract data from a database?
- FETCH
- EXTRACT
- GET
- SELECT
Which SQL statement is used to delete data from a database table?
- DROP
- DELETE
- TRUNCATE
- REMOVE
What is a trigger
- A piece of logic written in PL/SQL
- Executed at the arrival of a SQL*FORMS event
- Both A & B
- None of the above
RENAME command is a :
- DCL command
- TCL command
- DDL command
- DML command
Data Dictionary:
- Is a collection of tables created and maintained by oracle server.
- Contain user information.
- Contain database information.
- Both a and c
- All
A DML statement is executed when you:
- Modify existing rows in a table.
- Add a new column in a table
- Both a & b
- None
Select the correct order of evaluation for following operators: I.LIKE II.NOT III.AND IV.OR
- I,III,IV,II
- I,II,III,IV
- IV,III,II,I
- IV,II,I,III
Which SQL keyword is used to sort the result set:
- ORDER
- SORT
- ORDER BY
- GROUP BY
What will be the correct order of the below mentioned clauses in a SQL if select part of the query contains on group function and there is one filter condition. I.Where II.GROUP BY III.HAVING IV.ORDER BY
- I,III,II,IV
- I,II,III,IV
- II,IV,III,I
- II,I,IV,III
You can not add data through a view if the view includes:
- FROM
- Columns defined by expression
- WHERE
- Both b & c
Fast Load can load the duplicate record in a multiset table.
- True
- False
Which of the following property is true about FAST LOAD.
- No more than 1 data type conversion is allowed per column during the Fastload
- If an AMP is down FL cannot be restarted untill that AMP is back online
- only load 1 empty table with one fast load job
- Fast load assembles data in 64K blocks and then loads it using mutltiple sessions
- Fast load supports triggers.
Which of the following utility is designed to allow OLTP trasactions to immediately load in Datawarehouse?
- Fast Load
- Multi Load
- Tpump
- Fast Export
For Fast load script to be restartable which of the following should hold true?
- Target table should not be created in the script
- target table should be created in the script
- Error tables should not be dropped in the script
- Checkpoint should be declared in the script
- Target table should not be dropped in the script
select the properties of TPUMP
- It is possible to stipulate how many updates may occur per minute
- It is possible to have tpump running in the background all the time and just control its flow rate
- It can load upto 60 tables at a time if using a single source
- It can be stopped any time and all locks dropped or released with no ill consequences.
- it uses macro to run the SQL statements
- It has more error tollerance than FL and ML
Sub-queries can be nested in
- DELETE statements only
- UPDATE, DELETE, INSERT and SELECT statements
- UPDATE statements only
- INSERT statements only
Which SQL statement inserts data into a table called Projects?
- INSERT Projects VALUES ('Content Development', 'Website content development project')
- SAVE INTO Projects (ProjectName, ProjectDescription) VALUES ('Content Development', 'Website content development project')
- INSERT INTO Projects (ProjectName, ProjectDescription) VALUES ('Content Development', 'Website content development project')
- INSERT Projects ('Content Development', 'Website content development project')
If you don't specify ASC or DESC after a SQL ORDER BY clause, the following is used by default:
- ASC
- DESC
- No Default value
- Returns error
Which of the following SQL statements is correct?
- SELECT FROM Sales WHERE Date BETWEEN '10/12/2005' AND '01/01/2006'
- SELECT * FROM Sales WHERE Date BETWEEN '10/12/2005' AND '01/01/2006'
- SELECT FROM Sales WHERE Date BETWEEN ('10/12/2005', '01/01/2006')
- All the above
Which of the following SQL clauses is used to sort a result set
- Order By
- Sort
- Arrange
- All the above