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
‣
Advanced SQL
Comments
Question
Which of the following statements is true concerning subqueries?
Options
A. Involves the use of an inner and outer query.
B. Cannot return the same result as a query that is not a subquery.
C. Does not start with the word SELECT.
D. All of the above.
Correct Answer
Involves the use of an inner and outer query.
Advanced SQL problems
Search Results
1. Embedded SQL is which of the following?
Options
A. Hard-coded SQL statements in a program language such as Java.
B. The process of making an application capable of generating specific SQL code on the fly.
C. Hard-coded SQL statements in a procedure.
D. Hard-coded SQL statements in a trigger.
Show Answer
Scratch Pad
Discuss
Correct Answer: Hard-coded SQL statements in a program language such as Java.
2. What type of join is needed when you wish to return rows that do have matching values?
Options
A. Equi-join
B. Natural join
C. Outer join
D. All of the above.
Show Answer
Scratch Pad
Discuss
Correct Answer: All of the above.
3. What type of join is needed when you wish to include rows that do not have matching values?
Options
A. Equi-join
B. Natural join
C. Outer join
D. All of the above.
Show Answer
Scratch Pad
Discuss
Correct Answer: Outer join
4. Which of the following is true concerning triggers?
Options
A. You do not create them with SQL.
B. They execute against only some applications that access a database.
C. They have an event, condition, and action.
D. They cannot cascade (cause another trigger to fire).
Show Answer
Scratch Pad
Discuss
Correct Answer: They have an event, condition, and action.
5. When mapping a multivalued attribute into a relation which of the following is true?
Options
A. One relation is created.
B. Two relations are created.
C. Three relations are created.
D. Four relations are created.
Show Answer
Scratch Pad
Discuss
Correct Answer: Two relations are created.
6. The following SQL is which type of join: SELECT CUSTOMER_T. CUSTOMER_ID, ORDER_T. CUSTOMER_ID, NAME, ORDER_ID FROM CUSTOMER_T,ORDER_T WHERE CUSTOMER_T. CUSTOMER_ID = ORDER_T. CUSTOMER_ID
Options
A. Equi-join
B. Natural join
C. Outer join
D. Cartesian join
Show Answer
Scratch Pad
Discuss
Correct Answer: Equi-join
7. A UNION query is which of the following?
Options
A. Combines the output from no more than two queries and must include the same number of columns.
B. Combines the output from no more than two queries and does not include the same number of columns.
C. Combines the output from multiple queries and must include the same number of columns.
D. Combines the output from multiple queries and does not include the same number of columns.
Show Answer
Scratch Pad
Discuss
Correct Answer: Combines the output from multiple queries and must include the same number of columns.
8. Which of the following is one of the basic approaches for joining tables?
Options
A. Subqueries
B. Union Join
C. Natural join
D. All of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: All of the above
9. Which of the following is true concerning a procedure?
Options
A. You do not create them with SQL.
B. They do not need to have a unique name.
C. They include procedural and SQL statements.
D. They are the same thing as a function.
Show Answer
Scratch Pad
Discuss
Correct Answer: They include procedural and SQL statements.
10. Which of the following is true concerning systems information in an RDBMS?
Options
A. RDBMS store database definition information in system-created tables.
B. This information can be accessed using SQL.
C. This information often cannot be updated by a user.
D. All of the above.
Show Answer
Scratch Pad
Discuss
Correct Answer: All of the above.
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