CuriousTab
Search
CuriousTab
Home
Aptitude
Computer
C Programming
C# Programming
C++ Programming
Database
Java Programming
Networking
Engineering
Biochemical Engineering
Biochemistry
Biotechnology
Chemical Engineering
Civil Engineering
Computer Science
Digital Electronics
Electrical Engineering
Electronics
Electronics and Communication Engineering
Mechanical Engineering
Microbiology
Technical Drawing
GK
Current Affairs
General Knowledge
Reasoning
Data Interpretation
Logical Reasoning
Non Verbal Reasoning
Verbal Ability
Verbal Reasoning
Exams
AIEEE
Bank Exams
CAT
GATE
IIT JEE
TOEFL
Jobs
Analyst
Bank PO
Database Administrator
IT Trainer
Network Engineer
Project Manager
Software Architect
Discussion
Home
‣
Database
‣
SQL for Database Construction
Comments
Question
A ________ is a stored program that is attached to a table or a view.
Options
A. pseudofile
B. embedded SELECT statement
C. trigger
D. None of the above is correct.
Correct Answer
trigger
SQL for Database Construction problems
Search Results
1. SQL views can be used to hide:
Options
A. columns and rows only.
B. complicated SQL syntax only.
C. both of the above can be hidden by an SQL view.
D. None of the above is correct.
Show Answer
Scratch Pad
Discuss
Correct Answer: both of the above can be hidden by an SQL view.
2. Views constructed from SQL SELECT statements that conform to the SQL-92 standard may not contain:
Options
A. GROUP BY.
B. WHERE.
C. ORDER BY.
D. FROM.
Show Answer
Scratch Pad
Discuss
Correct Answer: ORDER BY.
3. Which of the following is an SQL trigger supported by Oracle?
Options
A. BEFORE
B. INSTEAD OF
C. AFTER
D. All of the above.
Show Answer
Scratch Pad
Discuss
Correct Answer: All of the above.
4. To update an SQL view, the DBMS must be able to associate the column(s) to be updated with:
Options
A. a particular column in a particular underlying table.
B. a particular column in a particular row.
C. a particular row in a particular underlying table.
D. None of the above is correct.
Show Answer
Scratch Pad
Discuss
Correct Answer: a particular row in a particular underlying table.
5. For what purposes are views used?
Options
A. To hide columns only
B. To hide rows only
C. To hide complicated SQL statements only
D. All of the above are uses for SQL views.
Show Answer
Scratch Pad
Discuss
Correct Answer: All of the above are uses for SQL views.
6. When using the SQL INSERT statement:
Options
A. rows can be modified according to criteria only.
B. rows cannot be copied in mass from one table to another only.
C. rows can be inserted into a table only one at a time only.
D. rows can either be inserted into a table one at a time or in groups.
Show Answer
Scratch Pad
Discuss
Correct Answer: rows can either be inserted into a table one at a time or in groups.
7. The SQL ALTER statement can be used to:
Options
A. change the table structure.
B. change the table data.
C. add rows to the table.
D. delete rows from the table.
Show Answer
Scratch Pad
Discuss
Correct Answer: change the table structure.
8. Which is NOT one of the most common types of SQL CHECK constraints?
Options
A. System date
B. Range checks
C. Lists of values
D. Comparing one column value to another within the same table
Show Answer
Scratch Pad
Discuss
Correct Answer: System date
9. What is an advantage of placing computations in SQL views?
Options
A. To save users from having to write an expression.
B. To ensure that the results are consistent.
C. To accomplish both of the above.
D. None of the above is correct - computations cannot be placed in a view.
Show Answer
Scratch Pad
Discuss
Correct Answer: To accomplish both of the above.
10. The SQL command to create a table is:
Options
A. MAKE TABLE.
B. ALTER TABLE.
C. DEFINE TABLE.
D. CREATE TABLE.
Show Answer
Scratch Pad
Discuss
Correct Answer: CREATE TABLE.
Comments
There are no comments.
Enter a new Comment
Save
More in Database:
Advanced SQL
Data and Database Administration
Data Modeling with ER Model
Data Models into Database Designs
Data Warehousing
Database Design Using Normalization
Database Processing for BIS
Database Redesign
Distributed Databases
ER Model and Business Rules
Introduction to Database
Introduction to SQL
JDBC, Java Server Pages, and MySQL
Logical Database Design
Managing Databases with Oracle
Managing Multiuser Databases
Modeling Data in the Organization
Object-Oriented Data Modeling
Object-Oriented Database
ODBC, OLE DB, ADO, and ASP
Physical Database Design
SQL for Database Construction
SQL Server 2000
The Client-Server Database
The Database Development Process
The Database Environment
The Internet Database Environment
The Relational Model and Normalization
XML and ADO.NET