idiotatsql
Technical User
I have 6 Tables, the first is called "Stocktype" which consist of 10 different types (electrical, plumbing, lamps, etc). I only want my query to pull a few of the stocktypes from the database but I don't know how to write it.
I've tried:
WHERE (MAXIMO.ITEM.STOCKTYPE=ELECTRICAL)AND
WHERE (MAXIMO.ITEM.STOCKTYPE=PLUMBING)AND
and I listed the one's I wanted but that didn't work.
I tried grouping them
WHERE (MAXIMO.ITEM.STOCKTYPE=(ELECTRICAL,PLUMBING,HVAC))
no good.I've tried other ways. I get #933, and other error messages.
Since I am not very good at writting can someone come to my aid and tell me how do I extract a group of items out of a table?
I've tried:
WHERE (MAXIMO.ITEM.STOCKTYPE=ELECTRICAL)AND
WHERE (MAXIMO.ITEM.STOCKTYPE=PLUMBING)AND
and I listed the one's I wanted but that didn't work.
I tried grouping them
WHERE (MAXIMO.ITEM.STOCKTYPE=(ELECTRICAL,PLUMBING,HVAC))
no good.I've tried other ways. I get #933, and other error messages.
Since I am not very good at writting can someone come to my aid and tell me how do I extract a group of items out of a table?