
CodePudding user response:
Select count (*) from (select distinct MMSI from table) aBe a bit slow SQL
Best to build the number of tables to save the ship
CodePudding user response:
Select count (MMSl) from table group by MMSl;CodePudding user response:
Select count (*) from (select distinct MMSI from table) aCodePudding user response:
Select count (MMSl) from table group by MMSl;