Viewing 3 posts - 1 through 4 (of 4 total)
It took me awhile, but I found out how to do what I wanted:
SELECT TOP (100) PERCENT MAX(DISTINCT Pontos) AS Expr2, COUNT(DISTINCT IMEI) AS Expr1, Nome, Empresa
FROM dbo.tmngo
GROUP BY...
January 15, 2010 at 6:03 pm
Thank you for pointing that out 🙂
I've now changed the field types.
And I would like to do something like this:
SELECT Pontos, IMEI, Nome, Empresa
FROM tmngo
GROUP BY...
January 15, 2010 at 4:58 pm
Hi,
Thank you both for your answers.
Here is some more info on the table:
Columns:
ID (PK, int, not null)
Pontos (int, null)
IMEI (nvarchar(50),null)
Nome(text,null)
Empresa(text,null)
What happens is that the way data is entering the database...
January 15, 2010 at 3:54 pm
Viewing 3 posts - 1 through 4 (of 4 total)