Well, "all" is easy... but if you click, say, "B", on the next page,

SELECT *
FROM Users
WHERE LastName LIKE 'B%'

That should get you all the records where LastName starts with B. Naturally
you'll put in a variable in your query...

WHERE LastName LIKE '#initial#%'

--Scott

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, January 26, 2001 9:13 AM
Subject: Alphabetic List


> Hi,
>
> In Yahoo address book, they have this list for finding a particular
> person easily
> by the first letter of their last name:
>
> All - A B C D E F G H I J K L M N O P Q R S T U V W X Y Z - Lists
>
> Does anyone have any insights on how the algorithm of implementing this
> feature?
>
> For example, I have a user database, and I want to use this feature to
> find
> persons whose last name start with a particular letter.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to