Find Jobs
Hire Freelancers

Advanced SQL - Displaying Heirarchial Data

$20-100 USD

Closed
Posted over 19 years ago

$20-100 USD

Paid on delivery
I am trying to display a heirarchial category structure from a single table in my database. The database consists of the following fields: category_id, category_name, category_parent_id. The depth should (preferrably) be unlimited. Although I would prefer to generate everything with a single SQL query - I am open to using a series of functions in ASP if this is not possible. I would also be open to developing a new category structure that is more efficient (if there is such a thing). Here are the operations that I need to perform: (1) Display heirarchial list of categories for building a DHTML menu system - obviously I would need to know the level of each category. (2) Count # of products in all categories off a particular branch. I have a separate table that stores the category-product associations. (3) Generate a list of all child categories and their full lineage. This would apply to generating a navigational path on a category page (i.e. Home > Category > Subcat > Child) - it would also apply to generating a list of all children to be placed in a selectable form menu. Does this make sense? Contact me if you have questions. Thanks!
Project ID: 8481

About the project

9 proposals
Remote project
Active 17 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs

About the client

Flag of UNITED STATES
Carmel, United States
4.9
22
Payment method verified
Member since Jun 16, 2004

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.