IT Trainer 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 1710
Q:

On BBC World News channel last night they showed an informative program about new innovations in medical imaging, which you would have found interesting.

A) there was an informative program about innovations in medical imaging, a program you would have found interesting. B) they showed an informative program about innovations in medical imaging, which you would have found interesting.
C) there was an informative program about new innovations in medical imaging, that you would have found interesting. D) they showed an informative program about new innovations in medical imaging, which you would have found interesting.
 
Answer & Explanation Answer: A) there was an informative program about innovations in medical imaging, a program you would have found interesting.

Explanation:

They is incorrect when talking of the television channel.

New is redundant.

And which must have a clear antecedent.

 

Hence, Only Option A satisfies and clears all the flaws in the given sentence.

Report Error

View Answer Report Error Discuss

5 1708
Q:

The standard English sentence order does which of the following?

A) Verb-Subject-Object B) Subject-Verb-Object
C) Verb-Object-Subject D) Object-Verb-Subject
 
Answer & Explanation Answer: B) Subject-Verb-Object

Explanation:

The standard English sentence order is Subject-Verb-Object.

 

For example ::

In the sentence, Why did you (S) do (V) that (O)?

Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration , IT Trainer

1 1705
Q:

Data structure suitable for an application discussed in?

A) procedural design B) architectural design
C) data design D) interface design
 
Answer & Explanation Answer: C) data design

Explanation:
Report Error

View Answer Report Error Discuss

1 1705
Q:

Availability management is responsible for availability of

A) IT infrastructure B) Tools
C) Processes D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

ITIL Availability Management aims to define, analyze, plan, measure and improve all aspects of the availability of IT services. It is is responsible for ensuring that all IT infrastructure, processes, tools, roles etc are appropriate for the agreed availability targets.

Report Error

View Answer Report Error Discuss

6 1700
Q:

Which of the following is not a computer programming language?

A) NULL B) BASIC
C) PYTHON D) JAVA
 
Answer & Explanation Answer: A) NULL

Explanation:

A computer programming language is nothing but a language which is understand by the computer.

Examples of programming languages are Basic, C, Java, Python, ...

Report Error

View Answer Report Error Discuss

1 1697
Q:

Warning implicit declaration of function?

Answer

Function: A Function is a block of statement which perform some operation.



Declaring the function before using the function in program is known as implicit declaration of the function.



For Example::


int bar(void); // function (forward) declaration



int main(void) {


bar(); // bar was declared, the compiler has all the info


return foo(123); // foo not yet known; impl. decl. warning


}



// not previously declared function definition


int foo(int a) {


return a;



// previously declared function definition


int bar() {


return 321;


}

Report Error

View answer Workspace Report Error Discuss

Subject: Java
Job Role: IT Trainer , Analyst

1 1697
Q:

One major cause of floods is

A) light rain over a large area B) a decrease in stream discharge
C) rapid spring snowmelt D) increased capacity of stream channels
 
Answer & Explanation Answer: C) rapid spring snowmelt

Explanation:

There are lots of reasons behind the flood in any area but the main reason is a heavy downpour or rapid snowmelt can flood canyons with a mixture of soil, rock, and water is a major cause of floods.

 

When the spring times come, sometimes there's a lot of warmth that suddenly comes, especially nowadays when there are things such as global warming. So the snow melts and large amounts of water can flood the fields that are often found at the foot of a mountain or similar things.

 

But they may also be caused by deforestation, drainage channel modification from a landslide, earthquake or volcanic eruption. Examples include outburst floods and lahars.

 

 

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 , IT Trainer

1 1697