Weather Observation Station 4

Sort by

recency

|

1422 Discussions

|

  • + 0 comments

    In this, we will count the number of CITY and number of DISTINCT CITY and then substract it.

    SELECT count(city) - count(DISTINCT city) FROM station;

  • + 1 comment

    select count(*) - count(distinct city) from station;

    count(*) -> count the total no. of city count(distinct city) -> count of distinct city.

  • + 0 comments

    SELECT COUNT(CITY) - COUNT(DISTINCT CITY) FROM STATION;

  • + 0 comments

    SELECT COUNT(CITY)-COUNT(DISTINCT CITY) FROM STATION;

  • + 0 comments

    SELECT COUNT(*)-COUNT(DISTINCT CITY) FROM STATION;

    MY SQL