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

Operating system is the most common type of

A) Application software B) Word processing
C) System software D) Communication software
 
Answer & Explanation Answer: C) System software

Explanation:

Operating system is the most common type of System software.

Report Error

View Answer Report Error Discuss

3 2482
Q:

What type of heat transfer is boiling water?

A) radiation B) conduction
C) convection D) None of the above
 
Answer & Explanation Answer: C) convection

Explanation:

Convection is by far the most efficient and common way for heat to be transferred through liquids and gases. It occurs when some regions of a fluid get hotter than others, causing currents in the fluid that move it around to distribute that heat more evenly.

Report Error

View Answer Report Error Discuss

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

3 2482
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 2482
Q:

In the following question, out of the four alternatives, select the word similar in meaning to the word given.

Opulent

A) Fake B) Gloomy
C) Rich D) Selfish
 
Answer & Explanation Answer: C) Rich

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: TOEFL , GRE , CAT

0 2482
Q:

Look at the underlined part of each sentence. Below each sentence are given three possible substitutions for the underlined part. If one of them (a), (b) or (c) is better than the underlined part, indicate your response on the Answer Sheet against the corresponding letter. If none of the substitutions imporves the sentence, indicate (d) as your response on the Answer Sheet.

The chairman with the other members of the board are touring Europe these days.

A) have been on touring B) is touring
C) have toured D) no improvement
 
Answer & Explanation Answer: B) is touring

Explanation:

The main subject ‘The Chairman’ is singular, hence singular verb ‘is touring’ will be used.

Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2482
Q:

The notable hardness of bone is attributed to

A) the presence of inorganic hydroxyapatites B) the presence of glycoproteins
C) the presence of collagen fibers D) the presence of cartilage
 
Answer & Explanation Answer: A) the presence of inorganic hydroxyapatites

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk

2 2482
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 2481