From 6ebbbd1b18800a637449bfcf5ae27b14c21e8056 Mon Sep 17 00:00:00 2001 From: Maira Botelho Date: Sun, 24 Nov 2019 14:43:07 -0500 Subject: [PATCH] lab done --- 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 + 11 files changed, 11 insertions(+) diff --git a/answers/exercise1.sql b/answers/exercise1.sql index e69de29..999b252 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..99cb733 100644 --- a/answers/exercise10.sql +++ b/answers/exercise10.sql @@ -0,0 +1 @@ +SELECT PostalCode AS ZIP FROM Students; \ No newline at end of file diff --git a/answers/exercise11.sql b/answers/exercise11.sql index e69de29..aa4ee4b 100644 --- a/answers/exercise11.sql +++ b/answers/exercise11.sql @@ -0,0 +1 @@ +SELECT Students AS Learners FROM Students; \ No newline at end of file diff --git a/answers/exercise2.sql b/answers/exercise2.sql index e69de29..ccc321a 100644 --- a/answers/exercise2.sql +++ b/answers/exercise2.sql @@ -0,0 +1 @@ +SELECT * FROM Students WHERE City LIKE '[acs]%'; \ No newline at end of file diff --git a/answers/exercise3.sql b/answers/exercise3.sql index e69de29..b89d949 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..fec8164 100644 --- a/answers/exercise4.sql +++ b/answers/exercise4.sql @@ -0,0 +1 @@ +SELECT * FROM Students WHERE City LIKE '[^acf]%'; \ No newline at end of file diff --git a/answers/exercise5.sql b/answers/exercise5.sql index e69de29..ab204d6 100644 --- a/answers/exercise5.sql +++ b/answers/exercise5.sql @@ -0,0 +1 @@ +SELECT * FROM Students WHERE City IN ('Sint Maarten', 'Haiti'); \ No newline at end of file diff --git a/answers/exercise6.sql b/answers/exercise6.sql index e69de29..64be332 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..b1da765 100644 --- a/answers/exercise9.sql +++ b/answers/exercise9.sql @@ -0,0 +1 @@ +SELECT * FROM Courses WHERE CourseName BETWEEN 'ColdFusion' AND 'Python' ORDER BY CourseName ASC; \ No newline at end of file