Hi Team ,
I have a database where i have the index on the type of document.
I have a requirement like this
Select data.prodId , data.compId , vwTm ,a.*
from api_external a
where type = "prodVw"
group by data.prodId , data.compId
having vwTm = ( select min(vwTm) from api_external b where b.data.prodId = a.data.prodId and b.data.compId = a.data.prodId )
Means want to select all document attributes where viewtime is minimum for a prodID and compId.
The thing is we need the rest of doument attributes as well . How do we write this query ?
Thanks a lot for your time
Thanks