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
Database Redesign problems
1. What SQL command can be used to add columns to a table?
Options
A. MODIFY TABLE
TableName
ADD COLUMN
ColumnName
B. MODIFY TABLE
TableName
ADD
ColumnName
C. ALTER TABLE
TableName
ADD COLUMN
ColumnName
D. ALTER TABLE
TableName
ADD
ColumnName
Show Answer
Scratch Pad
Discuss
Correct Answer: ALTER TABLE
TableName
ADD
ColumnName
2. The NOT EXISTS keyword will be true if:
Options
A. any row in the subquery meets the condition.
B. all rows in the subquery fail the condition.
C. both of these two conditions are met.
D. neither of these two conditions is met.
Show Answer
Scratch Pad
Discuss
Correct Answer: all rows in the subquery fail the condition.
3. A regular subquery can be processed:
Options
A. from the top down.
B. from the bottom up.
C. by nesting.
D. None of the above is correct.
Show Answer
Scratch Pad
Discuss
Correct Answer: from the bottom up.
4. How can you find rows that do not match some specified condition?
Options
A. EXISTS
B. Double use of NOT EXISTS
C. NOT EXISTS
D. None of the above is correct.
Show Answer
Scratch Pad
Discuss
Correct Answer: Double use of NOT EXISTS
5. What SQL command can be used to delete columns from a table?
Options
A. MODIFY TABLE
TableName
DROP COLUMN
ColumnName
B. MODIFY TABLE
TableName
DROP
ColumnName
C. ALTER TABLE
TableName
DROP COLUMN
ColumnName
D. ALTER TABLE
TableName
DROP
ColumnName
Show Answer
Scratch Pad
Discuss
Correct Answer: ALTER TABLE
TableName
DROP COLUMN
ColumnName
6. Which of the following SQL statements are helpful in database redesign?
Options
A. Correlated subqueries only
B. EXISTS/NOT EXISTS expressions only
C. Both of the above are helpful
D. None of the above are helpful.
Show Answer
Scratch Pad
Discuss
Correct Answer: Both of the above are helpful
7. A tool that can help designers understand the dependencies of database structures is a:
Options
A. dependency graph.
B. data model.
C. graphical display.
D. None of the above is correct.
Show Answer
Scratch Pad
Discuss
Correct Answer: dependency graph.
8. The data model that is produced from reverse engineering is:
Options
A. a conceptual model.
B. an internal model.
C. a logical model.
D. None of the above is correct.
Show Answer
Scratch Pad
Discuss
Correct Answer: None of the above is correct.
9. The EXISTS keyword will be true if:
Options
A. any row in the subquery meets the condition only.
B. all rows in the subquery fail the condition only.
C. both of these two conditions are met.
D. neither of these two conditions is met.
Show Answer
Scratch Pad
Discuss
Correct Answer: any row in the subquery meets the condition only.
10. Which SQL-92 standard SQL command can be used to change a table name?
Options
A. RENAME TABLE
B. CHANGE TABLE
C. ALTER TABLE
D. None of the above is correct.
Show Answer
Scratch Pad
Discuss
Correct Answer: None of the above is correct.
First
2
3
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