Questions

Q:

A subquery in an sql select statement.

Answer

A Subquery or Inner query or a Nested query is a query within another SQL query and embedded within the WHERE clause.


Subqueries are most frequently used with the SELECT statement. The basic syntax is as follows::


SELECT column_name [, column_name ]
FROM table1 [, table2 ]
WHERE column_name OPERATOR
(SELECT column_name [, column_name ]
FROM table1 [, table2 ]
[WHERE])



A subquery is used to return data that will be used in the main query as a condition to further restrict the data to be retrieved.


Subqueries can be used with the SELECT, INSERT, UPDATE, and DELETE statements along with the operators like =, <, >, >=, <=, IN, BETWEEN, etc.


 


There are a few rules that subqueries must follow −


 


1. Subqueries must be enclosed within parentheses.


2. A subquery can have only one column in the SELECT clause, unless multiple columns are in the main query for the subquery to compare its selected columns.


3. An ORDER BY command cannot be used in a subquery, although the main query can use an ORDER BY. The GROUP BY command can be used to perform the same function as the ORDER BY in a subquery.


4. Subqueries that return more than one row can only be used with multiple value operators such as the IN operator.


5. The SELECT list cannot include any references to values that evaluate to a BLOB, ARRAY, CLOB, or NCLOB.


6. A subquery cannot be immediately enclosed in a set function.


7. The BETWEEN operator cannot be used with a subquery. However, the BETWEEN operator can be used within the subquery.

Report Error

View answer Workspace Report Error Discuss

0 2239
Q:

Homology is evidence of

A) Common ancestry B) Divergent evolution
C) Punctuated evolution D) Convergent evolution
 
Answer & Explanation Answer: A) Common ancestry

Explanation:

In biology, Homology is defined as any characteristic of biological organisms that is derived from a common ancestor. 

 

Hence, Homology is evidence of Common ancestry.

Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: AIEEE , Bank Exams , GATE
Job Role: Analyst , Bank Clerk , Bank PO

0 2239
Q:

In the following question, out of the given four alternatives, select the alternative which best expresses the meaning of the Idiom/Phrase.

To bid defiance

A) To disregard recklessly B) To apologize
C) To act in a like manner D) To bribe
 
Answer & Explanation Answer: A) To disregard recklessly

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English

1 2239
Q:

Economics involves marginal analysis because

A) marginal benefits always exceed marginal costs B) much economic behavior is irrational
C) most decisions involve changes from the present situation D) marginal costs always exceed marginal benefits
 
Answer & Explanation Answer: C) most decisions involve changes from the present situation

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

3 2238
Q:

Glycolysis is the conversion of

A) Glucose to pyruvate B) Glucose to proteins
C) Pyruvate to glucose D) All of the above
 
Answer & Explanation Answer: A) Glucose to pyruvate

Explanation:

Glycolysis is the metabolic process of converting 1 molecule of glucose to 2 molecules of pyruvate through a series of 10 enzyme catalyzed reactions.

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

1 2238
Q:

Process of gaining electrons is known as _____.

A) oxidation B) reduction
C) radiation D) both oxidation and reduction
 
Answer & Explanation Answer: B) reduction

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

0 2238
Q:

Geography can be understood in terms of five different

A) Themes B) Languages
C) Places D) None of the above
 
Answer & Explanation Answer: A) Themes

Explanation:

Geography is a field of science related to the study of the lands, places, relation between people & their environments. Geography can be understood in terms of five different themes. They are :

• Location
• Place
• Human-Environment Interaction (HEI)
• Movement
• Region.

Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

3 2238
Q:

Hub works on which layer?

A) Network layer B) Physical layer
C) Data link layer D) All of the above
 
Answer & Explanation Answer: B) Physical layer

Explanation:

Hub works on layer 1 i.e, physical layer.

Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

3 2238