From 1010c3b63f89169e0ec946294573a2243a95e76f Mon Sep 17 00:00:00 2001 From: jeanvalentin51 Date: Wed, 27 Nov 2019 08:00:47 -0500 Subject: [PATCH] finished lab --- .idea/.gitignore | 3 +++ .idea/SQL.GiveMeTheGoods.iml | 9 +++++++++ .idea/misc.xml | 6 ++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ answers/exercise1.sql | 1 + answers/exercise10.sql | 1 + answers/exercise11.sql | 1 + answers/exercise2.sql | 1 + answers/exercise3.sql | 1 + answers/exercise4.sql | 1 + answers/exercise5.sql | 1 + answers/exercise6.sql | 1 + answers/exercise7.sql | 1 + answers/exercise8.sql | 1 + answers/exercise9.sql | 1 + 16 files changed, 43 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/SQL.GiveMeTheGoods.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..0e40fe8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ + +# Default ignored files +/workspace.xml \ No newline at end of file diff --git a/.idea/SQL.GiveMeTheGoods.iml b/.idea/SQL.GiveMeTheGoods.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/SQL.GiveMeTheGoods.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..28a804d --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..4448e79 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/answers/exercise1.sql b/answers/exercise1.sql index e69de29..01e6f49 100644 --- a/answers/exercise1.sql +++ b/answers/exercise1.sql @@ -0,0 +1 @@ +SELECT * FROM Students WHERE city LIKE "_a%"; \ No newline at end of file diff --git a/answers/exercise10.sql b/answers/exercise10.sql index e69de29..db249d2 100644 --- a/answers/exercise10.sql +++ b/answers/exercise10.sql @@ -0,0 +1 @@ +SELECT name, address, city, postalcode AS zip, country FROM Students; \ No newline at end of file diff --git a/answers/exercise11.sql b/answers/exercise11.sql index e69de29..7f83a33 100644 --- a/answers/exercise11.sql +++ b/answers/exercise11.sql @@ -0,0 +1 @@ +SELECT * FROM Students as Leaners ; \ No newline at end of file diff --git a/answers/exercise2.sql b/answers/exercise2.sql index e69de29..9690cff 100644 --- a/answers/exercise2.sql +++ b/answers/exercise2.sql @@ -0,0 +1 @@ +SELECT * FROM Students WHERE city LIKE '[pbc]%'; \ No newline at end of file diff --git a/answers/exercise3.sql b/answers/exercise3.sql index e69de29..bfee20f 100644 --- a/answers/exercise3.sql +++ b/answers/exercise3.sql @@ -0,0 +1 @@ +SELECT * FROM Students WHERE city LIKE '[a-f]%'; \ No newline at end of file diff --git a/answers/exercise4.sql b/answers/exercise4.sql index e69de29..223eb3e 100644 --- a/answers/exercise4.sql +++ b/answers/exercise4.sql @@ -0,0 +1 @@ +SELECT * FROM Students WHERE city NOT LIKE '[acf]%'; diff --git a/answers/exercise5.sql b/answers/exercise5.sql index e69de29..7f4dd1f 100644 --- a/answers/exercise5.sql +++ b/answers/exercise5.sql @@ -0,0 +1 @@ +SELECT * FROM Students WHERE country IN ('Sint Maarten','Haiti'); \ No newline at end of file diff --git a/answers/exercise6.sql b/answers/exercise6.sql index e69de29..6cf2094 100644 --- a/answers/exercise6.sql +++ b/answers/exercise6.sql @@ -0,0 +1 @@ +SELECT * FROM Students WHERE country NOT IN ('Sint Maarten','Haiti'); \ No newline at end of file diff --git a/answers/exercise7.sql b/answers/exercise7.sql index e69de29..1873626 100644 --- a/answers/exercise7.sql +++ b/answers/exercise7.sql @@ -0,0 +1 @@ +SELECT * FROM Courses WHERE CreditHours BETWEEN 10 AND 20; \ No newline at end of file diff --git a/answers/exercise8.sql b/answers/exercise8.sql index e69de29..dcdd679 100644 --- a/answers/exercise8.sql +++ b/answers/exercise8.sql @@ -0,0 +1 @@ +SELECT * FROM Courses WHERE CreditHours NOT BETWEEN 10 AND 20; \ No newline at end of file diff --git a/answers/exercise9.sql b/answers/exercise9.sql index e69de29..74343a1 100644 --- a/answers/exercise9.sql +++ b/answers/exercise9.sql @@ -0,0 +1 @@ +SELECT * FROM Courses WHERE CourseName BETWEEN 'ColdFusion' AND 'Python' ORDER BY CourseName; \ No newline at end of file