Subject | Re: [firebird-support] Cannot order By |
---|---|
Author | Helen Borrie |
Post date | 2003-07-08T12:23:16Z |
At 07:06 PM 8/07/2003 +0700, you wrote:
You seem to be getting the wrong error for a query that is sorting on a
date column (or is it NOT a date column?)
All things being equal, because you created the view with double-quoted
identifiers, this statement should get what you want:
Select * from "QSALDORAW" order by "DATE";
If not, I don't know what's causing the problem.
SELECT "RIN",
"IN",
"OUT",
"BALANCE",
"DATE",
"UOM",
"PRICE",
"NOTE",
"WAREHOUSECODE",
"WAREHOUSENAME",
"ITEMNAME"
from "QSALDORAW" order by 5;
heLen
>That doesn't work either,No - you can order by a column that contains nulls.
>Is it because I use the "Outer Join" Syntax ?
You seem to be getting the wrong error for a query that is sorting on a
date column (or is it NOT a date column?)
All things being equal, because you created the view with double-quoted
identifiers, this statement should get what you want:
Select * from "QSALDORAW" order by "DATE";
If not, I don't know what's causing the problem.
>Is there any other way to make my DATA ordered without that syntax (orderYes.
>by) ?
SELECT "RIN",
"IN",
"OUT",
"BALANCE",
"DATE",
"UOM",
"PRICE",
"NOTE",
"WAREHOUSECODE",
"WAREHOUSENAME",
"ITEMNAME"
from "QSALDORAW" order by 5;
heLen