Hello,
Es können mehrere Datensätze mit demselben Namen vorkommen, jedoch immer mit unterschiedlichem ts_create-Wert.
seh ich nen Wald vor lauter Bäumen nicht? Das ist doch das Paradebeispiel für ein GROUP BY, einmal gruppieren und auf die zweite Spalte eine Aggregation.
SELECT name, MAX(ts_create) AS maxcreate
FROM table
GROUP BY name
MfG
Rouven
--
-------------------
sh:| fo:} ch:? rl:( br:& n4:{ ie:| mo:} va:) js:| de:] zu:| fl:( ss:) ls:& (SelfCode)
"I wish it need not have happened in my time" - "So do I, and so do all who live to see such times. But that is not for them to decide. All we have to decide is what to do with the time that is given us." -- J.R.R. Tolkien: "The Lord Of The Rings: The Fellowship Of The Ring"
-------------------
sh:| fo:} ch:? rl:( br:& n4:{ ie:| mo:} va:) js:| de:] zu:| fl:( ss:) ls:& (SelfCode)
"I wish it need not have happened in my time" - "So do I, and so do all who live to see such times. But that is not for them to decide. All we have to decide is what to do with the time that is given us." -- J.R.R. Tolkien: "The Lord Of The Rings: The Fellowship Of The Ring"