question

Maya00432-1341 avatar image
0 Votes"
Maya00432-1341 asked OlafHelper-2800 commented

most famous city query SQL

Hi all,

I tried to solve the following problem. But somehow I have one problem how do I get the most 3 populated city? Do I have to use the partition over by? If yes where exactly?



100703-image.png



100657-image.png


sql-server-transact-sql
image.png (46.9 KiB)
image.png (37.4 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

At the moment I have only one city but I need three most city.

0 Votes 0 ·

That's to less on information.

Please post table design as DDL, some sample data as DML statement and the expected result.

0 Votes 0 ·

1 Answer

MiguelEscobar-3907 avatar image
0 Votes"
MiguelEscobar-3907 answered

Hey!
I've modified the tags in your post for the closest one that I could find from the list. Your original tags were related to "Power Query" and not SQL.

You can learn more about Microsoft Power Query from the link below:
https://docs.microsoft.com/en-us/power-query/power-query-what-is-power-query

Best!

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.