This test-case works for me with version 1.3.175:
create table t1 (dat DATETIME NULL DEFAULT CURRENT_TIMESTAMP, item int);
insert into t1(item) values (1);
insert into t1(item) values (1);
insert into t1(item) values (2);
insert into t1(item) values (2);
select * from t1 where dat in (select max(dat) from t1 group by item);
So unless you have a self-contained test case, I cannot help you.
On 2014-02-12 11:37, Alex wrote:
latest version 1.3.175 has this issue.
On Wednesday, February 12, 2014 9:37:46 AM UTC+1, Noel Grandin wrote:
What version are you using?
Because this is working for me with latest version.
On 2014-02-12 08:25, Alex wrote:
> hi,
>
> there is a field in a table
>
> dat DATETIME NULL DEFAULT CURRENT_TIMESTAMP
>
>
> select max(dat) from t1
> group by item
>
> gives a expected result, however
>
> select * from t1 where dat in ( select max(dat) from t1
> group by item)
>
> returns full t1
>
> --
> You received this message because you are subscribed to the Google Groups "H2
Database" group.
> To unsubscribe from this group and stop receiving emails from it, send
an email to
[email protected] <javascript:>.
> To post to this group, send email to [email protected]
<javascript:>.
> Visit this group at http://groups.google.com/group/h2-database.
> For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/groups/opt_out.