Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread GROUP BY with first char
Tue, Apr 28 2009 5:28 AMPermanent Link

"Mauro Botta"
Hi

i'm a newbie of SQL Smile

I need a SELECT with GROUP BY on first char of field.

like this : SELECT * from clients GROUP BY LEFT('NAME',1)

EDB 2

Any Hint ?
Tue, Apr 28 2009 12:27 PMPermanent Link

"James Relyea"
> I need a SELECT with GROUP BY on first char of field.
>=20
> like this : SELECT * from clients GROUP BY LEFT('NAME',1)


This looks like it worked for me: SELECT * from clients GROUP BY =
LEFT("NAME",1)

Try changing your apostrophes to quotation marks.

Smile
jr
Image