I'm trying to see if this is possible. I have an employee table that
contains employee ID and manager ID. I'm trying to string together the
complete hierarchy for an employee in one row. So, if you have employee ID
1
reports to 2. Employee 2 reports to 3, then the result would be:
EmployeeID ReportingTo
1 2/3
Is this possible using nested sets? Can someone please give me some samples
of this?Have you searched google groups to see if there are solutions for similar
problems? If not look for "Joe Celko"+"nested sets".
Anith|||Susannah,
You should find a few useful things here:
http://groups.google.co.uk/groups? ...er+itzi
k
Steve Kass
Drew University
Susannah wrote:
>I'm trying to see if this is possible. I have an employee table that
>contains employee ID and manager ID. I'm trying to string together the
>complete hierarchy for an employee in one row. So, if you have employee ID
1
>reports to 2. Employee 2 reports to 3, then the result would be:
>EmployeeID ReportingTo
>1 2/3
>Is this possible using nested sets? Can someone please give me some sample
s
>of this?
>
Showing posts with label string. Show all posts
Showing posts with label string. Show all posts
Wednesday, March 21, 2012
Monday, February 20, 2012
Need to write a stored procedure
Hi,
I need to write a stored procedure to check if the string = "web_version" exists in another string called FromCode.
The stored procedure accepts 2 parameters like this:
Create proc [dbo].[spGetPeerFromCode]( @.FromCode VARCHAR(50)) (@.WebVersionString VARCHAR(50))as
please assist.
Check Books On Line for theSubstring function.
Subscribe to:
Posts (Atom)