This is a discussion on "SUBSTRING in query" within the Databases section. This forum, and the thread "SUBSTRING in query are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
SUBSTRING in query
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
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! |
|
|
![]() |
| Tags |
| substring |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Nav bar query | Scottie | Starting Out | 10 | Jun 9th, 2008 21:23 |
| Substring Problem | daithi | Other Programming Languages | 4 | Aug 30th, 2007 12:15 |
| query about my $query | ziggi | PHP Forum | 9 | Aug 10th, 2007 14:05 |
| MySQL query query | dangergeek | Databases | 3 | Apr 12th, 2007 12:45 |
| Query | accessman | Databases | 0 | Sep 22nd, 2005 19:48 |