SELECT nome,
numero,
data,
texto
FROM (SELECT Row_number()
OVER(
partition BY r.registro
ORDER BY r.registro) corr,
NOME,
NUMERO,
DATA,
texto
FROM registro r) AS dados
WHERE corr = 1
Check out my new book on MySQL 5.6 http://www.amazon.com/dp/B00KSMWLH0
Nenhum comentário:
Postar um comentário
Leave your comment here!