Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Novice > Re: Sorting Tup...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 6 Topic 3038 of 3255
Post > Topic >>

Re: Sorting Tuples

by manolo.espa@[EMAIL PROTECTED] (Manolo) Mar 13, 2008 at 02:52 PM

Hi Brian.

That's what actually I was trying to build in order to get it.

I was thinking about 2 nested query. The inner one just sorting the
output, something like:

SELECT * FROM huge_table ORDER BY a_column_of_huge_table ASC

The outer would compare for example the current tuple with the following
one and as you said
 "If it finds an index such that a[i] > a[i+1], you know the result isn't
sorted correctly."

Could you please write to me a sort of "what should that nested query be",
please?
Remark I'm not a database user and SQL is not that fresh to me.

Thank you Brian!

> My advice would be to write a quick application that creates a cursor of

> the sorted results, and sucks them out.  If it finds an index such that 
> a[i] > a[i+1], you know the result isn't sorted correctly.
> 
> Brian


-- 
Sent via pgsql-novice mailing list (pgsql-novice@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice
 




 6 Posts in Topic:
Sorting Tuples
manolo.espa@[EMAIL PROTEC  2008-03-13 12:25:53 
Re: Sorting Tuples
sdavis2@[EMAIL PROTECTED]  2008-03-13 08:32:36 
Re: Sorting Tuples
manolo.espa@[EMAIL PROTEC  2008-03-13 14:32:12 
Re: Sorting Tuples
manolo.espa@[EMAIL PROTEC  2008-03-13 14:40:01 
Re: Sorting Tuples
manolo.espa@[EMAIL PROTEC  2008-03-13 14:52:36 
Re: Sorting Tuples
jonah.harris@[EMAIL PROTE  2008-03-13 11:11:32 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Oct 12 9:42:08 CDT 2008.