Re: deleting unwanted rows

2005-10-05 Thread Merlin
[EMAIL PROTECTED] wrote: Merlin <[EMAIL PROTECTED]> wrote on 10/04/2005 10:58:21 AM: > [EMAIL PROTECTED] wrote: > > > > > > > Merlin <[EMAIL PROTECTED]> wrote on 10/04/2005 10:21:00 AM: > > > > > Hi there, > > > > > > I just discovered, that I do have some old rows I do not need > > anymore.

Re: deleting unwanted rows

2005-10-04 Thread Peter Brawley
Merlin, Ouch, brain cramp, make that... SELECT id FROM table1 LEFT JOIN table2 ON table1.id=table2.table1_id WHERE table2.table1_id IS NULL; PB - Merlin wrote: Hi there, I just discovered, that I do have some old rows I do not need anymore. A result from forgeting to empty the table b

Re: deleting unwanted rows

2005-10-04 Thread Peter Brawley
Merlin, >I just discovered, that I do have some old rows I do not need anymore. >A result from forgeting to empty the table before starting to go into production :-) >However, I do try to find the rows which are not asociated with another table in >order to delete them. I have 2 tables: table1

Re: deleting unwanted rows

2005-10-04 Thread SGreen
Merlin <[EMAIL PROTECTED]> wrote on 10/04/2005 10:58:21 AM: > [EMAIL PROTECTED] wrote: > > > > > > > Merlin <[EMAIL PROTECTED]> wrote on 10/04/2005 10:21:00 AM: > > > > > Hi there, > > > > > > I just discovered, that I do have some old rows I do not need > > anymore. A > > > result from forgetin

Re: deleting unwanted rows

2005-10-04 Thread SGreen
Merlin <[EMAIL PROTECTED]> wrote on 10/04/2005 10:21:00 AM: > Hi there, > > I just discovered, that I do have some old rows I do not need anymore. A > result from forgeting to empty the table before starting to go into > production :-) > However, I do try to find the rows which are not asociat