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 2231
Q:

Which state decided to make way for electric cars to promote non-polluting vehicles?

A) Andhra Pradesh B) Delhi
C) Telangana D) Uttar Pradesh
 
Answer & Explanation Answer: C) Telangana

Explanation:

The southern state Telangana decided to make way for electric cars to promote non-polluting vehicles.

Report Error

View Answer Report Error Discuss

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

5 2231
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 2231
Q:

Which of the following is an Inert Gas?

A) Hydrogen B) Nitrogen
C) Oxygen D) Argon
 
Answer & Explanation Answer: D) Argon

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

1 2231
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 2231
Q:

What natural factors contribute to global climate?

A) Forest Fires B) Solar Activity
C) Melting Permafrost D) All the above
 
Answer & Explanation Answer: D) All the above

Explanation:

Global warming is the increase in the earth’s average temperature due to release of several greenhouse gases to the atmosphere by humans. Global warming is affecting many parts of the world.

 

Natural Causes include :

1. Solar Activity

2. Melting Permafrost

3. Forest Fires 

 

Human made causes include :

1. Deforestation

2. Overpopulation

3. Landfills

4. Mining

5. Fertilizer Use

Report Error

View Answer Report Error Discuss

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

2 2230
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 2230
Q:

What is the Focus of an Earthquake?

Answer

A Focus of an earthquake is the location where the earthquake begins. The ground ruptures at this spot, then seismic waves radiate outward in all directions.

At this focus point, the release of energy due to faulting actually occurs during an earthquake. The point directly above the focus on the surface is called Epicenter.


The focus is also called as Hypocenter as it is the synonym of the focus.

Report Error

View answer Workspace Report Error Discuss

Subject: General Awareness Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

3 2230