November 27th, 2000, 11:27 AM
-
I want to join can1 and can2 and have tried everything. Is there anyone that can help.
Thanks in advance.
Digjen
November 28th, 2000, 05:15 AM
-
SELECT can1.one+can2.one as one, can1.fraganr as fraganr FROM can1,can2 ORDER BY can ASC;
There's no real relation between the tables, though, so any join can give you different results each time.
---John Holmes...
------------------
*************************************************************
* The manual can probably answer 90% of your questions...
*
* PHP Manual. www.php.net/manual
* MySQL Manual: www.mysql.com/documentation/mysql/bychapter
*************************************************************
[This message has been edited by SepodatiCreations (edited November 28, 2000).]
November 28th, 2000, 05:21 AM
-
Since the tables can1 and can2 have nothing in common but the column names, there's no way of doing that. Add a column in each table that 'categorizes' the rows, so that they have something in common, and you'll be there.
An alternative is to use a temporary table with an xtra column for the grouping values, then first select into that table from can1 & can2, then update the temporary table and set the xtra column to some category value based on for example the value of column one.
It not very efficient, but it could work...
/NoXcuz