BaşlayınÜcretsiz Başlayın

NOT IN with IS NOT NULL

You want to know which country capitals have never been the closest city to recorded earthquakes. You decide to use NOT IN to compare Capital from the Nations table, in the outer query, with NearestPop, from the Earthquakes table, in a sub-query.

Bu egzersiz

Improving Query Performance in SQL Server

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

SELECT WorldBankRegion,
       CountryName,
       ___ -- Capital city name column
FROM Nations
WHERE Capital NOT IN
	(SELECT ___ -- City name column
     FROM Earthquakes);
Kodu Düzenle ve Çalıştır