Results 1 to 6 of 6

Thread: Creating an Inventory Query

  1. #1
    Join Date
    Dec 2008
    Posts
    5

    Default Creating an Inventory Query

    I am trying to create an inventory report. I have been able to get everything I need except the complete SKU with color and size modifiers. If anyone has done this, could you please provide info on how you did it. Here is my query so far, in case anyone would like to do the same.

    SELECT Product.ProductID, Product.SKU, ProductVariant.SKUSuffix, Product.Published, Product.Name, Inventory.Color, Inventory.Size, Inventory.Quan, Manufacturer.Name , ProductVariant.Colors, ProductVariant.ColorSKUModifiers, ProductVariant.Sizes, ProductVariant.SizeSKUModifiers
    FROM Product INNER JOIN
    ProductVariant ON Product.ProductID = ProductVariant.ProductID INNER JOIN
    ProductManufacturer ON Product.ProductID = ProductManufacturer.ProductID INNER JOIN
    Manufacturer ON ProductManufacturer.ManufacturerID = Manufacturer.ManufacturerID LEFT OUTER JOIN
    Inventory ON ProductVariant.VariantID = Inventory.VariantID
    ORDER BY Manufacturer.Name, Product.SKU

  2. #2
    Join Date
    Apr 2010
    Posts
    333

    Default

    Are you sku's a combination of the product sku and the product variant sku?

  3. #3
    Join Date
    Dec 2008
    Posts
    5

    Default

    It would be a combination of the Product SKU and SKU modifier from the variant attribute page.

  4. #4
    Join Date
    Feb 2010
    Location
    Lancaster, PA
    Posts
    142

    Default

    Quote Originally Posted by dfultz View Post
    It would be a combination of the Product SKU and SKU modifier from the variant attribute page.

    Don't forget to take Color and Size SKU modifiers into consideration.

  5. #5
    Join Date
    Dec 2008
    Posts
    5

    Default

    Quote Originally Posted by sduffy77 View Post
    Don't forget to take Color and Size SKU modifiers into consideration.
    That is the whole purpose of this thread, the variant SKU modifier is easy to get, the part I am struggling with is the attribute modifier (i.e. Color and Size).

  6. #6
    Join Date
    Jan 2011
    Posts
    1

    Default

    We are in need of the same info. Did you ever figure this out?

    Thanks,

    Andy

Posting Permissions

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