This one should be fun ... say I have a table that looks like this:
First Last County
John Adams Fresno
Bill Will Fresno
Jane Doe Fresno
Alex Jones Los Angeles
Pete Smith Los Angeles
Robert James Ventura
Paul Garcia Ventura
And I want the SQL to present the data like this:
First Last County
Fresno
John Adams Fresno
Bill Will Fresno
Jane Doe Fresno
Los Angeles
Alex Jones Los Angeles
Pete Smith Los Angeles
Ventura
Robert James Ventura
Paul Garcia Ventura
Maybe some kind of IIF statement for t.First ?
~Melagan
______
"It's never too late to become what you might have been.
First Last County
John Adams Fresno
Bill Will Fresno
Jane Doe Fresno
Alex Jones Los Angeles
Pete Smith Los Angeles
Robert James Ventura
Paul Garcia Ventura
And I want the SQL to present the data like this:
First Last County
Fresno
John Adams Fresno
Bill Will Fresno
Jane Doe Fresno
Los Angeles
Alex Jones Los Angeles
Pete Smith Los Angeles
Ventura
Robert James Ventura
Paul Garcia Ventura
Code:
SELECT t.First, t.Last, t.County
FROM tblLables
ORDER BY t.County
Maybe some kind of IIF statement for t.First ?
~Melagan
______
"It's never too late to become what you might have been.