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

What are the differences between char and nchar in ms sql server?

1084


What is tcl in sql server?

1120


How to assign new column names in a view?

914


What is the difference between value type and reference type?

918


Do you know what are the differences between lost updates and uncommitted dependencies?

1074


What is report server project?

147


How will you go about resolving deadlocks?

968


What is the difference between mysql and mysqli?

1189


You want to generate a report that is formatted as a chart. Can you use the report wizard to create such a report?

121


how you can deploy an ssrs report?

178


What are the advantages of log shipping?

993


What does nvl stand for?

940


What are the parts of a function?

932


What is the significance of null value and why should we avoid permitting null values?

981


Is a null value equal to anything? Can a space in a column be considered a null value? Why or why not?

1064