Re: Alternative for UNION in MYSQL

2001-10-31 Thread Jeremy Zawodny
On Wed, Oct 31, 2001 at 12:44:23PM -0500, Harpreet wrote: > > 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. MySQL 4.0 has unions. But if you're

RE: Alternative for UNION

2001-10-31 Thread Christopher Book
>>Can i somehow create a temporary table and add all the rows i need and do a select query from that temp table. Yeah, that's the easiest way to do it. Create temporary table A. insert into A select insert into A select select * from A If you want to mimic 'insersect' features

RE: Alternative for UNION

2001-10-31 Thread Harpreet
Corporations Inc. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bill Adams Sent: Wednesday, October 31, 2001 1:23 PM To: [EMAIL PROTECTED] Cc: 'Mysql' Subject: Re: Alternative for UNION Harpreet wrote: > I had a view on sqlserver which i am trying

Re: Alternative for UNION

2001-10-31 Thread Bill Adams
Harpreet wrote: > 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 pa

Alternative for UNION in MYSQL

2001-10-31 Thread Harpreet
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

Alternative for UNION

2001-10-31 Thread Harpreet
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