hello gays
is that any way to display a list of names starting from Bxxxx or Cxxxx or Dxxxxx to Zxxxxx ?
please advice
SELECT * FROM your_table WHERE LEFT(name_field, 1) BETWEEN 'A' AND 'B' OR LEFT(name_field, 1) BETWEEN 'D' AND 'Z'
% is a wildcard, so....
SELECT * FROM table WHERE field_name LIKE 'B%'
Where B is the first letter.
Cgraz
yeah, but "B%" doesn't give him names starting with B through D. That's what I thought he was asking.