Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > Putting it Together > Databases

Reply
 
LinkBack Thread Tools
Old October 11th, 2006, 03:23 PM   #1
New Member
 

Join Date: Sep 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 contiw is on a distinguished road
SUBSTRING in query

This is a query-of-query in ColdFusion and MSAccess
This works ok
<cfquery name="session.getAlpha" dbtype="query">
select distinct signerName
from session.getSigs
</cfquery>
Instead, I would like to select just the "first letter" of signerName in alphabetical order:
<cfquery name="session.getAlpha" dbtype="query">
select distinct substring(signerName,1,1) as alpha
from session.getSigs
orderby alpha
</cfquery>
and it fails. This is giving me a rough time, im just not making the query right ...
Any help much appreciated!
contiw is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
substring


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Nav bar query Scottie Your Design and Layout 10 June 9th, 2008 05:23 PM
Substring Problem daithi Other Languages 4 August 30th, 2007 08:15 AM
query about my $query ziggi PHP 9 August 10th, 2007 10:05 AM
MySQL query query dangergeek Databases 3 April 12th, 2007 08:45 AM
Query accessman Databases 0 September 22nd, 2005 03:48 PM


Search Engine Optimization by vBSEO 3.2.0 RC8