close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Guide or Recipe for DataAssist working with Joins?

Thread began 5/24/2012 4:38 pm by Justin@AdventDesign | Last modified 6/05/2012 12:15 pm by Justin@AdventDesign | 885 views | 6 replies

Justin@AdventDesign

Just a little more help.

I've got the admin pages working great for creating and editing the related items table, but I'm struggling with the table join for the front end.

We have an item detail page that needs to display related products. There are two tables to deal with, tbProducts and tbLikeItems. Taking the URL Parameter 'partno' , the MySQL statement would need to select all items from tbProducts where tbLikeItems.ParentNo = the URL Parameter 'partno', and then select various columns from tbProducts where tbLikeItems.ChildNo = tbProducts.partno .

I know this involves a table join, but the part that confuses me is that tbProducts has to be used on both ends of the query, as the identification for primary id (partno) and then returning info from tbProducts that match in the tbLikeItems.

Can anyone give me a rough framework for the query statement?

Tables are as follows:


tbProducts
-------------
id
title
partno (product part number)
various other columns of info...

tbLikeItems
------
id
ParentNo (product part number of the primary item)
ChildNo (product part numbers of the related items to be shown)

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...