Forums

This topic is locked

Record Display Problem

Posted 12 Feb 2004 18:59:36
1
has voted
12 Feb 2004 18:59:36 Jeff Montgomery posted:
I have two tables: for example
Customer Information
-------------------------
Name
Favorite Color ID

Color
--------
Favorite Color ID
Color


How can I display all customer names grouped by favorite color in this manner


Blue

Tom
Frank
Jim

Green

Sally
Mike
John

thanks for your help

Replies

Replied 16 Feb 2004 02:44:17
16 Feb 2004 02:44:17 Phil Shevlin replied:
This is mainly a sql question. Something like this might be what you're looking for:

<pre id=code><font face=courier size=2 id=code>
SELECT name,color
FROM customer INNER JOIN
color ON customer.colorID = color.colorID
ORDER BY color
</font id=code></pre id=code>

Reply to this topic