diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..3889a9e --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,6 @@ + +# Default ignored files +/workspace.xml +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.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/dataSources.xml b/.idea/dataSources.xml new file mode 100644 index 0000000..b74254a --- /dev/null +++ b/.idea/dataSources.xml @@ -0,0 +1,11 @@ + + + + + postgresql + true + org.postgresql.Driver + jdbc:postgresql://localhost:5432/postgres + + + \ 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/sqldialects.xml b/.idea/sqldialects.xml new file mode 100644 index 0000000..6df4889 --- /dev/null +++ b/.idea/sqldialects.xml @@ -0,0 +1,6 @@ + + + + + + \ 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..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..469618b 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..72a6ff8 100644 --- a/answers/exercise11.sql +++ b/answers/exercise11.sql @@ -0,0 +1 @@ +SELECT * FROM Students as Learner; \ No newline at end of file diff --git a/answers/exercise2.sql b/answers/exercise2.sql index e69de29..32f0e46 100644 --- a/answers/exercise2.sql +++ b/answers/exercise2.sql @@ -0,0 +1 @@ +SELECT * FROM Students WHERE City SIMILAR TO '(a|c|s)%'; \ No newline at end of file diff --git a/answers/exercise3.sql b/answers/exercise3.sql index e69de29..1ed1f05 100644 --- a/answers/exercise3.sql +++ b/answers/exercise3.sql @@ -0,0 +1 @@ +SELECT * FROM Students WHERE City SIMILAR TO '[a-f]%'; \ No newline at end of file diff --git a/answers/exercise4.sql b/answers/exercise4.sql index e69de29..c3950bf 100644 --- a/answers/exercise4.sql +++ b/answers/exercise4.sql @@ -0,0 +1 @@ +SELECT * FROM Students WHERE City NOT SIMILAR TO '(a|c|s)%'; \ No newline at end of file diff --git a/answers/exercise5.sql b/answers/exercise5.sql index e69de29..e5ff9c3 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..9c7e52d 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..69ea682 100644 --- a/answers/exercise7.sql +++ b/answers/exercise7.sql @@ -0,0 +1 @@ +SELECT * FROM Courses WHERE CreditHours BETWEEN 10 AND 20 ; diff --git a/answers/exercise8.sql b/answers/exercise8.sql index e69de29..9fa9739 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..bf5742c 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