I have two tables in a database called info table one is called fred, table two is called george. both tables have the same feilds and feild names. I need to JOIN the two to create a search that looks at both tables. so far so good. the tables do NOT have any feilds that contain the same data. so
SELECT * FROM info.fred LEFT JOIN info.george ON (info.fred.feildname = info.george.feildname) ;
won't work....as no feilds contain the same data
so....I tired
SELECT * FROM info.fred LEFT JOIN info.george ON (info.fred.feildname <> info.george.feildname);
But that seemed to really piss off the server. (these tables are about 5000 lines each with about 256 feilds each) The feild name I used contained a alphanumeric value....
Both tables have a feild named ID. The basic idea here is that a seacrh is performed by th euser, and the ID of the search is saved in a session. The session is then passed to a new statment that requires both tables be seacrhed for those ID values. So the whole statment would end up like:
SELECT * FROM info.fred LEFT JOIN info.george ON (info.fred.feildname <> info.george.feildname) WHERE ID = 'variable';
I suppose what i'm really looking for here is to "stack" the tables on top of each other...as opposed to joining them left or right.
I'm off rtfm now....hopefully i can find it in there, but jic i cant any help would be appreciated....