I don't know if I can do a query such as this. Could someone please help...
SELECT
B.name "Boat name",
(CASE WHEN B.motor_sail="S" THEN "Sail boat"
WHEN B.motor_sail="S" THEN "Motor boat"
WHEN B.motor_sail="S" THEN "Paddle boat"
ELSE "Unknown" END),
IF(B.age=0,"NEW",B.age) "Years old",
B.colour "Colour",
CONCAT(B.length_m,".",B.length_cm," m") "Length (METRIC)",
CONCAT(B.length_ft,"ft ",B.length_in,"in") "Length (IMPERIAL)",
CONCAT(A.fname," ",A.lname) "Seller"
FROM be_customer A, be_ad B
ORDER BY A.lname,B.ad_id;
Thanks,
Robert
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php