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
COUNT DISTINCT doesn't work?
Daniel Serodio
2006-12-13 12:46:19
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
>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
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
>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
 

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