Hello all - I need help (obviously since i'm posting).
I need to be able to show a db folder path given a "release". Any given release will have 5 or 6 layers above it.
example: Release > Department > Year > Month > Release and the way that the database shows it is via a "RF_PATH"
ex: AAAAAUAAAAAOAAAAAA every layer is 3 letters so
1. AAA
2. AAU
3. AAA
4. AAO
5. AAA
6. AAA
So to get the first layer I would do a query:
to get the next layer i would do
So this is what I have:
where RF_PATH is the release path. What I need to do is then take that RF_PATH and break it down and return the entire folder path. The issue is that the length varies (could be 3 folders upto 6 folders)
Also I'd like the result to be in one column and to look like:
Any ideas?
- Matt
"If I must boast, I will boast of the things that show my weakness"
- Windows 2003 Server, 98 SE, XP
- VB.NET, VSTS 2010, ASP.NET, EXCEL VBA, ACCESS, SQL 2008
I need to be able to show a db folder path given a "release". Any given release will have 5 or 6 layers above it.
example: Release > Department > Year > Month > Release and the way that the database shows it is via a "RF_PATH"
ex: AAAAAUAAAAAOAAAAAA every layer is 3 letters so
1. AAA
2. AAU
3. AAA
4. AAO
5. AAA
6. AAA
So to get the first layer I would do a query:
Code:
select RF_NAME where RF_PATH = 'AAA'
Code:
select RF_NAME where RF_PATH = 'AAAAAU'
So this is what I have:
Code:
SELECT REL_NAME, RF_PATH
FROM RELEASES, RELEASE_FOLDERS
WHERE REL_ID = RF_ID
where RF_PATH is the release path. What I need to do is then take that RF_PATH and break it down and return the entire folder path. The issue is that the length varies (could be 3 folders upto 6 folders)
Also I'd like the result to be in one column and to look like:
"Release > Department > Year > Month"
Any ideas?
- Matt
"If I must boast, I will boast of the things that show my weakness"
- Windows 2003 Server, 98 SE, XP
- VB.NET, VSTS 2010, ASP.NET, EXCEL VBA, ACCESS, SQL 2008