AMB Posted May 24, 2012 at 08:41 AM Report #457781 Posted May 24, 2012 at 08:41 AM Bom dia a todos... gostaria de saber como consigo verificar se tenho registos duplicados na base dados, tendo em conta que para isso pelo menos 4 campos tem de ser iguais. E como posso agrupar esses mesmos registos. Obrigada
M6 Posted May 24, 2012 at 08:49 AM Report #457784 Posted May 24, 2012 at 08:49 AM O que pretendes fazer? Pretendes fazer uma limpeza de dados ou pretendes apenas fazer um Group By? 10 REM Generation 48K! 20 INPUT "URL:", A$ 30 IF A$(1 TO 4) = "HTTP" THEN PRINT "400 Bad Request": GOTO 50 40 PRINT "404 Not Found" 50 PRINT "./M6 @ Portugal a Programar."
AMB Posted May 24, 2012 at 09:16 AM Author Report #457787 Posted May 24, 2012 at 09:16 AM Pretendo fazer um grupo by.
paulaldiano Posted May 30, 2012 at 03:56 PM Report #459200 Posted May 30, 2012 at 03:56 PM Qualquer coisa deste género? SELECT ref,qtt, COUNT(*) FROM bi GROUP BY ref,qtt HAVING COUNT(*) > 1 Tens de por as quatro colunas (se bem entendi), no group by.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now