Re: multiple tables with same fields

2001-10-18 Thread Jessica Tishmack
On Thu, 18 Oct 2001, Jessica Tishmack wrote: > > Jessica Tishmack wrote: > > Basically, I want to merge two tables together, then do a select on the > > resulting table.  But I want to do this without having to actually create > > a new merged table > > > > > > Perhaps you want

RE: multiple tables with same fields

2001-10-18 Thread Mike Eggleston
: David Felio Cc: [EMAIL PROTECTED] Subject: Re: multiple tables with same fields > Jessica Tishmack wrote: > Basically, I want to merge two tables together, then do a select on the > resulting table.  But I want to do this without having to actually create > a new

Re: multiple tables with same fields

2001-10-18 Thread Jessica Tishmack
> Jessica Tishmack wrote: > Basically, I want to merge two tables together, then do a select on the > resulting table.  But I want to do this without having to actually create > a new merged table > > > Perhaps you want a MERGE table? > http://www.mysql.com/doc/M/E/MERGE.html Th

RE: multiple tables with same fields

2001-10-18 Thread Chris Blessing
sa' union select * from pets2 where owner='lisa'; Jon Gardiner. -Original Message- From: Chris Blessing [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 18, 2001 1:05 PM To: Jessica Tishmack; [EMAIL PROTECTED] Subject: RE: multiple tables with same fields Same thing sti

RE: multiple tables with same fields

2001-10-18 Thread Jon Gardiner
elect * from pets2 where owner='lisa'; Jon Gardiner. -Original Message- From: Chris Blessing [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 18, 2001 1:05 PM To: Jessica Tishmack; [EMAIL PROTECTED] Subject: RE: multiple tables with same fields Same thing still applies, just

RE: multiple tables with same fields

2001-10-18 Thread Chris Blessing
Same thing still applies, just change the table names in the SQL I sent earlier. -C -Original Message- From: Jessica Tishmack [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 18, 2001 2:58 PM To: [EMAIL PROTECTED] Subject: Re: multiple tables with same fields > table pets1 >

RE: multiple tables with same fields

2001-10-18 Thread Chris Blessing
You can use the table.field notation like: select * from cats, dogs where cats.owner = 'lisa' || dogs.owner = 'lisa'; select cats.food, dogs.owner from cats, dogs; etc. etc. (note: '||' is the "or" logical operand) Good luck! -C -Original Message- From: Jessica Tishmack [mailto:[EMAIL

Re: multiple tables with same fields

2001-10-18 Thread Jessica Tishmack
> table pets1 > name foodowner > fluffypurina kim > fido kibbles lisa > > > table pets2 > name foodowner > snowy meowmix cheryl > whiskers 9lives lisa > > > Then I want to select all r