Ho una domanda che sembra thos:Come fare un gruppo dalla clausola con un massimo
SELECT max(insert_date),
creative_id,
creative_object
FROM rtb_creatives
WHERE adgroup_id = 'agid1608844879'
AND is_delete IN (0)
GROUP BY insert_date,
creative_id,
creative_object
Ad es Ho 4 righe: CREATIVE_ID insert_date, creative_object
june 12 a b
june13 a b
june 12 c d
june13 c d
La query sta tornando tutte le righe.
ho bisogno di tornare
june13 a b
june13 c d
Come faccio a modificare la query?
sarebbe 'group by MAX (insert_date)'? –
rimuovere insert_date dal gruppo by e riprovare e dirci cosa sta succedendo. – CRDave