Results 1 to 2 of 2

Thread: sql help

  1. #1
    Join Date
    Jun 2005
    Posts
    5

    Unhappy sql help

    If you will notice in the bottom left hand corner the ProductCategoryName Column is producing two and three results on the same product and these products are not in the categories table, this categories table is where the ProductCategoryName is at so i am not sure what is going on here.

    I am including a photo on a url so that you may have a look at the web site.

    http://afcc1.com/sqlHELP

    ==============================================
    I NEED the ProductID , ProductCategoryName , and the CompanyID

    WHERE the companyid = @idcompany

    and Categories.Productcategoryid = 20 (0r something like this)
    =============================================

    I need someone who has knows sql to take a peek at this and let me know what i need to add or do to receive the proper result.
    Thank you!

    http://afcc1.com/sqlHELP

    Erik

  2. #2
    Join Date
    Feb 2003
    Posts
    1,048
    They all have different product ID's and product names. The ProductCategoryName is being returned multiple times because multiple products have that ProductCategoryName.

    The results are correct.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •