We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
But, if I use distinct, I still get one record from each one of the duplicated records. If I not misunderstood, the problem asked me to find the total distinct cities(NUM) - the total cities that are unique (NUMunique). For me, NUMunique should not have any record that have a duplicated.
"Let NUM be no. of cities and NUMunique be no. of unique cities, then write a query to print the value of NUM - NUMunique"
Sorry if my comment is too confuse.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Weather Observation Station 4
You are viewing a single comment's thread. Return to all comments →
But, if I use distinct, I still get one record from each one of the duplicated records. If I not misunderstood, the problem asked me to find the total distinct cities(NUM) - the total cities that are unique (NUMunique). For me, NUMunique should not have any record that have a duplicated.
"Let NUM be no. of cities and NUMunique be no. of unique cities, then write a query to print the value of NUM - NUMunique" Sorry if my comment is too confuse.