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
COUNT DISTINCT doesn't work?
Daniel Serodio
2006-12-13 12:46:19.0
select count (distinct dt_venc) from parcelas

gives:

Syntax error: Stopped parse at distinct

Am I using the wrong syntax, or is this feature not implemented in HXTT DBF? If this is the case, do you plan to implement it? Thanks.
Re:COUNT DISTINCT doesn't work?
HXTT Support
2006-12-13 17:15:26.0
>select count (distinct dt_venc) from parcelas
Try
select distinct on (dt_venc) count(dt_venc) from parcelas

Re:Re:COUNT DISTINCT doesn't work?
Daniel Serodio
2007-04-03 07:17:02.0
This does not work, it returns the same result as
select count(*) from parcelas

I had to use
select count(*) from (select distinct dt_venc from parcelas)

I'd really like to use the standard (and easier to read) form:
select count (distinct dt_venc) from parcelas
Re:Re:Re:COUNT DISTINCT doesn't work?
HXTT Support
2007-04-05 22:21:33.0
>select count(*) from (select distinct dt_venc from parcelas)
Now select distinct on (dt_venc) count(dt_venc) from parcelas will return your expectant result. You can download that supported package now.

>I'd really like to use the standard (and easier to read) form:
>select count (distinct dt_venc) from parcelas
Mysql is using your suggested syntax, and HXTT DBF is using a syntax like PostgreSQL.



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