Solved

Alphabetical Navigation List

Posted on 2001-09-17
1
399 Views
Last Modified: 2010-05-18
I have a long list of items from a DB query and I want to create a navigation bar showing the alphabet with each letter highlighted if there are items begining with that letter. What is the simpliest way to compare my list to the alphabet for this purpose, or easier yet, can I design my query to return a list of all letters used. I know there must be a simple way to do this.
0
Comment
Question by:td234
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 4

Accepted Solution

by:
heddesheimer earned 50 total points
ID: 6488758
If you have a field "name" in your DB you can try this:

select LEFT(name, 1) as sort_char from table group by sort_char

will just return one record for each Alphabet letter that is in your database

hope that helps

Marian
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
This article discusses how to implement server side field validation and display customized error messages to the client.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

697 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question