Making a SQL 2000 SP - SQL 2005 Compatible

  • I am finding difficult to translate the below query to replace

    *= with LEFT OUTER JOIN Syntax.

    Idea is to make it SQL 2005 Compatible.

    SELECT count(*)

    FROMt_Prod,

    t_Prod1 l,

    t_Prod2 l_sku,

    t_Prod3 l_type

    WHERE t_Prod.SKU *= l_sku.SKU and

    t_Prod.SKU_Type_ID *= l_type.SKU_Type_ID and

    l.Code *= l_sku.Code and

    l.Code *= l_type.Code and t_Prod.SKU = 1

    Thanks in Advance.

  • Can you give us some sample data from t_Prod, 1,2 and 3? as well as some sample results?

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply