Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complete #31

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions answers/exercise1.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CREATE SCHEMA myNewDB;
SHOW DATABASES;
1 change: 1 addition & 0 deletions answers/exercise10.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SELECT*FROM Students WHERE City ='Philidelphia' OR City='Trenton';
1 change: 1 addition & 0 deletions answers/exercise11.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SELECT*FROM Students ORDER BY City;
1 change: 1 addition & 0 deletions answers/exercise12.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SELECT*FROM Students ORDER BY City DESC;
1 change: 1 addition & 0 deletions answers/exercise13.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SELECT*FROM Students ORDER BY Country,city;
1 change: 1 addition & 0 deletions answers/exercise14.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SELECT * FROM Students WHERE PostalCode IS NULL;
1 change: 1 addition & 0 deletions answers/exercise15.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SELECT * FROM Students WHERE PostalCode IS NOT NULL;
1 change: 1 addition & 0 deletions answers/exercise2.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP Database myNewDB;
2 changes: 2 additions & 0 deletions answers/exercise3.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CREATE TABLE USERS (USERID int,LastName varchar(255),FirstName varchar(255),Address varchar(255),City varchar(255));
describe USERS;
1 change: 1 addition & 0 deletions answers/exercise4.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP TABLE USERS;
1 change: 1 addition & 0 deletions answers/exercise5.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TRUNCATE TABLE USERS;
1 change: 1 addition & 0 deletions answers/exercise6.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE USERS ADD Birthday date;
1 change: 1 addition & 0 deletions answers/exercise7.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DELETE FROM USERS WHERE Birthday;
1 change: 1 addition & 0 deletions answers/exercise9.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SELECT * FROM Students WHERE NOT City = 'Philidelphia';