Find Jobs
Hire Freelancers

Advanced SQL - Displaying Heirarchial Data

$20-100 USD

Ditutup
Dibuat lebih dari 19 tahun yang lalu

$20-100 USD

Dibayar ketika dikirim
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!
ID Proyek: 8481

Tentang proyek

9 proposal
Proyek remot
Aktif 17 tahun yang lalu

Ingin menghasilkan uang?

Keuntungan menawar di Freelancer

Tentukan anggaran dan garis waktu Anda
Dapatkan bayaran atas pekerjaan Anda
Uraikan proposal Anda
Gratis mendaftar dan menawar pekerjaan

Tentang klien

Bendera UNITED STATES
Carmel, United States
4,9
22
Memverifikasi Metode pembayaran
Anggota sejak Jun 16, 2004

Verifikasi Klien

Terima kasih! Kami telah mengirim Anda email untuk mengklaim kredit gratis Anda.
Anda sesuatu yang salah saat mengirimkan Anda email. Silakan coba lagi.
Pengguna Terdaftar Total Pekerjaan Terpasang
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuat pratinjau
Izin diberikan untuk Geolokasi.
Sesi login Anda telah kedaluwarsa dan Anda sudah keluar. Silakan login kembali.