Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  HXTT Cobol v5.0
  HXTT DBF v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
  HXTT Word v1.1
  HXTT XML v4.0
Offshore Outsourcing
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Heng Xing Tian Tai Lab of Xi'an City (abbr, HXTT)

HXTT DBF
OrderBy must be in selection-list
Fernando Hartmann
2009-05-11 07:43:27
Hello, we are registered user of Hxtt and we have one application that access SQL Server, Oracle and Postgres, and now I'm in the process to use Hxtt too, but one query os the application is the following:

SELECT Sales FROM Sale GROUP BY Sales ORDER BY sum(Quantity)

When whe run it, we receive the following error:

Exception in thread "main" java.sql.SQLException: The aggregate function SUM(Quantity) should be in select-list.
at com.hxtt.global.SQLState.SQLException(Unknown Source)
at com.hxtt.sql.df.a(Unknown Source)
at com.hxtt.sql.df.a(Unknown Source)
at com.hxtt.sql.df.a(Unknown Source)
at com.hxtt.sql.df.a(Unknown Source)
at com.hxtt.sql.bn.a(Unknown Source)
at com.hxtt.sql.bn.a(Unknown Source)
at com.hxtt.sql.ag.a(Unknown Source)
at com.hxtt.sql.dh.executeQuery(Unknown Source)

If i put the "Quantity" field in the selection list the query works.
But, can this behavior changed ? In the other databases that we access the the order criteria must not be in the selection list, and, for me specific case, is very hard tho change the application.
Thanks for your time.

Re:OrderBy must be in selection-list
HXTT Support
2009-05-12 08:31:49
Supported. Please download the latest package.
Re:Re:OrderBy must be in selection-list
Fernando Hartmann
2009-05-12 17:12:26
The update worked like a charm
Thanks for your always quick responses.


Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Refund | Sitemap