NOSE

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 12

CREATE TABLE topmovies(

topmovies10 rows
Rank INTEGER
Title TEXT
Rank INTEGER,
Studio TEXT
Title TEXT,
Worldwide REAL
Studio TEXT,
Domestic REAL
Worldwide REAL,
DomesticPct REAL
Domestic REAL,
Overseas REAL
DomesticPct REAL,
OverseasPct REAL
Overseas REAL,
Year Integer
OverseasPct REAL,

Year INTEGER

);

/* Datos dado por Academia Khan */

INSERT INTO topmovies(Rank,Title,Studio,Worldwide,Domestic,DomesticPct,Overseas,OverseasPct,Year) VALUES


(1,'Avatar','Fox',2788.00,760.50,0.27,2027.50,0.73,2009);

INSERT INTO topmovies(Rank,Title,Studio,Worldwide,Domestic,DomesticPct,Overseas,OverseasPct,Year) VALUES


(2,'Titanic','Par.',2186.80,658.70,0.30,1528.10,0.70,1997);

INSERT INTO topmovies(Rank,Title,Studio,Worldwide,Domestic,DomesticPct,Overseas,OverseasPct,Year) VALUES (3,'Marvel''s The


Avengers','BV',1518.60,623.40,0.41,895.20,0.59,2012);

INSERT INTO topmovies(Rank,Title,Studio,Worldwide,Domestic,DomesticPct,Overseas,OverseasPct,Year) VALUES (4,'Harry Potter and the


Deathly Hallows Part 2','WB',1341.50,381.00,0.28,960.50,0.72,2011);
INSERT INTO topmovies(Rank,Title,Studio,Worldwide,Domestic,DomesticPct,Overseas,OverseasPct,Year) VALUES (5,'Furious
7','Uni.',1322.20,321.20,0.24,1001.00,0.76,2015);

INSERT INTO topmovies(Rank,Title,Studio,Worldwide,Domestic,DomesticPct,Overseas,OverseasPct,Year) VALUES


(6,'Frozen','BV',1274.20,400.70,0.31,873.50,0.69,2013);

INSERT INTO topmovies(Rank,Title,Studio,Worldwide,Domestic,DomesticPct,Overseas,OverseasPct,Year) VALUES (7,'Iron Man


3','BV',1215.40,409.00,0.34,806.40,0.66,2013);

INSERT INTO topmovies(Rank,Title,Studio,Worldwide,Domestic,DomesticPct,Overseas,OverseasPct,Year) VALUES (8,'Transformers: Dark of the


Moon','P/DW',1123.80,352.40,0.31,771.40,0.69,2011);

INSERT INTO topmovies(Rank,Title,Studio,Worldwide,Domestic,DomesticPct,Overseas,OverseasPct,Year) VALUES (9,'The Lord of the Rings: The


Return of the King','NL',1119.90,377.80,0.34,742.10,0.66,2003);

INSERT INTO topmovies(Rank,Title,Studio,Worldwide,Domestic,DomesticPct,Overseas,OverseasPct,Year) VALUES


(10,'Skyfall','Sony',1108.60,304.40,0.28,804.20,0.73,2012);
SELECT * FROM topmovies;

Ran Domesti OverseasPc


Title Studio Worldwide DomesticPct Overseas Year
k c t

1 Avatar Fox 2788 760.5 0.27 2027.5 0.73 2009


2 Titanic Par. 2186.8 658.7 0.3 1528.1 0.7 1997
Marvel's The
3 BV 1518.6 623.4 0.41 895.2 0.59 2012
Avengers
Harry Potter and
4 the Deathly WB 1341.5 381 0.28 960.5 0.72 2011
Hallows Part 2
5 Furious 7 Uni. 1322.2 321.2 0.24 1001 0.76 2015
6 Frozen BV 1274.2 400.7 0.31 873.5 0.69 2013
7 Iron Man 3 BV 1215.4 409 0.34 806.4 0.66 2013
Transformers:
8 P/DW 1123.8 352.4 0.31 771.4 0.69 2011
Dark of the Moon
The Lord of the
Rings: The
9 NL 1119.9 377.8 0.34 742.1 0.66 2003
Return of the
King
10 Skyfall Sony 1108.6 304.4 0.28 804.2 0.73 2012
SELECT * FROM topmovies WHERE Rank = 8;

Ran Domesti OverseasPc


Title Studio Worldwide DomesticPct Overseas Year
k c t

Transformers:
8 P/DW 1123.8 352.4 0.31 771.4 0.69 2011
Dark of the Moon

SELECT * FROM topmovies WHERE Rank != 6;

Domesti Oversea
Rank Title Studio Worldwide DomesticPct OverseasPct Year
c s

1 Avatar Fox 2788 760.5 0.27 2027.5 0.73 2009


2 Titanic Par. 2186.8 658.7 0.3 1528.1 0.7 1997
3 Marvel's The Avengers BV 1518.6 623.4 0.41 895.2 0.59 2012
Harry Potter and the
4 WB 1341.5 381 0.28 960.5 0.72 2011
Deathly Hallows Part 2
5 Furious 7 Uni. 1322.2 321.2 0.24 1001 0.76 2015
7 Iron Man 3 BV 1215.4 409 0.34 806.4 0.66 2013
Transformers: Dark of the
8 P/DW 1123.8 352.4 0.31 771.4 0.69 2011
Moon
The Lord of the Rings: The
9 NL 1119.9 377.8 0.34 742.1 0.66 2003
Return of the King
Domesti Oversea
Rank Title Studio Worldwide DomesticPct OverseasPct Year
c s

10 Skyfall Sony 1108.6 304.4 0.28 804.2 0.73 2012

SELECT * FROM topmovies WHERE Rank < 8;

Worldwid
Rank Title Studio Domestic DomesticPct Overseas OverseasPct Year
e

1 Avatar Fox 2788 760.5 0.27 2027.5 0.73 2009


2 Titanic Par. 2186.8 658.7 0.3 1528.1 0.7 1997
Marvel's
3 The BV 1518.6 623.4 0.41 895.2 0.59 2012
Avengers
Harry
Potter and
the
4 WB 1341.5 381 0.28 960.5 0.72 2011
Deathly
Hallows
Part 2
5 Furious 7 Uni. 1322.2 321.2 0.24 1001 0.76 2015
6 Frozen BV 1274.2 400.7 0.31 873.5 0.69 2013
7 Iron Man 3 BV 1215.4 409 0.34 806.4 0.66 2013
SELECT * FROM topmovies WHERE Rank > 6;

Ran Domesti OverseasPc


Title Studio Worldwide DomesticPct Overseas Year
k c t

7 Iron Man 3 BV 1215.4 409 0.34 806.4 0.66 2013


Transformers:
8 P/DW 1123.8 352.4 0.31 771.4 0.69 2011
Dark of the Moon
The Lord of the
Rings: The
9 NL 1119.9 377.8 0.34 742.1 0.66 2003
Return of the
King
10 Skyfall Sony 1108.6 304.4 0.28 804.2 0.73 2012

SELECT * FROM topmovies WHERE Rank <= 8;


Ran Domesti OverseasPc
Title Studio Worldwide DomesticPct Overseas Year
k c t

1 Avatar Fox 2788 760.5 0.27 2027.5 0.73 2009


2 Titanic Par. 2186.8 658.7 0.3 1528.1 0.7 1997
Marvel's The
3 BV 1518.6 623.4 0.41 895.2 0.59 2012
Avengers
Harry Potter and
4 the Deathly WB 1341.5 381 0.28 960.5 0.72 2011
Hallows Part 2
5 Furious 7 Uni. 1322.2 321.2 0.24 1001 0.76 2015
6 Frozen BV 1274.2 400.7 0.31 873.5 0.69 2013
7 Iron Man 3 BV 1215.4 409 0.34 806.4 0.66 2013
Transformers:
8 P/DW 1123.8 352.4 0.31 771.4 0.69 2011
Dark of the Moon

SELECT * FROM topmovies WHERE Rank >= 8;

Ran Domesti OverseasPc


Title Studio Worldwide DomesticPct Overseas Year
k c t

Transformers:
8 P/DW 1123.8 352.4 0.31 771.4 0.69 2011
Dark of the Moon
Ran Domesti OverseasPc
Title Studio Worldwide DomesticPct Overseas Year
k c t

The Lord of the


Rings: The
9 NL 1119.9 377.8 0.34 742.1 0.66 2003
Return of the
King
10 Skyfall Sony 1108.6 304.4 0.28 804.2 0.73 2012

SELECT * FROM topmovies WHERE Title IN ("Skyfall", "Iron Man 3");

Ran Studi Oversea


Title Worldwide Domestic DomesticPct OverseasPct Year
k o s

Iron Man
7 BV 1215.4 409 0.34 806.4 0.66 2013
3
10 Skyfall Sony 1108.6 304.4 0.28 804.2 0.73 2012

SELECT * FROM topmovies WHERE Title NOT IN ("Skyfall", "Iron Man 3" );
Ran Domesti OverseasPc
Title Studio Worldwide DomesticPct Overseas Year
k c t

1 Avatar Fox 2788 760.5 0.27 2027.5 0.73 2009


2 Titanic Par. 2186.8 658.7 0.3 1528.1 0.7 1997
Marvel's The
3 BV 1518.6 623.4 0.41 895.2 0.59 2012
Avengers
Harry Potter and
4 the Deathly WB 1341.5 381 0.28 960.5 0.72 2011
Hallows Part 2
5 Furious 7 Uni. 1322.2 321.2 0.24 1001 0.76 2015
6 Frozen BV 1274.2 400.7 0.31 873.5 0.69 2013
Transformers:
8 P/DW 1123.8 352.4 0.31 771.4 0.69 2011
Dark of the Moon
The Lord of the
9 NL 1119.9 377.8 0.34 742.1 0.66 2003
Rings: The King

SELECT * FROM topmovies WHERE Rank NOT BETWEEN 5 AND 8;

Worldwid
Rank Title Studio Domestic DomesticPct Overseas OverseasPct Year
e

1 Avatar Fox 2788 760.5 0.27 2027.5 0.73 2009


2 Titanic Par. 2186.8 658.7 0.3 1528.1 0.7 1997
Worldwid
Rank Title Studio Domestic DomesticPct Overseas OverseasPct Year
e

Marvel's
3 The BV 1518.6 623.4 0.41 895.2 0.59 2012
Avengers
Harry
Potter and
the
4 WB 1341.5 381 0.28 960.5 0.72 2011
Deathly
Hallows
Part 2
The Lord
of the
9 Rings: The NL 1119.9 377.8 0.34 742.1 0.66 2003
Return of
the King

SELECT * FROM topmovies WHERE Rank BETWEEN 3 AND 8;

Ran Domesti OverseasPc


Title Studio Worldwide DomesticPct Overseas Year
k c t

Marvel's The
3 BV 1518.6 623.4 0.41 895.2 0.59 2012
Avengers
4 Harry Potter and WB 1341.5 381 0.28 960.5 0.72 2011
the Deathly
Ran Domesti OverseasPc
Title Studio Worldwide DomesticPct Overseas Year
k c t

Hallows Part 2
5 Furious 7 Uni. 1322.2 321.2 0.24 1001 0.76 2015
6 Frozen BV 1274.2 400.7 0.31 873.5 0.69 2013
7 Iron Man 3 BV 1215.4 409 0.34 806.4 0.66 2013
Transformers:
8 P/DW 1123.8 352.4 0.31 771.4 0.69 2011
Dark of the Moon

SELECT * FROM topmovies WHERE Rank IS NULL;

NOT FOUND

SELECT * FROM topmovies WHERE Rank IS NOT NULL;


Ran Domesti OverseasPc
Title Studio Worldwide DomesticPct Overseas Year
k c t

1 Avatar Fox 2788 760.5 0.27 2027.5 0.73 2009


2 Titanic Par. 2186.8 658.7 0.3 1528.1 0.7 1997
Marvel's The
3 BV 1518.6 623.4 0.41 895.2 0.59 2012
Avengers
Harry Potter and
4 the Deathly WB 1341.5 381 0.28 960.5 0.72 2011
Hallows Part 2
5 Furious 7 Uni. 1322.2 321.2 0.24 1001 0.76 2015
6 Frozen BV 1274.2 400.7 0.31 873.5 0.69 2013
7 Iron Man 3 BV 1215.4 409 0.34 806.4 0.66 2013
Transformers:
8 P/DW 1123.8 352.4 0.31 771.4 0.69 2011
Dark of the Moon
The Lord of the
Rings: The
9 NL 1119.9 377.8 0.34 742.1 0.66 2003
Return of the
King
10 Skyfall Sony 1108.6 304.4 0.28 804.2 0.73 2012

You might also like