Takker det virkede
SELECT orders.orders_id FROM orders LEFT JOIN order_done ON
orders.orders_id=order_done.orders_id WHERE order_done.orders_id IS NULL AND
orders.orders_status = 4
"Peter Brodersen" <usenet@ter.dk> wrote in message
news:cp7vii$1no$1@katie.ellegaard.dk...
> On Tue, 7 Dec 2004 23:16:44 +0100, "Anders" <ratata10@hotmail.com>
> wrote:
>
>>Jeg vil gerne have de ordre numre der er i orders.orders_id som ikke er i
>>order_done.orders_id
>
> Kig på de første eksempler på:
>
http://dev.mysql.com/doc/mysql/en/Rewriting_subqueries.html
>
> Bl.a. eksemplet:
> SELECT table1.* FROM table1 LEFT JOIN table2 ON table1.id=table2.id
> WHERE table2.id IS NULL;
>
> --
> - Peter Brodersen