Project Detail

SQL Query - to filter parent/child tree table  

SQL Query - to filter parent/child tree table is project number 238575
posted at Freelancer.com. Click here to post your own project.

 

| More Free Trial For New Buyers
 

Status:

Selected Providers: SoftEngineer

Budget: $30-250

Created: 03/17/2008 at 15:52 EDT

Bid Count: 9

Average Bid:
$ 50

03/20/2008 at 15:52 EDT

Project Creator: digitalquilluk
Employer Rating: 10/1010/1010/1010/1010/1010/1010/1010/1010/1010/10 (11 reviews)

Bid On This Project
 

Description

I have a tree menu on a site which is database driven. The key table (shopCategory) has cat_pk, category_text, parent_pk, url.

This tree menu has varying levels (Folder|product item or Folder|Folder|Folder|Item)

Linked to this tree menu are products from table (shopItems) and items are linked to the tree menu via TDCategoryID which links to cat_pk.

I have written an SQL Query that gives me back the nodes of the tree that have items linked to them.

What I now need is someone to write me an addition to this SQL Query to give me back the tree structure. By this I mean that the shopCategory table needs not only to contain the nodes that the shopItems link to but also all their parents however many there are.

I am told this may involve recursion, therefore requires stored routines but this is beyond my SQL skills.

I will provide an SQL dump of the two tables above and the SQL Query I have (very simple stuff) and I want either that Query modifying or a stored procedure writing that does the above and instructions as to how to install it on my server.

In addition I want the result set from the query inserting into a third table (shopCategoryLive) each time the query is run. This should also drop any records in that table before updating.

Messages Posted:2 View project clarification board Post message on project clarification board

Bid On This Project
 

If you are the project creator or one of the bidders Log In for more options

 

50

1 day

03-17-2008 16:40 EDT

Hi, can do it. Recursion is needed or View structure if the MySQL version is 5.

help

 

30

1 day

03-17-2008 22:32 EDT

Please check it out the PM for more info, thanks…

help

 

50

0 days

03-17-2008 19:53 EDT

easy work.

help

 

50

1 day

03-17-2008 19:42 EDT

hace omputer since bahalavr degree, exp hi level of sql queries and stored procedures. if it is possible to do with sql i will do.if not - will do with procedure.

help

 

30

1 day

03-17-2008 23:02 EDT

Hi, please check PM, thanks.

help

 

80

2 days

03-17-2008 16:19 EDT

Hi, i have long experience in SQL , TSQL and PLSQL i have handled similar tasks plz check PM thanks, Hussien Sharaf

help

 

80

2 days

03-17-2008 16:30 EDT

Please check PM, Thanks.

help

 

50

2 days

03-18-2008 07:55 EDT

Hi, see PM please.

help

 

30

1 day

03-18-2008 06:20 EDT

(No Feedback Yet)

i can do it

help


    Bid on this Project