Código SQL [-]Select Count(Distinct(Codigo)) From MiTabla;
Select Count(Distinct(Codigo)) From MiTabla;