My friends at codebar opened the #sql channel in Slack.
https://codebar.slack.com/messages/CHPE04RU7
If you have any questions, you can post them here. I’ll try to be as active as possible in this channel.
Just another CUNY Academic Commons site
My friends at codebar opened the #sql channel in Slack.
https://codebar.slack.com/messages/CHPE04RU7
If you have any questions, you can post them here. I’ll try to be as active as possible in this channel.
We have finished the Introduction to SQL course. I hope you join us for the Intermediate SQL course.
Download the class notes for day 10.
We have finished the material, reviewed the material and are ready for the final.
Download the class notes for day 9.
Download the class notes for day 8.
We have finished covering new material. We only have a full review (day 9) and the final (day 10).
We are almost done. We only have one topic to cover — functions and procedures.
Download the class notes for day 7.
This is an alternative to the previous post — Installing SQL Server Express in macOS.
INSTRUCTIONS:
We continue creating, dropping and altering data objects including data types. We have three (3) more days before the final.
Download the class notes for day 6.
We have started working with data types (VARCHAR(n), INT, FLOAT, etc.) and data objects (DATABASE, SCHEMA, TABLE, etc.).
Download the class notes for day 5.
By the way, have a good π Day.
Instructions:
Application/Utilities/Terminal.app
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor
brew install docker
sudo docker pull mcr.microsoft.com/mssql/server:2017-latest
sudo docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=<YourStrong!Passw0rd>' \ -p 1433:1433 --name sql1 \ -d mcr.microsoft.com/mssql/server:2017-latest
sudo docker ps -a
sudo docker exec -it sql1 "bash"
/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P '<YourNewStrong!Passw0rd>'
QUIT
Resources
So far, we have covered how JOIN tables, built-in functions to manipulate strings, numbers and even convert numbers (currencies and dates) to strings, GROUP BY and ORDER BY clauses and the structure of a SELECT statement.
SELECT table1.field1, table1.field2, ... table2.field1, table2.field2, ... table3.field1, table3.field2, ... FROM table1 INNER|LEFT|RIGHT JOIN table2 ON table1.shared_field1 = table2.shared_field1 AND table1.shared_field2 = table2.shared_field2 ... INNER|LEFT|RIGHT JOIN table3 ON table1.shared_field1 = table3.shared_field1 AND table1.shared_field2 = table3.shared_field2 ... WHERE condition1 AND|OR condition2 AND|OR condition3 ... GROUP BY table1.field1, table1.field2, ... table2.field1, table2.field2, ... table3.field1, table3.field2, ... ORDER BY table1.field1 ASC|DESC, table1.field2 ASC|DESC, ... table2.field1 ASC|DESC, table2.field2 ASC|DESC, ... table3.field1 ASC|DESC, table3.field2 ASC|DESC, ...
Download the class notes for day 4.