MySQL Forums
Forum List  »  Newbie

SELECT syntax
Posted by: Scott Hamm
Date: August 24, 2004 07:48AM

While creating a report, I'm trying to figure out a way to selectively select a category id in SELECT syntax like so:

SELECT
concat(associates.lastname,', ',associates.firstname) as Operator,
mrdaily.kronoshours as Hours,
mrdaily.pto as PTO,
mrcategories.id=1 mrcategories.category as MainStreet,
mrcategories.id=1 mrentries.quantity as QTY,
mrcategories.id=1 mrentries.hours as Hours,
mrcategories.id=2 mrcategories.category as QA Mainstreet,
mrcategories.id=2 mrcategories.quantity as QTY,
mrcategories.id=2 mrcategories.hours as Hours,
etc...
FROM
foo
WHERE
foo
AND


Options: ReplyQuote


Subject
Written By
Posted
SELECT syntax
August 24, 2004 07:48AM


Sorry, you can't reply to this topic. It has been closed.

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.