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 2477
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 and click the button corresponding to it.

 

Most successful companies, institutions and organizations have mission statements. Most individuals don't. As the Chief Executive Officer of your own life in the knowledge era, you need a laser like focus in your vision. You need a mission and a mission statement describing how you want to live, not just what you want to own; defining the person you want to become, not just the title you want to see on your door; outlining the knowledge you will receive, not just the degree you'll earn or your next promotion.

I began the process this way : "To be aware of the uniqueness of my associates, clients, friends and family, and to treat that uniqueness with loving concern. I was created to lead myself and others to understand win­win relationships and how to use them to improve the lives of all persons with whom I come into contact."

You, too, can frame your mission statement starting with your core values, working outward to your material desires and financial needs.

What should a person's mission statement begin with?

A) Your core values B) What you want to acquire
C) Your monetary ambitions D) Your next promotion
 
Answer & Explanation Answer: A) Your core values

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2477
Q:

In the following question, out of the four alternatives, choose the word which best expresses the meaning of the given word and click the buttoncorresponding to it.

CONSTRAIN

A) STRESS B) CONTRADICT
C) RESTRICT D) OBSTRUCT
 
Answer & Explanation Answer: C) RESTRICT

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2477
Q:

In the following question, a sentence has been given in Direct/Indirect speech. Out of the four alternatives suggested, select the one which bestexpresses the same sentence in Indirect/Direct speech.

The doctor said, "well, what can I do for you?"

A) The doctor wanted to know what he could do for her. B) The doctor said that he couldn't do anything for her.
C) The doctor asked what he couldn't do for her. D) The doctor wondered what he could do for her.
 
Answer & Explanation Answer: A) The doctor wanted to know what he could do for her.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English

1 2476
Q:

In the given question, a part of the sentence is printed in bold. Below the sentence, three alternatives to the bold part are given which may help improve the sentence. Choose the option that reflects the correct use of the phrase in the context of the sentence. In case the given sentence is correct, your answer is (E) i.e. No correction required. Living in the heart of New York city is certainly like a far cry from living in the rural countryside. (i) heart of New York city is certainly a far cry from (ii) heart of New York city is a far cry than (iii) heart of the New York city is certainly ruing

A) Only (i)  B) Only (ii)
C) Only (iii) D) Both (ii) and (iii)
 
Answer & Explanation Answer: A) Only (i) 

Explanation:
The part of the sentence that is most important in this sentence is ‘a far cry.’ It means ‘vastly different from.’ But here this phrase has not been used in the correct way except option 1.
Report Error

View Answer Report Error Discuss

Filed Under: English

0 2476
Q:

Vertebrates and tunicates share 

A) a notochord and a dorsal, hollow nerve cord. B) the formation of structures from the neural crest.
C) jaws adapted for feeding. D) an endoskeleton that includes a skull.
 
Answer & Explanation Answer: A) a notochord and a dorsal, hollow nerve cord.

Explanation:
Report Error

View Answer Report Error Discuss

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

2 2476
Q:

Which of the following is a function of Earth's atmosphere?

A) supplies the oxygen and water for life B) screens out much of the Sun's ultraviolet radiation
C) insulates the surface against temperature extremes D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

Here all the options given are important functions of Earth's atmosphere.

Report Error

View Answer Report Error Discuss

2 2475
Q:

The difference between Greenwich Mean Time & Indian Standard Time is

A) 6 1/2 Hours B) 6 Hours
C) 5 1/2 Hours D) 5 Hours
 
Answer & Explanation Answer: C) 5 1/2 Hours

Explanation:

The difference between Greenwich Mean Time & Indian Standard Time is 5 1/2 hours.

Report Error

View Answer Report Error Discuss

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

2 2475