Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  HXTT Cobol v2.1
  HXTT DBF v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
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
   
   
   
Hongxin Technology & Trade Ltd. of Xiangtan City (abbr, HXTT)

HXTT DBF
OrderBy must be in selection-list
Fernando Hartmann
2009-05-11 07:43:27.0
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.0
Supported. Please download the latest package.
Re:Re:OrderBy must be in selection-list
Fernando Hartmann
2009-05-12 17:12:26.0
The update worked like a charm
Thanks for your always quick responses.


Search Key   Search by Last 50 Questions




Google
 

Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Email: webmaster@hxtt.com
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap