Subject | Re: [firebird-support] delete |
---|---|
Author | Kjell Rilbe |
Post date | 2009-01-09T11:59:42Z |
Sergio H. Gonzalez wrote:
Kjell
--
--------------------------------------
Kjell Rilbe
DataDIA AB
E-post: kjell@...
Telefon: 08-761 06 55
Mobil: 0733-44 24 64
> hello, I think this is a very old question, but I've been googling withWhy don't you just give it a try?
> no luck
> (probably I'm not using the right search keys?)
>
> Is this OK with FB2.1? Is there any other better way to do it? I have a
> master/detail table and I want to delete all the details from some kind of
> movement, but the kind of movement field is in the master table:
>
> DELETE FROM DETAIL
> WHERE
> (SELECT KIND_MOV FROM MASTER
> where MASTER.id = DETAIL.id) = 'SOME VALUE';
Kjell
--
--------------------------------------
Kjell Rilbe
DataDIA AB
E-post: kjell@...
Telefon: 08-761 06 55
Mobil: 0733-44 24 64