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

Give the truth table for a Half Adder. Give a gate level Implementation of the same.

Answer

TRUTH TABLE FOR HALF ADDER


A    B  SUM  CARRY


0    0    0         0


0    1    1         0


1    0    1         0


1    1    0         1


INPLEMENTATION:


For SUM, The two inputs A and B are given to XOR gate.


For Carry, The two inputs A and B are given to AND gate.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2474
Q:

Is the address bus unidirectional?

Answer

The address bus is unidirectional because the address information is always given by the micro processoe  to address a memory location of an input / output devices.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2473
Q:

Which sport has been included in 2022 Asian Games?

A) Kabaddi B) Cricket
C) Chess D) Carroms
 
Answer & Explanation Answer: B) Cricket

Explanation:

Cricket has been included in 2022 Asian Games. The Asian Games, also known as Asiad, is a multi-sport event held every four years among athletes from all over Asia. In 2022, Asian Games are going to be hosted by China. The first Asian Games are hels in the year 1951 in New Delhi.

Report Error

View Answer Report Error Discuss

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

4 2472
Q:

Burning the candle at both ends meaning

A) To consume a lot B) To overwork
C) To overtake D) None of the above
 
Answer & Explanation Answer: B) To overwork

Explanation:

Burning the candle at both ends meaning is to overwork starting early in the morning and staying till late nights.

Report Error

View Answer Report Error Discuss

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

0 2472
Q:

Plants that are more rare today are

A) Hydrophytes B) Xerophytes
C) Mesophytes D) None of the above
 
Answer & Explanation Answer: A) Hydrophytes

Explanation:
Report Error

View Answer Report Error Discuss

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

2 2472
Q:

After removing two electrons from helium atom it become?

A) UV rays B) Alpha particle
C) Gama particle D) X rays
 
Answer & Explanation Answer: B) Alpha particle

Explanation:
Report Error

View Answer Report Error Discuss

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

1 2471
Q:

Read the passage carefully and choose the best answer to each question out of the four alternatives and click the button corresponding to it.


Without breakfast, all of us ­ irrespective of age ­ are likely to experience the late morning slump; tiredness, sleepiness and the urge to sit back. Our efficiency goes down further as the day progresses.Moreover, skipping the first meal of the day leads to intense hunger pangs by late morning and we end up eating chips, samosas, burgers or other high­ fat unhealthy foods. Break fast­skippers are more likely to be overweight. A good breakfast leads to a more active, productive day. Research has found a definite connection between skipping breakfast and memory impairment in both young and older adults. Moreover, breakfast is directly linked with performance in school and college. Breakfast should contribute at least one ­fourth of our daily requirement of nutrients. An ideal breakfast should contain adequate amounts of carbohydrates, proteins and fats in addition to minerals and vitamins. Essentially this means including most of our food groups in the morning meal. Whole grain cereals ­ like atta in parathas and puris, dalia, suji, etc. are an integral part of the traditional Indian breakfast. Their high fibre and protein content provides a feeling of satisfaction, which lowers the urge to snack before lunch. On the other hand, high­ sugar foods actually make people sleepier, not active.

Milk, cheese, eggs or dals (as sprouts in idli or dosas or as sambhar) are other protein sources. A serving of milk (one cup) provides B­ complex vitamins and also minerals like zinc, magnesium and calcium. Fruits or vegetables provide valuable vitamin C and keep constipation away.

 

Breakfast is satisfying when

A) it is rich in fatty foods B) it contains high protein and fibre content
C) it is rich in carbohydrates, proteins and fats D) we eat to our heart's content
 
Answer & Explanation Answer: B) it contains high protein and fibre content

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2471