Hi ,
Can someone please tell me the query to display the folder name,dataid and path at the last level of folder hierarchy
Ex. Enterprise\Folder1\Folder2\Folder3
Hi,
If you have a search in this forum you will find an answer.
When posting questions, it helps those who might respond if you state whether you are using Oracle or Microsoft SQL server.
Regards
Lindsay
Lindsay DaviesInformation Systems AdministratorRESD +44 (0)1923 299 378
From: eLink Entry: Content Server LiveReports Forum [mailto:livereportsdiscussion@elinkkc.opentext.com]Sent: 13 June 2016 11:01To: eLink RecipientSubject: Query for Folder name at last level of hierarchy on SQL server
Query for Folder name at last level of hierarchy on SQL server
Posted by K, Prem Sagar On 06/13/2016 05:56 AM
[To post a comment, use the normal reply function]
Forum:
Content Server LiveReports Forum
Content Server:
Knowledge Center
Thanks Lindsay
I have tried searching but no results.
I have specified it database as SQLserver in the title.
Regards,
Prem
RE Query for Folder name at last level of hierarchy on SQL server Posted byK, Prem SagarOn 06/13/2016 10:27 AM Thanks LindsayI have tried searching but no results.I have specified it database as SQLserver in the title.Regards,Prem[To post a comment, use the normal reply function]Topic:Query for Folder name at last level of hierarchy on SQL serverForum:Content Server LiveReports ForumContent Server:Knowledge Center
Hi Prem,
Sorry, I was obviously rushing this morning and overlooked the subject line.
What version of sql server are you using?
From: eLink Entry: Content Server LiveReports Forum [mailto:livereportsdiscussion@elinkkc.opentext.com]Sent: 13 June 2016 15:28To: eLink RecipientSubject: RE Query for Folder name at last level of hierarchy on SQL server
RE Query for Folder name at last level of hierarchy on SQL server
Posted by K, Prem Sagar On 06/13/2016 10:27 AM
Topic:
Hello Lindsay,
No problem.
We are using Microsoft SQL Server 2014 - 12.0.4422.0 (X64) version
I posted an answer at the bottom of this topic which contains all you need to know.
https://knowledge.opentext.com/knowledge/llisapi.dll?func=ll&objId=62000187&objAction=viewincontainer&ShowReplyEntry=62313748#forum_topic_62313748
From: eLink Entry: Content Server LiveReports Forum [mailto:livereportsdiscussion@elinkkc.opentext.com]Sent: 13 June 2016 16:42To: eLink RecipientSubject: RE RE Query for Folder name at last level of hierarchy on SQL server
RE RE Query for Folder name at last level of hierarchy on SQL server
Posted by K, Prem Sagar On 06/13/2016 11:29 AM
Hi Lindsay,
Thanks for the info but how can we limit the records only to folders that are at the last level.
I can’t imagine what that output would look like.
I assume you want the lowest level of each branch.
How many rows are you getting back at the moment?
What is the deepest (highest number) level?
I suppose you could do something like number the rows in SubTree then compare the current row with the previous row and if the current level is not lower print it out.
Can you give me some sample output and show which rows you want to lose and which you want to display?
From: eLink Entry: Content Server LiveReports Forum [mailto:livereportsdiscussion@elinkkc.opentext.com]Sent: 13 June 2016 18:18To: eLink RecipientSubject: RE RE RE Query for Folder name at last level of hierarchy on SQL server
RE RE RE Query for Folder name at last level of hierarchy on SQL server
Posted by K, Prem Sagar On 06/13/2016 01:13 PM