Full outer join

2006-03-19 Thread Maurice van Peursem

Hello,

I like to have a full outer join. if you have the following tables:

t1:
id | val
 1 |  A
 2 |  B

t2:
id | val
 1 |  B
 2 |  C

SELECT t1.id, t2.id, t1.val FROM t1 FULL OUTER JOIN t2 ON t1.val=t2.val
ORDER BY t1.id,t2.id

I want to get the following result (and in this order):

t1.id | t2.id | t1.val
  1   |  NULL |   A
  2   |   1   |   B
 NULL |   2   |   C

As far as I can tell this is not possible in MySQL. Is there a way to 
construct a MySQL statement that produces this result?


Maurice

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



MySQL database design documentation

2006-01-05 Thread Maurice van Peursem

Hi,

I'm sure this is a stupid question, but I haven't been able to find 
it myself. Surely there must be a free PHP utility to 
web-administrate a MySQL database? I use CocoaMySQL 
(http://cocoamysql.sourceforge.net/) on my own Mac, but it isn't 
suitable for online databases. Can anyone lead me in the right 
direction?


Thanks,
Maurice van Peursem
The Netherlands

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



MySQL database design documentation

2005-11-27 Thread Maurice van Peursem

Hi,

I'm relatively new to the database-scene. I've installed MySQL on Mac 
OSX 10.3, which was easy. I've installed Perl support for MySQL, 
which was suprisingly difficult. I've installed CocoaMySQL 
(http://cocoamysql.sourceforge.net/) to create, inspect and backup 
databases. And now I'm building my first database, and that is not as 
easy as I had hoped. I know that use of the 'JOIN' keyword can save 
me pages of Perl code, but how it works exactly is not yet clear to 
me.


Therefore I'm looking for a book, or maybe other documentation (on 
the web?), that can point me in the right direction. More 
specifically, I'm looking for a book that explains how to design and 
build databases, with examples of the queries in MySQL. Most books 
describe how you install MySQL, and list the SQL commands, but this 
information I already have. Can any of you suggest to me some helpful 
learning material?


Thanks,
Maurice van Peursem
The Netherlands

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]