Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2006
    Location
    WA
    Posts
    1

    Question Unanswered: Query Sorting Problem

    This is a really basic sorting problem. For some reason I can't figure out how to sort by the First character in a field. For example: Creating a query to select members whose last name begins with the letter "A"

    I know this has to be an easy fix, any help???

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    sorting by the first character of a field is easy -- just ORDER BY the field

    selecting members whose last name begins with A is a different question

    ... where left(lastname,1) = 'A'
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •