Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
asad.lte
Starting Member
32 Posts |
Posted - 2010-05-06 : 08:03:45
|
| Hi experts,Tell me is it possible to write a CTE query with respect to two tables.i have two structures i was asked to write a query by taking two structures like 1st structure id=territoryid of 2nd structure.there are amny hierarchies i need to display the output as the first record in the table shud b null bcoz he is the president for example and the hierarchy follows upto 11.i shud display the lowest level for the particular id in hierarchy .hope this help u guys.if not i wud try to add some extra thingsthnx |
|
|
Lumbago
Norsk Yak Master
3271 Posts |
Posted - 2010-05-06 : 08:14:30
|
| Yes.Can you be more specific?- LumbagoIf the facts don't fit the theory, change the facts. Albert Einstein |
 |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2010-05-06 : 08:47:48
|
please give table structure, sample data and wanted output. No, you're never too old to Yak'n'Roll if you're too young to die. |
 |
|
|
|
|
|