Analyst 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 2340
Q:

What is a word made up of 4 letters, yet is also made up of 3. Everything is written with 9 letters, and then with 4. Rarely consists of 6, and never is written with 5.

Answer

The Riddle itself has the Answers.


What is a 4 letter word


Yet is written in 3 letters


Everything is written with 9 letters


Then with 4 letters


Rarely has 6 letters


Never is written in 5 letters.

Report Error

View answer Workspace Report Error Discuss

9 2340
Q:

Which of the following is not soluble in water?

A) sodium chloride B) potassium sulfate
C) copper(II) hydroxide D) silver nitrate
 
Answer & Explanation Answer: B) potassium sulfate

Explanation:

We know that,

All nitrates are soluble in water.

All chlorides are soluble in water with the exception of those formed with silver , lead , mercury ions as all halides are soluble.

Sulphates are soluble in water.

Hydroxides are not soluble in water.

 

Hence, copper(II) hydroxide is not soluble in water.

Report Error

View Answer Report Error Discuss

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

2 2339
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 2339
Q:

Who appointed as goodwill ambassador for Nepal tourism?

A) Madhuri Dixit B) Jaya Pradha
C) Priyanka Chopra D) Deepika Padukone
 
Answer & Explanation Answer: B) Jaya Pradha

Explanation:

Former Member of Parliament of India and cine artist Jaya Prada has been appointed the goodwill ambassador for the promotion of Nepal's tourism.

Report Error

View Answer Report Error Discuss

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

3 2339
Q:

India is the which largest solar market in the world?

A) First B) Second
C) Seventh D) Fourth
 
Answer & Explanation Answer: B) Second

Explanation:
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 2338
Q:

When did the capital of India shift from Kolkata to New Delhi?

A) 1911 B) 1951
C) 1931 D) 1901
 
Answer & Explanation Answer: A) 1911

Explanation:

The capital of India shift from Kolkata to New Delhi in the year 1911.

Report Error

View Answer Report Error Discuss

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

6 2336
Q:

Arrange the following compounds in order of increasing acidity?

A) o-cresol < phenol < o-nitrophtenol B) phenol < o-nitrophtenol < o-cresol
C) o-nitrophtenol < o-cresol < phenol D) None of the above
 
Answer & Explanation Answer: A) o-cresol < phenol < o-nitrophtenol

Explanation:
Report Error

View Answer Report Error Discuss

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

0 2335