close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

MRT Server Behaviour with eCommerce db

Thread began 4/20/2010 4:27 pm by troyd | Last modified 4/27/2010 2:42 pm by troyd | 797 views | 4 replies

troyd

By the way. This is the LEFT JOIN I am using to get all the data into a results page, repeating region and search. This seems to be working but I'm not sure it's the proper way.

SELECT *
FROM products
LEFT JOIN productcategories ON products.ProductCategoryID=productcategories.CategoryID
LEFT JOIN RelSubCategories ON products.ProductID=RelSubCategories.ProdSubProdID
ORDER BY products.ProductName


This joins the main "products" table, the "productscategories" table and the "RelSubCategories" table.

Basically it selects everything from the products table and then joins the CategoryName column in the productscategories table to the ProductCategoryID column in the products table in the first part. And the ProductID to the SubCategories in the the second part.
Is this at all correct?

In the case of the Sub Categories, there may be more than one for each record. So I still need to figure out how to display that. Right now it just shows two of the same record (If two subs are assigned) in the repeat region with the Sub Category ID being the only difference between the two.

One last questions. For the Update and Delete for this type of setup. Do I add a second delete behavior to remove the data for the relational table at the same time the deleted record is removed from the first table?

Thanks,
TroyD

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...