Results 1 to 4 of 4

Thread: selecting certain items

  1. #1

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    selecting certain items

    hey,

    I have the following table which keeps track of items in a kit.
    fields: kitid, inventoryid, qty.

    I want to pull out kitids that have 2 items in them (7845 and 6340).
    I can do it if either one is in them but can't get to show only ones that have both items in them.

    Thanks,

    MA
    Don't anthropomorphize computers -- they hate it

  2. #2
    Junior Member
    Join Date
    Mar 2007
    Posts
    23

    Re: selecting certain items

    are you using an SQL query?

  3. #3
    PowerPoster gavio's Avatar
    Join Date
    Feb 2006
    Location
    GMT+1
    Posts
    4,462

    Re: selecting certain items

    Code:
    SELECT *
    FROM SOMETABLE
    WHERE KITID=7845
    OR KITID=6340
    ... if i understand you correctly.

  4. #4
    Junior Member
    Join Date
    Mar 2007
    Posts
    23

    Re: selecting certain items

    SELECT *
    FROM SOMETABLE
    WHERE KITID=7845
    OR KITID=6340
    How can KITID have both items in it?
    Can you give me a sample of both items being in it?

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