Alternative for Union in MYSQL

From: Date: Wed, 31 Oct 2001 17:45:53 +0000
Subject: Alternative for Union in MYSQL
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-13892@lists.php.net to get a copy of this message
I had a view on sqlserver which i am trying to convert to work with mysql. It uses a union which i believe does not work with mysql. What is another alternative for union. Sql with union: select a.asset_id,a.material_id,b.material_id as parent_material_id from lib_asset_tbl a inner join lib_asset_tbl b on a.parent_id=b.asset_id union select asset_id,material_id,'' from lib_asset_tbl where virtual_flag='N' Help is appreciated, Regards, Harpreet Kaur Software Developer Crispin Corporations Inc.

« previous php.db (#13892) next »