8 Dec 2022

157

Advanced MySQL Query: How to Optimize Your Database

Format: APA

Academic level: College

Paper type: Assignment

Words: 88

Pages: 2

Downloads: 0

MySQL Workbench was used to access the world_x database and retrieve data from it. 

List of codes for countries where English is spoken by more than 30% of the population. 

Query 

SELECT `country`.`Code` 

FROM `world_x`.`country` 

INNER JOIN `countrylanguage` 

ON `country`.`Code` = `countrylanguage`.`CountryCode` 

WHERE `countrylanguage`.`Language` = 'English' AND `countrylanguage`.`Percentage` > 30.0 

ORDER BY `country`.`Code` ASC; 

Result Dataset 

Figure 1. A screen shot of the query and the results. 

List of codes for countries where English is spoken by less than 30% of the population. 

Query 

SELECT `country`.`Code` 

FROM `world_x`.`country` 

INNER JOIN `countrylanguage` 

ON `country`.`Code` = `countrylanguage`.`CountryCode` 

WHERE `countrylanguage`.`Language` = 'English' AND `countrylanguage`.`Percentage` < 30.0 

ORDER BY `country`.`Code` ASC 

LIMIT 20; 

Result Dataset 

Figure 2. A screen shot of the query and the results. 

References 

Forta B. (2012). Sams Teach Yourself SQL in 10 Minutes. Indianapolis, IN: Sams Publishing 

Sheldon R. & Moeg G. (2005). Beginning MySQL. Indianapolis, IN: Wiley & Sons 

It’s time to jumpstart your paper!

Delegate your assignment to our experts and they will do the rest.

Get custom essay
Illustration
Cite this page

Select style:

Reference

StudyBounty. (2023, September 16). Advanced MySQL Query: How to Optimize Your Database.
https://studybounty.com/advanced-mysql-query-how-to-optimize-your-database-assignment

illustration

Related essays

We post free essay examples for college on a regular basis. Stay in the know!

Security Implication of the Internet of Things

The Internet of Things (IoT) can be described as s system of interconnected devices that have the ability to transfer information over a computer network without the need of human-to-computer or human-to-human...

Words: 892

Pages: 3

Views: 96

Modern Day Attacks Against Firewalls and VPNs

Introduction The need to have an enhanced security of the computer connectivity happens to be one of the reasons that attract companies and organizations towards wide usage of VPNs. Several simple techniques...

Words: 2025

Pages: 7

Views: 134

How to Deploy and Administer Windows Server 2012

Securing a reliable, and expandable configuration for a company is important to build a strong network. The new and enhanced features of the Windows Server 2012 can be used to implement the network. In this...

Words: 1673

Pages: 6

Views: 87

Deployment Model in Cloud Computing

Deployment model is a representation of a cloud environment primarily distinguished by parameters such as accessibility, proprietorship, and storage size. The National Institute of Standards and Technology gives the...

Words: 254

Pages: 1

Views: 81

How to Use Web Search Engines for Business Research

The advancement of technology has made it possible for many people around the world to have easy access to information whenever they want. The development of the Wide World Web-enabled different kinds of information...

Words: 773

Pages: 3

Views: 86

Distributed Database Management System (DDBMS)

Introduction Data management has been a headache to many technology enthusiasts for quite a long period of time. They have successfully managed to logically collect interrelated data and share it. If the data is...

Words: 799

Pages: 3

Views: 127

illustration

Running out of time?

Entrust your assignment to proficient writers and receive TOP-quality paper before the deadline is over.

Illustration