what is a sub query?how will you calculate working days in
a month using sub query?

Answer Posted / ankur akash

A query inside a query is a sub query.
The first query depends for its execution based on the
result provided by the execution of inside query. i.e. subquery.
For ex.
Select last_name, salary, job_id
from employees
where salary >(select last_name, salary
from employees
where last_name = 'Higgins');

Here
Select last_name, salary, job_id
from employees
where salary >
talks about the first query depending for its result based
on the execution of the inner query i.e. sub query
(select last_name, salary
from employees
where last_name = 'Higgins');

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get list of all tables from a database?

842


How to revise and re-run the last sql command?

837


How do I find duplicates in the same column?

733


what is recursive stored procedure? : Sql dba

714


Explain lock escalation? : Transact sql

867






What is mutating trigger?

768


Write a sql select query that only returns each name only once from a table?

760


Are pl sql variables case sensitive?

770


Is pl sql useful?

722


What are the three forms of normalization?

760


How does cross join work in sql?

706


Explain the the update statement in sql?

770


What is data type in database?

730


What is the difference between having clause and where clause?

794


Where the sql database files are stored?

693