August 7, 2009 at 5:04 am
Hi Friends,
I want to use Cte in my sql server 2005.What is Cte .why we will go for cte.
Then coming to my doubt i have two tables.1.Menus,2.Menu items.
USING CTE I WANT BASED ON MENU I WANT TO GET menu items from 2nd table................
August 7, 2009 at 12:56 pm
Please read the article linked in my signature line. If you post more information someone will probably be able to help. With the limited information you have provided it is practically impossible to provide a solution.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
August 7, 2009 at 1:26 pm
thummalalavanya (8/7/2009)
Hi Friends,I want to use Cte in my sql server 2005.What is Cte .why we will go for cte.
Then coming to my doubt i have two tables.1.Menus,2.Menu items.
USING CTE I WANT BASED ON MENU I WANT TO GET menu items from 2nd table................
So what is with wanting to use CTE's when you don't even have a query between two tables yet?
August 7, 2009 at 6:42 pm
thummalalavanya (8/7/2009)
Hi Friends,I want to use Cte in my sql server 2005.What is Cte .why we will go for cte.
Then coming to my doubt i have two tables.1.Menus,2.Menu items.
USING CTE I WANT BASED ON MENU I WANT TO GET menu items from 2nd table................
If you don't know what a CTE is or "why we will go for cte", how do you know that it's appropriate to use one for your problem? Before you ask those questions, you might want to take a look at "Common Table Expressions" in Books Online.
From your question, it also sounds like you may need to lookup "joins [SQL Server]" in Books Online as well as reading the article in the first link in my signature below.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply