Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
9 views6 pages

Ass ADB

The document contains a series of SQL queries related to countries and their populations, languages, and official statuses. It includes queries to select specific country data, count languages, and filter results based on population and continent. The queries also involve joining tables to retrieve comprehensive information about countries and their languages.

Uploaded by

Esmael Elkot
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views6 pages

Ass ADB

The document contains a series of SQL queries related to countries and their populations, languages, and official statuses. It includes queries to select specific country data, count languages, and filter results based on population and continent. The queries also involve joining tables to retrieve comprehensive information about countries and their languages.

Uploaded by

Esmael Elkot
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Q(2) select Name , population from country where code ='ALB';

Q(4) SELECT name ,population from country where continent='Africa'

AND population>60000000;
Q(6) SELECT count(LANGUAGE)from countrylanguage where

countrycode=(SELECT code from country where name='Canada');

Q(8) SELECT count(name) from country;


Q(14) SELECT language,count(LANGUAGE) as num from
countrylanguage where isofficial='T' GROUP by LANGUAGE order by
num DESC limit 1;

Q(16) SELECT name ,Percentage from country inner join


countrylanguage on countrycode = code where isofficial ='T' AND
LANGUAGE='German' order by percentage DESC;
Q(18) SELECT c.Name , count(cl.language) from country c join
countrylanguage cl on c.Code=cl.CountryCode where cl.IsOfficial='F'
Group by c.Name;
Q(19) SELECT c.Name ,ct.Name,cl.Language from country c join city ct
on c.code=ct.CountryCode join countrylanguage cl on
c.code=cl.CountryCode where cl.IsOfficial='T';
Q(20) SELECT c.Name from country c order by c.Population DESC limit 1;

You might also like