Subject | Re: [firebird-support] need help on query |
---|---|
Author | Gerrit Stegehuis |
Post date | 2003-06-30T06:23:08Z |
--- Regina Phandu <regina@...> wrote:
If you want the data to be ordered, user ORDER BY when
you select data from the view.
Gerrit Stegehuis
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
> Hi,...
>
> 1. I have query like this:
>
> CREATE VIEW vTimeMaintenanceList
> AS
> SELECT FIRST 100 SKIP 0 ATTENDANCE.ADATE,
> employee.empid,
> ATTENDANCE.DateModifiedYou cannot use ORDER BY in the definition of a view.
> FROM ATTENDANCE LEFT OUTER JOIN employee ON
> ATTENDANCE.EMPID = employee.empid
> LEFT OUTER JOIN REASON ON ATTENDANCE.REASON =
> REASON.TREASON
> ORDER BY ATTENDANCE.ADATE;
>
> Is there something wrong with the above query??
> cause, I have error on
> "ORDER". Can anybody help?
>
If you want the data to be ordered, user ORDER BY when
you select data from the view.
Gerrit Stegehuis
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com