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.
- Prepare
- SQL
- Basic Select
- Japanese Cities' Names
- Discussions
Japanese Cities' Names
Japanese Cities' Names
Sort by
recency
|
379 Discussions
|
Please Login in order to post a comment
SELECT NAME FROM CITY WHERE CountryCode = 'JPN';
-- MS SQL Server
select NAME from CITY where COUNTRYCODE = 'JPN';
SELECT NAME FROM CITY WHERE CountryCode = 'JPN';
Query the names of all the Japanese cities in the CITY table. The COUNTRYCODE for Japan is JPN.
To query just the names of all Japanese cities from the
CITY
table, where theCOUNTRYCODE
for Japan is 'JPN', you can use the following SQL query:In this query: -
SELECT NAME
specifies that you only want to retrieve theNAME
field from theCITY
table. -FROM CITY
indicates the table from which you are querying. - TheWHERE CountryCode = 'JPN'
clause filters the results to include only cities that have the country code 'JPN', which corresponds to Japan.SELECT Name FROM City https://sportzfyy.net/ CountryCode = 'JPN'