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

India has donated what amount for a peacekeeping initiative at the UN?

A) $ 3 lakh B) $ 5 lakh
C) $ 10 lakh D) $ 1 lakh
 
Answer & Explanation Answer: A) $ 3 lakh

Explanation:

India has donated $ 3 lakh for a peacekeeping initiative at the United Nations pipeline for peacekeeping initiative at the UN.

Report Error

View Answer Report Error Discuss

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

2 2240
Q:

Dynamic remarketing lets an advertiser

A) Re-run ad to increase the volume of people who will see it. B) Show prior visitors to his site ads that are based on products or services they saw on the site.
C) Show an ad to someone on his mobile device 24 hours after visiting the website on desktop PC. D) Engage visitors to the website by opening a chat session.
 
Answer & Explanation Answer: B) Show prior visitors to his site ads that are based on products or services they saw on the site.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Advertising and Media
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk

5 2239
Q:

A sentence has been given in Active/Passive Voice. Out of the four given alternatives, select the one which best expresses the same sentence in Passive/Active Voice.
 
The teacher should check the homework

A)

The homework should be checked by the teacher

B)

The homework is checked by the teacher

C)

The teacher is responsible for checking homework

D)

The homework will be checked by the teacher

 
Answer & Explanation Answer: A)

The homework should be checked by the teacher



Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: TOEFL , GRE , CAT , Bank Exams
Job Role: Bank PO , Bank Clerk

0 2239
Q:

Read each sentence to find out whether there is any grammatical error in it. The error, if any, will be in one part of the sentence. If there is no error, the answer is ‘No error’. (Ignore the errors of punctuation, if any.

Their innovative zeal has / touched the lives of 125 crore / Indians and make India/proud worldwide./ No error

A) Their innovative zeal has B) touched the lives of 125 crore
C) Indians and make India D) proud worldwide.
 
Answer & Explanation Answer: C) Indians and make India

Explanation:

'and made India' should be used to make the sentence grammatically correct. You use 'made' when referring to things already done in the past.'Make' is present and its continuous its still been done unlike 'made' which refers to what has been done

Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2239
Q:

In the following question, a word has been written in four different ways out of which only one is correctly spelt. Select the correctly spelt word.

 

A) Ambarass B) Embarass
C) Embarrs D) Embarrass
 
Answer & Explanation Answer: D) Embarrass

Explanation:
Report Error

View Answer Report Error Discuss

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

3 2239
Q:

Operational excellence refers to companies that

A) are expensive but is expected to pay off in long-term loyalty and enhanced customer lifetime value B) are willing to tailor their products to particular customer needs
C) are good at production, delivery, price, and convenience D) pride themselves on quality and innovation
 
Answer & Explanation Answer: C) are good at production, delivery, price, and convenience

Explanation:

Operational excellence refers to companies that are good at production, delivery, price, and convenience.

Report Error

View Answer Report Error Discuss

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

0 2239
Q:

Consumers that eat both plants and animals are

A) Carnivores B) Herbivores
C) Omnivores D) Tertiary consumers
 
Answer & Explanation Answer: C) Omnivores

Explanation:

An omnivore is an animal that eats food from both plants and animals.

Animals that eat other animals are called carnivores. Carnivores that eat herbivores are called secondary consumers, and carnivores that eat other carnivores are called tertiary consumers.

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 2239