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

Thirty white horses on a red hill, first they champ, then they stamp, then they stand still.

What are they?

Answer

They are teeth. 

Report Error

View answer Workspace Report Error Discuss

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

0 2098
Q:

Who is the winner of World Women's Senior Snooker Championship 2014?

Answer

Chitra Magimairaj

Report Error

View answer Workspace Report Error Discuss

Subject: Sports

2 2097
Q:

Which Stack is used in 8085?

Answer

LIFO (Last In First Out) stack is used in 8085. In this type of Stack the last stord information can be retrieved first

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2096
Q:

What is the difference between, page directive include, action tag include?

Answer

One difference is while using the include page directive, in translation time it is creating two servelts. But, while using the include action tag, in translation time it is creating only one servlet.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2096
Q:

Which of the following is the India's first underwater robotic drone?

A) EyeROV TUNA B) HandROV TUNA
C) BrainROV TUNA D) HeadROV TUNA
 
Answer & Explanation Answer: A) EyeROV TUNA

Explanation:

EyeROV TUNA, the India's first underwater robotic drone was launched and handed over to Kochi based DRDO lab and it can send realtime videos of ships and other underwater structures to help with their repair and maintenance.

Report Error

View Answer Report Error Discuss

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

1 2095
Q:

As per the decision of the GST Council, e-Way Bill system has been rolled out from

A) 1st March 2018 B) 1st April 2018
C) 1st May 2018 D) 1st January 2018
 
Answer & Explanation Answer: B) 1st April 2018

Explanation:

As per the decision of the GST Council, e-Way Bill system has been rolled out from 1st of April this year (2018).

Report Error

View Answer Report Error Discuss

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

3 2095
Q:

All Insurance is based on a principle called

A) investment premiums B) division of risk
C) cash value coverage. D) premium earnings
 
Answer & Explanation Answer: B) division of risk

Explanation:

Any type of insurance, be it home, auto, life, health, etc. are based on a principle of division of risk.

 

Division of Risk :: This is based on how much risk the insurer estimates the insured's coverage to be. The riskier the opportunity (bad health, area the home is in) the higher the premium costs.

Report Error

View Answer Report Error Discuss

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

0 2095