Query

  • Thread starter Thread starter Frank Dulk
  • Start date Start date
F

Frank Dulk

I have a file with the fields: I number cellular, I model, name customer, I
address customer, Zip code customer, cpf customer, neighborhood, uf, address
gives and Zip code gives.
I need a query that swallows me more than 2 number cellular for a same
address and with different CPF.
I made the query->
In (SELECT [numerocelular] FROM [ALL] TMP GROUP BY [numerocelular].
[enderecoentrega] HAVING Count (*) >2 And [enderecoentrega]=[ALL] .
[enderecoentrega])

But I didn't still get what wanted
 
try this

SELECT NumeroCelular, cpf , Count(NumeroCelular) FROM Table
GROUP BY NumeroCelular, cpf
WHERE Count(NumeroCelular)>1

- Raoul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

A SOLUTION FOR THAT QUERY 2
Average Query 6
Query question? 3
Unique values in a query 2
Union Query 1
Query not showing certain records 5
Copy Visible Sheets into one Workbook 3
Total appointments per agent 2

Back
Top