i *think* it's what you typed between the ??'s.
try that out.
Chris Olive
DOHRS Website Administrator
[EMAIL PROTECTED]
-----Original Message-----
From: Ryan Shrout [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 19, 2000 9:34 PM
To: [EMAIL PROTECTED]
Subject: Re: Ordering by TEXT
Sorry to bother again, but can you type an example one with the substring?
<CFQUERY Datasource="DataSource" Name="Myname">
SELECT ID, Name, Title (Title is in a TEXT format)
FROM MyTable
ORDER BY ??substring(Title, 1, 10)?? ASC
</CFQUERY>
-Ryan Shrout
Power Gamerz; K7M.COM
[EMAIL PROTECTED]
----- Original Message -----
From: "Olive, Christopher M Mr USACHPPM"
<[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 19, 2000 2:55 PM
Subject: RE: Ordering by TEXT
> take a substring(1,10) of the text field, alias it, and order by that.
>
> Chris Olive
> DOHRS Website Administrator
> [EMAIL PROTECTED]
>
>
> -----Original Message-----
> From: Ryan Shrout [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 19, 2000 2:46 PM
> To: [EMAIL PROTECTED]
> Subject: Ordering by TEXT
>
>
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_0061_01BFAA0E.6D671740
> Content-Type: text/plain;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> I know that there is no simple way to accomplish this, but I need to be =
> able to sort the order of a query by the first 10 letters of a very long =
> text field (this database uses MS SQL 7). Is there anyway to do it?
>
> -Ryan Shrout
> Power Gamerz; K7M.COM
> [EMAIL PROTECTED]
>
> ------=_NextPart_000_0061_01BFAA0E.6D671740
> Content-Type: text/html;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META content=3D"text/html; charset=3Diso-8859-1" =
> http-equiv=3DContent-Type>
> <META content=3D"MSHTML 5.00.3013.2600" name=3DGENERATOR>
> <STYLE></STYLE>
> </HEAD>
> <BODY bgColor=3D#ffffff>
> <DIV><FONT face=3DArial size=3D2>I know that there is no simple way to =
> accomplish=20
> this, but I need to be able to sort the order of a query by the first 10 =
> letters=20
> of a very long text field (this database uses MS SQL 7). Is there =
> anyway=20
> to do it?</FONT></DIV>
> <DIV> </DIV>
> <DIV><FONT face=3DArial size=3D2>-Ryan Shrout<BR>Power Gamerz; =
> K7M.COM<BR><A=20
> href=3D"mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</A></FONT></DIV></BODY></HTML>
>
> ------=_NextPart_000_0061_01BFAA0E.6D671740--
>
> --------------------------------------------------------------------------
--
> --
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
> --------------------------------------------------------------------------
----
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>
----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.