Query all columns for all American cities in the CITY table with populations larger than 100000. The CountryCode for America is USA.The CITY table is
Query the NAME field for all American cities in the CITY table with populations larger than 120000. The CountryCode for America is USA.The CITY table
Query all columns (attributes) for every row in the CITY table.The CITY table is described as follows:
Query all columns for a city in CITY with the ID 1661.The CITY table is described as follows:
Query all attributes of every Japanese city in the CITY table. The COUNTRYCODE for Japan is JPN.The CITY table is described as follows:
Query the names of all the Japanese cities in the CITY table. The COUNTRYCODE for Japan is JPN.The CITY table is described as follows:
Query a list of CITY and STATE from the STATION table.The STATION table is described as follows:where LAT_N is the northern latitude and LONG_W is the
Query a list of CITY names from STATION for cities that have an even ID number. Print the results in any order, but exclude duplicates from the answer
Find the difference between the total number of CITY entries in the table and the number of distinct CITY entries in the table.The STATION table is de
Query the two cities in STATION with the shortest and longest CITY names, as well as their respective lengths (i.e.: number of characters in the name)
Query the list of CITY names starting with vowels (i.e., a, e, i, o, or u) from STATION. Your result cannot contain duplicates. Input Format The STA
Query the list of CITY names ending with vowels (a, e, i, o, u) from STATION. Your result cannot contain duplicates. Input Format The STATION table
Query the list of CITY names from STATION which have vowels (i.e., a, e, i, o, and u) as both their first and last characters. Your result cannot cont
Query the list of CITY names from STATION that do not start with vowels. Your result cannot contain duplicates. Input Format The STATION table is de
Query the list of CITY names from STATION that do not end with vowels. Your result cannot contain duplicates. Input Format The STATION table is desc
Query the list of CITY names from STATION that either do not start with vowels or do not end with vowels. Your result cannot contain duplicates. Inpu
MySQL > Weather Observation Station 12 Query the list of CITY names from STATION that do not start with vowels and do not end with vowels. Your result
Query the Name of any student in STUDENTS who scored higher than 75 Marks. Order your output by the last three characters of each name. If two or more
Write a query that prints a list of employee names (i.e.: the name attribute) from the Employee table in alphabetical order. Input Format The Employ
Write a query that prints a list of employee names (i.e.: the name attribute) for employees in Employee having a salary greater than per month who ha
Write a query identifying the type of each record in the TRIANGLES table using its three side lengths. Output one of the following statements for each
Generate the following two result sets: Query an alphabetically ordered list of all names in OCCUPATIONS, immediately followed by the first letter of
MySQL > Occupations Pivot the Occupation column in OCCUPATIONS so that each Name is sorted alphabetically and displayed underneath its corresponding
You are given a table, BST, containing two columns: N and P, where N represents the value of a node in Binary Tree, and P is the parent of N. Write a
Amber's conglomerate corporation just acquired some new companies. Each of the companies follows this hierarchy: Given the table schemas below, write
Query a count of the number of cities in CITY having a Population larger than 100,000 Input Format The CITY table is described as follows:
Query the total population of all cities in CITY where District is California. Input Format The CITY table is described as follows:
Revising Aggregations - Averages Query the average population of all cities in CITY where District is California. Input Format The CITY table is des
Query the average population for all cities in CITY, rounded down to the nearest integer. Input Format The CITY table is described as follows:
Japan Population Query the sum of the populations for all Japanese cities in CITY. The COUNTRYCODE for Japan is JPN. Input Format The CITY table is
Population Density Difference Query the difference between the maximum and minimum populations in CITY. Input Format The CITY table is described as
Samantha was tasked with calculating the average monthly salaries for all employees in the EMPLOYEES table, but did not realize her keyboard's key wa
Top Earners We define an employee's total earnings to be their monthly salary x months worked, and the maximum total earnings to be the maximum total
Weather Observation Station 2 Query the following two values from the STATION table: The sum of all values in LAT_N rounded to a scale of 2 decimal p
Weather Observation Station 13 Query the sum of Northern Latitudes (LAT_N) from STATION having values greater than and less than 78.7880. Truncate yo
Weather Observation Station 14 Query the greatest value of the Northern Latitudes (LAT_N) from STATION that is less than 137.2345. Truncate your answe
Weather Observation Station 15 Query the Western Longitude (LONGW) for the largest Northern Latitude (LATN) in STATION that is less than . Round your
Weather Observation Station 16 Query the smallest Northern Latitude (LAT_N) from STATION that is greater than 38.7780. Round your answer to decimal
Weather Observation Station 17 Query the Western Longitude (LONGW)where the smallest Northern Latitude (LATN) in STATION is greater than 38.7780 . Ro
Weather Observation Station 18 Consider P1(a, b) and P2(a, b) to be two points on a 2D plane. -a: happens to equal the minimum value in Northern La
Weather Observation Station 19 Consider P1(a,c) and p2(b,d) to be two points on a 2D plane where (a,b) are the respective minimum and maximum values
Weather Observation Station 20 A median is defined as a number separating the higher half of a data set from the lower half. Query the median of the
Population Census Given the CITY and COUNTRY tables, query the sum of the populations of all cities where the CONTINENT is 'Asia'. Note: CITY.Countr
African Cities Given the CITY and COUNTRY tables, query the names of all cities where the CONTINENT is 'Africa'. Note: CITY.CountryCode and COUNTRY.
Average Population of Each Continent Given the CITY and COUNTRY tables, query the names of all the continents (COUNTRY.Continent) and their respectiv
You are given two tables: Students and Grades. Students contains three columns ID, Name and Marks. Grades contains the following data: Ketty gives E
Top Competitors Julia just finished conducting a coding contest, and she needs your help assembling the leaderboard! Write a query to print the respe
Ollivander's Inventory Harry Potter and his friends are at Ollivander's with Ron, finally replacing Charlie's old broken wand. Hermione decides the
Challenges Julia asked her students to create some coding challenges. Write a query to print the hackerid, name, and the total number of challenges
Contest Leaderboard You did such a great job helping Julia with her last coding contest challenge that she wants you to work on this one, too! The t
Placements You are given three tables: Students, Friends and Packages. Students contains two columns: ID and Name. Friends contains two columns: ID a
Symmetric Pairs You are given a table, Functions, containing two columns: X and Y. Two pairs (X1, Y1) and (X2, Y2) are said to be symmetric pairs if