Grouping MySQL results -
i have following mysql query:
select * members_family_view order `agelastsept` asc
which returns following results:
i want able change data returned display purposes instead of agelastsept displaying 7 display u8's, 8 display u9's, 10 display u11's, 11 display u12's, 12 display u13's , 13 display u14's.
is possible in mysql query?
try query
select concat('u', (id+1), '\'s') name, total tbl
sql fiddle:
| name | total | ---------------- | u2's | 50 | | u3's | 55 | | u4's | 89 |
Comments
Post a Comment