MySQL Forums
Forum List  »  Newbie

Re: MSSQL to MySQL
Posted by: Kadesh Bailey
Date: April 05, 2006 11:26PM

how do I deal with the situation when "INNER JOIN Items AS i ON i.RecordID = o.ItemID " is another subquery?

I am trying to rewrite like this:
SELECT *,
Items.ItmName as ItemName,
Items.CategoryID as CategoryID,
Categories.CatName as CategoryName,
concat(Clients.FName, ' ', Clients.LName, ' (', Clients.Handle, ')') as ClientName,
ItemTypes.ItmName as ItemTypeName,
ItemTypes.RecordID as ItemTypeID
From OfferResponses

Inner Join items on Items.RecordID = OfferResponses.ItemID
Inner Join Categories on Categories.REcordID in (Select CategoryID From Items Where Items.RecordID = OfferResponses.ItemID)
Inner Join Clients on Clients.RecordID in (Select ClientID From Items Where Items.RecordID = OfferResponses.ItemID)
Inner Join ItemTypes on ItemTypes.RecordID in (Select ItmType From Items Where Items.RecordID = OfferResponses.ItemID)
ORDER BY OfferResponses.OfferDte DESC


The Inner Join that has the subquery is returning an error but how do I get that value????

I'm sorry if this is an obvious easy question - I'm...well...new! :)

Options: ReplyQuote


Subject
Written By
Posted
April 05, 2006 06:33AM
April 05, 2006 07:02AM
April 05, 2006 08:27AM
April 05, 2006 11:05AM
April 05, 2006 02:28PM
Re: MSSQL to MySQL
April 05, 2006 11:26PM
April 06, 2006 12:18PM
April 06, 2006 03:51PM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.