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

A passage is given with 5 questions following it. Read the passage carefully and choose the best answer to each question out of the four alternatives.

Due to poor rainfall over the past few months, the vadu mangai season is expected to be short this year. There are two distinct varieties available in the vicinity of Coimbatore. The closest to Coimbatore, and the one that appears in the markets first, is the Thadagam variety. The second and more popular variety is the one from the Thirumoorthy Hills, near Udumalpet. Representatives from commercial pickle brands whisk these mangais away in big lots directly from the wholesalers. Only a small portion of the year's harvest trickles down to the local markets. Small vendors bring sacks full of these tiny tender mangoes to one particular street corner in Ram Nagar during the season. The corner of Rajaji Road and Sathyamurthy Road plays host to these vendors from as early as 7.00 am every day. Depending on the quantity they have, the mangais are available until around 11.00 am. If the vendors have a good day and their produce is sold quickly, they pack up and leave even as early as 9.00 am.

Which of the following best describes the vadu mangai mangoes?

A) Big and juicy B) Orange but raw
C) Tiny and tender D) Sour and sweet
 
Answer & Explanation Answer: C) Tiny and tender

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2275
Q:

In satellite based communication VSAT stands for

Answer

VSAT stands for Very Small Aperture Terminal is a satellite communications system that serves home and business users.

Report Error

View answer Workspace Report Error Discuss

Subject: General Science Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

1 2274
Q:

Which country recently unveiled the world's first underground hotel?

A) Japan B) Dubai
C) China D) Malaysia
 
Answer & Explanation Answer: C) China

Explanation:

China recently unveiled the world's first underground hotel.

Report Error

View Answer Report Error Discuss

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

1 2274
Q:

All India Radio was founded in

A) 1935 B) 1931
C) 1930 D) 1927
 
Answer & Explanation Answer: C) 1930

Explanation:

All India Radio founded in 1930.

With over 420 radio stations in about 23 languages & 179 dialects.

AIR is one of the largest radio broadcasters in world.

It also has 99.19% population coverage & 18 FM channels.

Report Error

View Answer Report Error Discuss

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

2 2274
Q:

Gravitational force is maximum at which place

A) Poles B) Tropic of cancer
C) Tropic of capricorn D) Equator
 
Answer & Explanation Answer: A) Poles

Explanation:

Gravitational force is the force that binds everything at the surface of the earth. Gravitational force is maximum at Poles.

Report Error

View Answer Report Error Discuss

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

5 2274
Q:

Each item consists of six sentences of a passage. The first and sixth sentences are given in the beginning as S1 and S6. The middle four sentences in each have been jumbled up and labelled as P, Q, R and S. You are required to find the proper sequence of the four sentences and mark your response accordingly on the Answer Sheet.

 

S1 : He no longer dreamed of storms, nor of women, nor of great occurrences, nor of great fish, nor fights, nor contests of strength, nor of his wife.

S6 : He urinated outside the shack and then went up the road to wake the boy.

P : He never dreamed about the boy.

Q : He only dreamed of places and of the lions on the beach now.

R : He simply woke, looked out through the open door at the moon and unrolled his trousers and put them on.

S : They played like young cats in the dusk and he loved them as he loved the boy.

The correct sequence should be

A) R Q P S B) S R Q P
C) Q R P S D) P R S Q
 
Answer & Explanation Answer: C) Q R P S

Explanation:

QSPR is the correct order in which sentences should be arranged.When arranged in the correct sequence, they read as “He no longer dreamed of storms, nor of women, nor of great occurrences, nor of great fish, nor fights, nor contests of strength, nor of his wife. He simply woke, looked out through the open door at the moon and unrolled his trousers and put them on. He only dreamed of places now and of the lions on the beach. They played like young cats in the dusk and he loved them as he loved the boy. He never dreamed about the boy.He urinated outside the shack and then went up the road to wake the boy.”

 

Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2274
Q:

I am a cold man without a soul. If there is warmth in me, it slowly will kill me. What am I?

Answer

A snowman is a cold man without a soul, if there is warmth in it, it slowly will kill him.

Report Error

View answer Workspace Report Error Discuss

Subject: Word Puzzles Exam Prep: TOEFL , GRE , GATE , CAT , Bank Exams , AIEEE
Job Role: Bank PO , Bank Clerk , Analyst

3 2274