โ— LIVE
OpenAI releases GPT-5 APIIndia AI startup raises $120MBitcoin ETF hits record inflowsMeta Llama 4 benchmarks leakedOpenAI releases GPT-5 APIIndia AI startup raises $120MBitcoin ETF hits record inflowsMeta Llama 4 benchmarks leaked
๐Ÿ“… Thu, 26 Mar, 2026โœˆ๏ธ Telegram
AiFeed24

AI & Tech News

๐Ÿ”
โœˆ๏ธ Follow
๐Ÿ Home๐Ÿค–AI๐Ÿ’ปTech๐Ÿš€Startupsโ‚ฟCrypto๐Ÿ”’Security๐Ÿ‡ฎ๐Ÿ‡ณIndiaโ˜๏ธCloud๐Ÿ”ฅDeals
โœˆ๏ธ News Channel๐Ÿ›’ Deals Channel
Home/Cloud & DevOps/basic select sql queries
โ˜๏ธCloud & DevOps

basic select sql queries

Query all columns for a city in CITY with the ID 1661 select * From city where id=1661; Query all columns for all American cities in the CITY table with populations larger than 100000. The CountryCode for America is USA. Select * From city where COUNTRYCODE = 'USA' and population > 100000; Query all

โšกQuick SummaryAI generating...
S

Sharmila devi

๐Ÿ“… Mar 24, 2026ยทโฑ 2 min readยทDev.to โ†—
โœˆ๏ธ Telegram๐• TweetWhatsApp
๐Ÿ“ก

Original Source

Dev.to

https://dev.to/sharmi_sabari_09/basic-select-sql-queries-34a0
Read Full โ†—

Query all columns for a city in CITY with the ID 1661

select * From city where id=1661;

Query all columns for all American cities in the CITY table with populations larger than 100000. The CountryCode for America is USA.

Select * From city where COUNTRYCODE = 'USA' and population > 100000;

Query all attributes of every Japanese city in the CITY table. The COUNTRYCODE for Japan is JPN.

select * from city where countrycode = 'JPN';

Find the difference between the total number of CITY entries in the table and the number of distinct CITY entries in the table.

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

*Query the NAME field for all American cities in the CITY table with populations larger than 120000. The CountryCode for America is USA.
*

select NAME from city where COUNTRYCODE = 'USA' and POPULATION > 120000;

Query the names of all the Japanese cities in the CITY table. The COUNTRYCODE for Japan is JPN.

Select name from city where countrycode = 'JPN';

Query the list of CITY names from STATION that do not start with vowels. Your result cannot contain duplicates.

select distinct city
from station
where upper(left(city,1)) NOT IN ('A','E','I','O','U');

*Query all columns (attributes) for every row in the CITY table.
*

select * from city;

*Query a list of CITY and STATE from the STATION table.
*

select city,state from station;

Tags:#cloud#dev.to

Found this useful? Share it!

โœˆ๏ธ Telegram๐• TweetWhatsApp

Read the Full Story

Continue reading on Dev.to

Visit Dev.to โ†—

Related Stories

โ˜๏ธ
โ˜๏ธCloud & DevOps

I wanted shadcn/ui for Blazor. It didnโ€™t exist. So I built it.

about 19 hours ago

โ˜๏ธ
โ˜๏ธCloud & DevOps

Shipping Fast with AI? Youโ€™re Probably Shipping Vulnerabilities Too.

about 19 hours ago

Oops, I Vibecoded Again. Please Help Me! โ€” A CSS Refiner
โ˜๏ธCloud & DevOps

Oops, I Vibecoded Again. Please Help Me! โ€” A CSS Refiner

about 19 hours ago

๐Ÿ’ณ Dรฉtection de Fraude Bancaire & IA : Ma contribution au Notion MCP Challenge
โ˜๏ธCloud & DevOps

๐Ÿ’ณ Dรฉtection de Fraude Bancaire & IA : Ma contribution au Notion MCP Challenge

about 19 hours ago

๐Ÿ“ก Source Details

Dev.to

๐Ÿ“… Mar 24, 2026

๐Ÿ• 2 days ago

โฑ 2 min read

๐Ÿ—‚ Cloud & DevOps

Read Original โ†—

Web Hosting

๐ŸŒ Hostinger โ€” 80% Off Hosting

Start your website for โ‚น69/mo. Free domain + SSL included.

Claim Deal โ†’

๐Ÿ“ฌ AiFeed24 Daily

Top 5 AI & tech stories every morning. Join 40,000+ readers.

โœฆ 40,218 subscribers ยท No spam, ever

Cloud Hosting

โ˜๏ธ Vultr โ€” $100 Free Credit

Deploy cloud servers in 25+ locations. From $2.50/mo. No contract.

Claim $100 Credit โ†’
AiFeed24

India's AI-powered tech news hub. Daily coverage of AI, startups, crypto and emerging technology.

โœˆ๏ธ๐Ÿ›’

Topics

Artificial IntelligenceStartups & VCCryptocurrencyCybersecurityCloud & DevOpsIndia Tech

Company

About AiFeed24Write For UsContact

Daily Digest

Top 5 AI stories every morning. 40,000+ readers.

No spam, ever.

ยฉ 2026 AiFeed24 Media.Affiliate Disclosure โ€” We earn commission on qualifying purchases at no extra cost to you.
PrivacyTermsCookies