I have a requirement in which i need a subquery as highlighted below:
select gtn, btn, date
from user e
join cycle c
on e.id = c.id
where gtn = '648554807' and date = (select max(date)from user e
join cycle c
on e.id = c.id
where gtn = '648554807')
group by gtn, btn, date
Can any one help me in generating the subquery as mentioned above in microstrategy?
Thanks.
select gtn, btn, date
from user e
join cycle c
on e.id = c.id
where gtn = '648554807' and date = (select max(date)from user e
join cycle c
on e.id = c.id
where gtn = '648554807')
group by gtn, btn, date
Can any one help me in generating the subquery as mentioned above in microstrategy?
Thanks.