DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: need help with write a sql query

  1. #1
    Join Date
    Oct 2008
    Posts
    2

    Angry need help with write a sql query

    hello i need some help plz...

    i have 3 tables : category, productcategory,products

    category

    int cat id

    int parent

    varcher title

    int lft

    int rgt

    categortproducts

    int prct

    int product_id

    int cat_id

    products

    int product_id

    varcher product title



    the category table is stored as Hierarchical Data.

    i need query that get : category id, category rgt , category lft

    and show all the products that have cat_id that his rgt and lft is between the rgt and lft that we receive



    sorry on my english .. its in improvement level

    help me plz

    thx

  2. #2
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    well what have you come up with so far

  3. #3
    Join Date
    Oct 2008
    Posts
    2
    i am arranged thx

Posting Permissions

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


Click Here to Expand Forum to Full Width