Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using order by in a view

Status
Not open for further replies.

rewob65

Technical User
Nov 13, 2004
110
0
0
GB
I am new to sql but pasted the sql from cystal into a pervasive sql command and it ran.

I then made it into a view and it does not like the "order by". Does order by work in pervasive sql views or is there another way?

Thanks
 
What version of PSQL are you using?
What's the exact error being returned?
How are you creating the view (what's the actual SQL statement)?
The following works for me using PSQL v10.10:
Code:
create view view1 as select * from class order by name#
select * from view1

Mirtheil
Certified Pervasive Developer
Certified Pervasive Technician
 
Version 9.00.066.000

The View is :-

CREATE VIEW ME AS
SELECT "SUND__B6Price_Table"."PTABPrice_Table_No", "SUND__B6Price_Table"."DESCDescription"
FROM "SUND__B6Price_Table" "SUND__B6Price_Table"
ORDER BY "SUND__B6Price_Table"."PTABPrice_Table_No

and the error shows first a load of text about links then:-

order<<???>> By "SUND__B6Price_Table"

This is just a simple report but seems to dislike the order function. I have read the order can be in the select area but I do not understand the syntax
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top