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

Burning the candle at both ends meaning

A) To consume a lot B) To overwork
C) To overtake D) None of the above
 
Answer & Explanation Answer: B) To overwork

Explanation:

Burning the candle at both ends meaning is to overwork starting early in the morning and staying till late nights.

Report Error

View Answer Report Error Discuss

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

0 2350
Q:

Select the word with the correct spelling.

A) adendum B) atlantise
C) inovate D) abseiled
 
Answer & Explanation Answer: D) abseiled

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: AIEEE , Bank Exams , GRE

0 2349
Q:

A body of 4.0 kg is lying at rest. Under the action of a constant force, it gains a speed of 5 m/s. The work done by the force will be____.

A) 50J B) 30J
C) 20J D) 40J
 
Answer & Explanation Answer: A) 50J

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

0 2349
Q:

The group of solar cells joined together in a definite pattern is called a

A) Battery B) Solar Heater
C) Solar cooker D) Solar cell panel
 
Answer & Explanation Answer: D) Solar cell panel

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

1 2349
Q:

In a bipolar junction transistor

A) all the three regions (the emitter, the base and the collector) have equal concentrations of impurity B) the emitter has the least concentration of impurity
C) the collector has the least concentration of impurity D) the base has the least concentration of impurity
 
Answer & Explanation Answer: D) the base has the least concentration of impurity

Explanation:

In terms of concentration of impurity (a.k.a impurity doping concentration, often abbreviated to doping concentration), from the highest to the lowest among the three regions of a bipolar junction, emitter, collector, and base are the correct order. The above order is independent of the type of BJT, npn or pnp

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

1 2348
Q:

How to get dissertation introduction writing ideas

Answer

Most of the students do not know anything about the dissertation writing and the services.So always students are depending on the dissertation writing services.Students can get the dissertation introduction writing ideas from the dissertation writing services, this will benefit for your future.

Report Error

View answer Workspace Report Error Discuss

0 2348
Q:

Who appointed as goodwill ambassador for Nepal tourism?

A) Madhuri Dixit B) Jaya Pradha
C) Priyanka Chopra D) Deepika Padukone
 
Answer & Explanation Answer: B) Jaya Pradha

Explanation:

Former Member of Parliament of India and cine artist Jaya Prada has been appointed the goodwill ambassador for the promotion of Nepal's tourism.

Report Error

View Answer Report Error Discuss

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

3 2348