Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What are sub-queries? Give example? In which case
sub-queries are not feasible?

Answer Posted / amit kumar

A subquery is simply a SELECT query within a SELECT query.

example:-

SELECT City, Salary, (SELECT AVG(Salary) FROM Employee)
AS AvgSalary FROM Employee;

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does this statement do @@rowcount?

924


What is the security model used in sql server 2005?

934


how you can get the list of largest tables in a database? : Sql server administration

986


What is the language structure to add a record to a table?

964


What is store procedure? When do you use?

871


What is perspective, have you ever created perspective? : sql server analysis services, ssas

859


What is the purpose of object explorer and its features? : sql server management studio

1121


Explain what are the events recorded in a transaction log?

936


What is the simplest way to create a new database in ms sql server?

954


What is join and name different type of joins?

974


How many databases can we create in a single server?

205


Describe how to use linked server?

933


What is in place upgrade in sql server?

988


Can you explain powershell included in sql server 2008?

891


Write a SQL queries on Self Join and Inner Join.

985