We help IT Professionals succeed at work.

MS SQL 8 Query

258 Views
Last Modified: 2012-06-21
I don't know if MSSQL 8 will do this, but here is the issue.  I am building a membership system that needs to track up to 3 levels on who recommended whom.  Here is a quick example:
Person1 signs up Person2
Person2 signs up Person3
Person3 signs up Person4
In a table I need to show that not only Person1 is resposible for Person2, but also Person3,Person4
It also needs to show that Person2 is responsible for Person3&Person4 as well as
Person3 is responsible for Person4.

I am not sure if a query will do this, any assistance would be appreciated.  By the way this is a webbased coldfusion site.



Comment
Watch Question

Sharath SData Engineer
CERTIFIED EXPERT

Commented:
Provide your data representation in the table with expected result?
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.