INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Using order by in a view

Using order by in a view

(OP)
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

RE: Using order by in a view

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
http://www.mirtheil.com

RE: Using order by in a view

(OP)
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
 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close