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

Hub works on which layer?

A) Network layer B) Physical layer
C) Data link layer D) All of the above
 
Answer & Explanation Answer: B) Physical layer

Explanation:

Hub works on layer 1 i.e, physical layer.

Report Error

View Answer Report Error Discuss

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

3 2253
Q:

Which works are protected by copyright?

A) Ideas B) Architectural works
C) Procedures D) Names
 
Answer & Explanation Answer: B) Architectural works

Explanation:

 

 Copyright law safeguards the expression of thoughts and facts, not simply the thoughts and actualities. Thoughts are fair diversion for everybody to express in their own words.

 

Works that are protected by copyright are ::

 

Literary works,

 

Musical works, including any accompanying words

 

Dramatic works, including any accompanying music

 

Pantomimes and choreographic works

 

Pictorial, graphic, and sculptural works

 

Motion pictures and other audiovisual works

 

Sound recordings

 

Architectural works.

Report Error

View Answer Report Error Discuss

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

3 2253
Q:

Select the antonym of
to comprise

A) to dispute B) to embody
C) to span D) to encompass
 
Answer & Explanation Answer: A) to dispute

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2253
Q:

Glycolysis is the conversion of

A) Glucose to pyruvate B) Glucose to proteins
C) Pyruvate to glucose D) All of the above
 
Answer & Explanation Answer: A) Glucose to pyruvate

Explanation:

Glycolysis is the metabolic process of converting 1 molecule of glucose to 2 molecules of pyruvate through a series of 10 enzyme catalyzed reactions.

Report Error

View Answer Report Error Discuss

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

1 2253
Q:

An atom that loses or gains electrons is called

A) Proton B) Ion
C) Isotope D) Neutron
 
Answer & Explanation Answer: B) Ion

Explanation:

An atom that loses or gains electrons is called as ion. Gaining of electron is negative charge and is called as Anion and lossing of eectron is called Cation.

Report Error

View Answer Report Error Discuss

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

2 2253
Q:

Which is the first payment bank in India?

A) Fino Payments Bank B) Airtel Payments Bank
C) Aditya Birla Payments Bank D) Paytm Payments Bank
 
Answer & Explanation Answer: B) Airtel Payments Bank

Explanation:

Airtel Payments Bank is the first payment bank in India. A payments bank is a new category of banks conceptualized by the Reserve Bank of India, which operates at a smaller scale than an actual bank and doesn't involve any credit risk. It can carry out most banking operations but can't advance loans or issue credit cards.

 


The RBI as of date has given licences to 11 payments bank of which six are currently operational. These include

  1. Aditya Birla Payments Bank,
  2. Airtel Payments Bank,
  3. India Post Payments Bank,
  4. Fino Payments Bank,
  5. Jio Payments Bank (and)
  6. Paytm Payments Bank.
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 2252
Q:

Which of the following event organised to mark Diwali celebrations, has entered Guinness Book of World Records in 2018?

A) Ayodhya Deepostav B) HarHarGange Deepostav
C) Varanasi Deepostav D) Gange Deepostav
 
Answer & Explanation Answer: A) Ayodhya Deepostav

Explanation:

Ayodhya Deepostav event organised to mark Diwali celebrations in Ayodya town has entered Guinness Book of World Records in 2018.

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

0 2252