[firebird-support] COUNT DISTINCT issue in Fb 2.5

2017-09-04 Thread eadbha...@yahoo.com.mx [firebird-support]
Hi there,
 

 I have this query:
 

 select a.num_part, a.cve_prov, a.cve_impo, a.des_merc
 from ctrac_clasif a
 
 where a.num_part = '0630039046';
 

 It yields this results:
 

 NUM_PART CVE_PROV CVE_IMPO DES_MERC
 = = = ==
 0630039046 3400. 19 CUBIERTA
 0630039046 3400. 19 CUBIERTA
 

 As you can see, the two resulting rows are identical. 
 

 Now I run the following aggregate query:
 

 select a.num_part,a.cve_prov,a.cve_impo,COUNT(DISTINCT a.des_merc)
 from ctrac_clasif a
 where a.num_part = '0630039046'
 group by a.num_part,a.cve_prov,a.cve_impo
 

 NUM_PART CVE_PROV CVE_IMPO COUNT
 = = = ==
 0630039046 3400. 19 2
 

 Shouldn't COUNT be equals to 1? There's only one distinct value in the 
DES_MERC column.
 

 Your help is much appreciated.
 

 Regards,
 

 Eduardo
  


Re: [firebird-support] COUNT DISTINCT issue in Fb 2.5

2017-09-04 Thread 'livius' liviusliv...@poczta.onet.pl [firebird-support]
Hi,

will be better to show sample script
create table
and insert into..
and db charset
then anyone can test this self

regards,
Karol Bieniaszewski

From: eadbha...@yahoo.com.mx [firebird-support] 
Sent: Monday, September 4, 2017 7:34 PM
To: firebird-support@yahoogroups.com 
Subject: [firebird-support] COUNT DISTINCT issue in Fb 2.5

  

Hi there,




I have this query:




select a.num_part, a.cve_prov, a.cve_impo, a.des_merc

from ctrac_clasif a


where a.num_part = '0630039046';



It yields this results:



NUM_PART CVE_PROV CVE_IMPO DES_MERC

= = = ==

0630039046 3400. 19 CUBIERTA

0630039046 3400. 19 CUBIERTA




As you can see,  the two resulting rows are identical. 




Now I run the following aggregate query:




select a.num_part,a.cve_prov,a.cve_impo,COUNT(DISTINCT a.des_merc)

from ctrac_clasif a

where a.num_part = '0630039046'

group by a.num_part,a.cve_prov,a.cve_impo


NUM_PART CVE_PROV CVE_IMPO COUNT

= = = ==

0630039046 3400. 19 2




Shouldn't COUNT be equals to 1? There's only one distinct value in the DES_MERC 
column.




Your help is much appreciated.




Regards,




Eduardo





---
Ta wiadomość została sprawdzona na obecność wirusów przez oprogramowanie 
antywirusowe Avast.
https://www.avast.com/antivirus


Re: [firebird-support] Re: FB and VPN

2017-09-04 Thread Nagy Szilveszter nagy_szilvesz...@yahoo.com [firebird-support]
 This is network problem, not Firebird problem. Make sure he ican access the 
host machine.
On Friday, September 1, 2017, 7:52:35 PM GMT+3, dres...@tbinc.com 
[firebird-support]  wrote:  
 
     

The exception they are getting is:
ISC ERROR CODE:335544721 ISC ERROR MESSAGE: Unable to complete network request 
to host "[Server Name]". Error reading data from the connection. An existing 
connection was forcibly closed by the remote host.
 Any suggestions?
Thanks in advance.
Ed Dressel  #yiv5865098149 #yiv5865098149 -- #yiv5865098149ygrp-mkp {border:1px 
solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}#yiv5865098149 
#yiv5865098149ygrp-mkp hr {border:1px solid #d8d8d8;}#yiv5865098149 
#yiv5865098149ygrp-mkp #yiv5865098149hd 
{color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 
0;}#yiv5865098149 #yiv5865098149ygrp-mkp #yiv5865098149ads 
{margin-bottom:10px;}#yiv5865098149 #yiv5865098149ygrp-mkp .yiv5865098149ad 
{padding:0 0;}#yiv5865098149 #yiv5865098149ygrp-mkp .yiv5865098149ad p 
{margin:0;}#yiv5865098149 #yiv5865098149ygrp-mkp .yiv5865098149ad a 
{color:#ff;text-decoration:none;}#yiv5865098149 #yiv5865098149ygrp-sponsor 
#yiv5865098149ygrp-lc {font-family:Arial;}#yiv5865098149 
#yiv5865098149ygrp-sponsor #yiv5865098149ygrp-lc #yiv5865098149hd {margin:10px 
0px;font-weight:700;font-size:78%;line-height:122%;}#yiv5865098149 
#yiv5865098149ygrp-sponsor #yiv5865098149ygrp-lc .yiv5865098149ad 
{margin-bottom:10px;padding:0 0;}#yiv5865098149 #yiv5865098149actions 
{font-family:Verdana;font-size:11px;padding:10px 0;}#yiv5865098149 
#yiv5865098149activity 
{background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}#yiv5865098149
 #yiv5865098149activity span {font-weight:700;}#yiv5865098149 
#yiv5865098149activity span:first-child 
{text-transform:uppercase;}#yiv5865098149 #yiv5865098149activity span a 
{color:#5085b6;text-decoration:none;}#yiv5865098149 #yiv5865098149activity span 
span {color:#ff7900;}#yiv5865098149 #yiv5865098149activity span 
.yiv5865098149underline {text-decoration:underline;}#yiv5865098149 
.yiv5865098149attach 
{clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 
0;width:400px;}#yiv5865098149 .yiv5865098149attach div a 
{text-decoration:none;}#yiv5865098149 .yiv5865098149attach img 
{border:none;padding-right:5px;}#yiv5865098149 .yiv5865098149attach label 
{display:block;margin-bottom:5px;}#yiv5865098149 .yiv5865098149attach label a 
{text-decoration:none;}#yiv5865098149 blockquote {margin:0 0 0 
4px;}#yiv5865098149 .yiv5865098149bold 
{font-family:Arial;font-size:13px;font-weight:700;}#yiv5865098149 
.yiv5865098149bold a {text-decoration:none;}#yiv5865098149 dd.yiv5865098149last 
p a {font-family:Verdana;font-weight:700;}#yiv5865098149 dd.yiv5865098149last p 
span {margin-right:10px;font-family:Verdana;font-weight:700;}#yiv5865098149 
dd.yiv5865098149last p span.yiv5865098149yshortcuts 
{margin-right:0;}#yiv5865098149 div.yiv5865098149attach-table div div a 
{text-decoration:none;}#yiv5865098149 div.yiv5865098149attach-table 
{width:400px;}#yiv5865098149 div.yiv5865098149file-title a, #yiv5865098149 
div.yiv5865098149file-title a:active, #yiv5865098149 
div.yiv5865098149file-title a:hover, #yiv5865098149 div.yiv5865098149file-title 
a:visited {text-decoration:none;}#yiv5865098149 div.yiv5865098149photo-title a, 
#yiv5865098149 div.yiv5865098149photo-title a:active, #yiv5865098149 
div.yiv5865098149photo-title a:hover, #yiv5865098149 
div.yiv5865098149photo-title a:visited {text-decoration:none;}#yiv5865098149 
div#yiv5865098149ygrp-mlmsg #yiv5865098149ygrp-msg p a 
span.yiv5865098149yshortcuts 
{font-family:Verdana;font-size:10px;font-weight:normal;}#yiv5865098149 
.yiv5865098149green {color:#628c2a;}#yiv5865098149 .yiv5865098149MsoNormal 
{margin:0 0 0 0;}#yiv5865098149 o {font-size:0;}#yiv5865098149 
#yiv5865098149photos div {float:left;width:72px;}#yiv5865098149 
#yiv5865098149photos div div {border:1px solid 
#66;min-height:62px;overflow:hidden;width:62px;}#yiv5865098149 
#yiv5865098149photos div label 
{color:#66;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}#yiv5865098149
 #yiv5865098149reco-category {font-size:77%;}#yiv5865098149 
#yiv5865098149reco-desc {font-size:77%;}#yiv5865098149 .yiv5865098149replbq 
{margin:4px;}#yiv5865098149 #yiv5865098149ygrp-actbar div a:first-child 
{margin-right:2px;padding-right:5px;}#yiv5865098149 #yiv5865098149ygrp-mlmsg 
{font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}#yiv5865098149 
#yiv5865098149ygrp-mlmsg table {font-size:inherit;font:100%;}#yiv5865098149 
#yiv5865098149ygrp-mlmsg select, #yiv5865098149 input, #yiv5865098149 textarea 
{font:99% Arial, Helvetica, clean, sans-serif;}#yiv5865098149 
#yiv5865098149ygrp-mlmsg pre, #yiv5865098149 code {font:115% 
monospace;}#yiv5865098149 #yiv5865098149ygrp-mlmsg * 
{line-height:1.22em;}#yiv5865098149 #yiv5865098149ygrp-mlmsg #yiv5865098149logo 
{padding-