[ 
https://issues.apache.org/jira/browse/DERBY-3613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588001#action_12588001
 ] 

Artur Kuś commented on DERBY-3613:
----------------------------------

Simple :

CREATE TABLE tabla_name(field varchar(10), field2 varchar(10 ));
INSERT INTO  tabla_name VALUES('first', 'first');
INSERT INTO  tabla_name VALUES('first', 'second');
SELECT DISTINCT field FROM tabla_name GROUP BY field,  field2.

I expect only one 1 row, but I get two rows.
Why??

> SELECT DISTINCT field FROM TABLE_NAME GROUP BY field,  field2
> -------------------------------------------------------------
>
>                 Key: DERBY-3613
>                 URL: https://issues.apache.org/jira/browse/DERBY-3613
>             Project: Derby
>          Issue Type: Bug
>    Affects Versions: 10.3.2.1
>         Environment: Windows XP
>            Reporter: Artur Kuś
>
> Query 'SELECT DISTINCT field FROM TABLE_NAME GROUP BY field,  field2'  not 
> work ok.
>  Distinct is ignored !!!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to