× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
slavakiev reported Oct 27, 2013  · SachinPrakash last modified Oct 28, 2013

Issue if existing alias in WHAT is not used in HAVING clause


Dev
Emil Goicovici
emil.goicovici
QA
Jenny Nishimura
JennyNishimura
Priority Low
Complexity Unknown
Component MongoSQL
Version Future - .9

Tested in Aqua Data Studio 14.0.3-4 Build #: 34540 on Ubuntu 12.04( Mongo DB 2.4.3) 

This issue comming from ticket 10269

drop collection orddate

go
insert into orddate(dates,funds) values(isoDate('2012-12-12T19:18:12.977Z'),10)
go
insert into orddate(dates,funds) values(isoDate('2012-12-13T19:18:12.977Z'),11)
go
insert into orddate(dates,funds) values(isoDate('2012-10-14T19:18:12.977Z'),1)
go
insert into orddate(dates,funds) values(isoDate('2012-10-2T19:18:12.977Z'),5)
go
 
select dates d from orddate where month(dates) between 1 and 12 group by dates having month(dates) between 1 and 12
--The expression 'month(dates)' should appear among the SELECT fields.
go
Witout alias works correct:
select dates from orddate where month(dates) between 1 and 12 group by dates having month(dates) between 1 and 12
go
With using alias also works correct
select dates d from orddate where month(dates) between 1 and 12 group by dates having month(d) between 1 and 12
go

 

SachinPrakash   Oct 28, 2013
Field Old Value New Value
QA Assignee tariqrahiman (Tariq Rahiman) JennyNishimura (Jenny Nishimura)

Issue #10603

Closed
 
 
Completion
No due date
No fixed build
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017