SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Help on sql query
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

naimish
Starting Member

India
1 Posts

Posted - 04/16/2013 :  22:30:10  Show Profile  Reply with Quote
Hi all,

I got stuck in one of the customer requirement and need you all's help.

The requirement is below.

We have a ProjectPools and against any pool selection, we show list of projects and their child projects (if child projects too fall under same pool) .

But some child projects falls under different projectpool so they do not show up. Now we need to show that child projects too irrespective whether they are in same pool or different.

Please let me know if anyone wanted more detail clarification.

Project Pool - poolId

TopPool - 000100k (it has all projects)

pool1 - 000100k01

project1

project2

pool2 - 000100k02

project3

ChildProject3.1

ChildProject3.2

pool3 - 000100k03

project4

ChildProject3.3

bandi
Flowing Fount of Yak Knowledge

India
2168 Posts

Posted - 04/17/2013 :  00:26:13  Show Profile  Reply with Quote
Can you post sample input data and also expected output... and explain the logic

--
Chandu
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52249 Posts

Posted - 04/17/2013 :  00:53:56  Show Profile  Reply with Quote
how is the parent child relationship setup in the table? can you show column that contain parent child information?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000