I have one table customers which has one field 'name' with a to z names records.
I get records from a to z with asc query
SELECT * FROM `customers` ORDER BY name ASC
But how can i get 5 records which starts with all a to z alphabets with only one query?
Output:
a
a
a
a
a
b
b
b
b
b and so on to z. Thanks in advance.