Write SQLQuery for:
SQL TABLE:
CREATE TABLE country (
name char(50),
year char(4),
region char(60),
area decimal(10),
population decimal(11),
gdp number,
primary key (name,year)
);
INSERT INTO country (name,year,region,area,population,gdp) VALUES
('Afghanistan',1989,'Asia',647500,14825013,0.0);
INSERT INTO country (name,year,region,area,population,gdp) VALUES
('Afghanistan',1990,'Asia',647500,15862293,0.0);
INSERT INTO country (name,year,region,area,population,gdp) VALUES
('Afghanistan',1991,'Asia',647500,16450304,0.0);
INSERT INTO country (name,year,region,area,population,gdp) VALUES
('Afghanistan',1992,'Asia',647500,16095664,0.0);
INSERT INTO country (name,year,region,area,population,gdp) VALUES
('Bahrain',1989,'Middle East',620,496759,0.0);
INSERT INTO country (name,year,region,area,population,gdp) VALUES
('Bahrain',1990,'Middle East',620,520186,0.0);
INSERT INTO country (name,year,region,area,population,gdp) VALUES
('Bahrain',1991,'Middle East',620,536974,0.025);
INSERT INTO country (name,year,region,area,population,gdp) VALUES
('Bahrain',1992,'Middle East',620,551513,0.067);
INSERT INTO country (name,year,region,area,population,gdp) VALUES
('Bahrain',1993,'Middle East',620,NULL,0.03);
INSERT INTO country (name,year,region,area,population,gdp) VALUES
('Bahrain',1994,'Middle East',620,585683,0.04);
INSERT INTO country (name,year,region,area,population,gdp) VALUES
('Bahrain',1995,'Middle East',620,575925,0.022);
INSERT INTO country (name,year,region,area,population,gdp) VALUES
('Bahrain',1996,'Middle East',620,590042,-0.02);
INSERT INTO country (name,year,region,area,population,gdp) VALUES
('Bahrain',1997,'Middle East',620,603318,0.03);
INSERT INTO country (name,year,region,area,population,gdp) VALUES
('Bahrain',2005,'Middle East',620,688345,0.056);
INSERT INTO country (name,year,region,area,population,gdp) VALUES
('Bahrain',2006,'Middle East',620,698585,0.059);
INSERT INTO country (name,year,region,area,population,gdp) VALUES
('Bahrain',2007,'Middle East',620,708573,0.078);
INSERT INTO country (name,year,region,area,population,gdp) VALUES
('Bahrain',2008,'Middle East',620,708573,0.066);
INSERT INTO country (name,year,region,area,population,gdp) VALUES
('Bahrain',2009,'Middle East',620,727785,0.061);
INSERT INTO country (name,year,region,area,population,gdp) VALUES
('Bahrain',2010,'Middle East',620,738004,0.031);
select name, region from country where area>=(select sum(area) from country where region="Middle East" and year= 2005 ) group by name, region;
2.Find the region with largest population. Do not use MAX. You need to return both region and its population. (Hint: use self join)
Select region, population from country where population IN
(
SELECT population
FROM country
WHERE population NOT IN (
SELECT Smaller.population
FROM country AS Larger
JOIN country AS Smaller ON Smaller.population <
Larger.population
))
Write SQLQuery for: Find names and area of regions with area more than the total area...
The information below describes the real GDP per capita for a
country for the period from 1985 through to 2001.
If a new business cycle began in 1985, how long was this
cycle?
In which year did the peak occur? The trough occurred in which
year?
How long was the expansion? How long was the recession?
Year 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 Real GDP per Capita 6,000 6,300...
please do the new one with all the 2 steps, completed one shows
both the steps it asks for
The following tables gives the population for a country, in millions of persons, for the years 1990-2009. Forecast the population in the years 2010 and 2011 Year1990 1991 1992 1993 1994 199519961997 1998 1999 Pop250|253257260 263|266269 273276279 Year 2000 | 2001| 2002 |2003|2004 | 2005 | 2006 | 2007| 2008| 2009 Pop 282 |285 288290293296299 302 304307 The forecast for 2010...
Homework: HW 14 - Chapter 14 Score: 0 of 1 pt 4.2.77 The following tables gives the population for a country, in milions of persons, for the years 1990-2009. Forecast the population in the years 2010 and 2011. Save 11 of 13 (10 complete) HW Score: 74.36%, 9.67 of 13 pts Question Help * Year 1990 1991 | 1992 | 1993 1994 |1995 | 1996 | 1997 1998 1999 Pop T 250 T 253 257T260 T 263 266 269 T...
7. Study the table below and identify the following: a. years in which the economy expanded b. years in which the economy contracted c. peaks d. troughs Year 1998 Annual Percentage Change in Real GDP (2007 $) -3.1 2.6 5.7 5.2 2.8 4.6 Year 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 Annual Percentage Change in Real GDP (2007 $) 4.1 5.4 5.4 1.4 2.7 2.0 3.1 3.2 2.4 2.2 1.1 -2.9...
YearOMN197011266197176221972632319735051197473381975802219768360197793611978965919791092719801149919811280319821276619831242319841306419851403219861019219871005419888809198992381990105911991991819921026319931004519949747199510199199611054199711784199811560199913501200016173200116853200218508200320329200425768200526647200638458200740960200847136200938538201040305201144477201247334201344979201440855201532460201629939201728249
help please! :)
Ox- (rounded to two decimal places) 8. [-/2.22 Points] DETAILS Below is the number of disease cases for a county by year of diagnosis. Year # cases Year # cases Year #cases Year # cases 1983 11 1990 225 1997 173 200495 1984 28 1991 243 1998 137 2005 98 1985 61 1992 | 346 1999 137 2006 112 1986 73 1993 387 2000 123 2007 87 1987 136 1994 299 2001 119 1988 153 1995 249...
can
i get some help on this question please, thanks!
The values below shows the number of new stores in a coffee shop chain that opened during the years 1986 through 1994. 1986, 14 1987, 27 1988, 48 1989, 80 1990, 110 1991, 153 1992, 261 1993, 403 1994, 681 Use your TI to create two lists L1 for year, L2 for number of new stores. Then create a third list L3 which takes Ln(L2) -- the natural log of...
Because the Florida manatee population is threatened, the Florida Maatee Sanctuary Act of 1978 was enacted to protect the species. Scientists interested in the relationship between the number of manatee deaths and time collected the data shown in the table. Manatee Deaths 174 163 146 192 201 416 242 232 269 272 325 305 380 276 396 416 Manatee Deaths Year 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 Year 1991...
None of your business
Annual maxima rainfall is used in frequency analysis for hydrological design purposes. Table 1 shows the annual maxima of 1-hour rainfall duration from year 1985 until 2005 that has been processed from rainfall records of a catchment. Table 2 shows the different land use types and the corresponding area in hectare (ha) of the catchment. The IDF curve for the catchment has constant values as given in Table 3. Answer the following questions: Table 1 Year...
Using the ROUND method to find the Constant Dollars for 2012, 1984 and 1995. You may need to floor or ceiling the method. YEAR RENTAL REVENUE CPI CONSTANT 2012 DOLLARS CONSTANT 1984 DOLLARS CONSTANT 1995 DOLLARS 1984 $13,366.55 103.933 1985 $14,564.45 107.600 1986 $15,487.57 109.692 1987 $16,363.24 113.617 1988 $17,161.30 118.275 1989 $18,000.50 123.942 1990 $18.379.25 130.658 1991 $18,768.42 136.167 1992 $19,026.90 140.308 1993 $20,145.73 144.475 1994 $21,099.88 148.225 1995 $22,435.85 152.383 1996 $23,575.86 156.858 1997 $24,924.04 160.525 1998 $26,636.09 163.008 1999 $28,247.11 166.583 2000 $29,829.21 172.192 2001 $30,719.85 177.042 2002 $30,417.06 179.867 2003 $30,927.76 ...