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...

Can we rewrite subqueries into simple select statements or
with joins? Example?

Answer Posted / syed sajjad

Yes we can write using Common Table Expression (CTE). A Common Table Expression (CTE) is an expression that can be thought of as a temporary result set which is defined within the execution of a single SQL statement. A CTE is similar to a derived table in that it is not stored as an object and lasts only for the duration of the query.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Other than truncate statement, which other command can by-pass the trigger on the tables?

1134


wat wil hapn if we give the both read and deny read permission to user?

2103


How to identify current user in ssrs report?

403


Can we call stored procedure in trigger?

950


how can you check the level of fragmentation on a table? : Sql server administration

984


What is measure group, measure? : sql server analysis services, ssas

1013


What is transaction server implicit?

1011


What is meant by referential integrity?

1010


what are cursors? : Sql server database administration

1061


Explain the properties of sub-query in sql server?

1018


What are statistics?

1000


What are types of subqueries?

1069


Why do you need a sql server?

1112


How many categories of functions based their return modes?

1103


Which table keeps information about stored procedures?

939