Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 254
  • Last Modified:

Structuring a Dropdown Menu with 14 nested levels

I am trying to build a dropdown menu with 14+ levels in coldfusion. I was directed here for an answer. Below was the response from the expert in the coldfusion section:

"14 nested levels? Then you're asking about a db query not CF. For MS SQL, the answer
probably involves CTE's.  If you ask in the MS SQL zone, I'm someone there
could answer it."

Help plz
0
timbad2021
Asked:
timbad2021
  • 2
2 Solutions
 
Raja Jegan RSQL Server DBA & ArchitectCommented:
If you want to get recursive values till 14 levels, then the sample code present under "D. Using a recursive common table expression to display two levels of recursion" in the below link might help:

http://msdn.microsoft.com/en-us/library/ms175972.aspx

Just change WHERE EmployeeLevel <= 2  to 14 to get nested values till 14 levels.
0
 
timbad2021Author Commented:
Found the answer:
http://dbtree.megalingo.com/
0
 
timbad2021Author Commented:
Yep.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now