Hi,
I have a table which stores log traffic. The table contains these
fields:
transaction_id, from, to, message, status, insertdate
For example there is a message from A send to B, when the message sent
to B it will insert new record. And when the message is read by B, it
will also insert new record.
So the records should be something like this:
transaction_id, from, to, message, status, insertdate
20081224001, A, B, stest, SENT, 2008-12-24 01:01:01
20081224001, A, B, NULL, READ, 2008-12-24 01:01:03
My question is if I want to lookup 20081224001 and expect the result to
be like this:
transaction id, from, to, message, sent, received
20081224001, A, B, stest,  2008-12-24 01:01:01, 2008-12-24 01:01:03
How to build the query then? Please help and TIA.


Willy
Soap and education are not as sudden as a massacre, but they are more
deadly in the long run. -- Mark Twain



-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/mysql?unsub=arch...@jab.org

Reply via email to