MySQL as the filter stupidly does not match SELECT
Hiya,
How do you get a disctinct value from one collumn only? I am basically
using it to construct a dynamic menu, and need the menu names at a level.
Items are in one table, like CATEGORY, SUBCATEGORY, SUBSUBCATEGORY,
PAGE, ID
I could just use SELECT DISCTINCT subcategory FROM placetype WHERE
category='Random'
But if this subcategory does not have any daughters then I would prefer
to do:
SELECT DISCTINCT subcategory, page, id FROM placetype WHERE
category='Random'
But this returns multiple versions becauyse of how distinct works.
Thanks,
Steve
---------------------------------------------------------------------
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