Intermediate Structured Query Language for Data Analytics (WS231) — Day 5

After learning the hard way that SQL Server authentication is not enabled by default, we were finally able to CREATE LOGINS and USERS.

    CREATE LOGIN foo WITH PASSWORD = 'p@$$W0rd';
    CREATE USER FOR LOGIN foo;

We also learned that dropping the LOGIN before the USER will leave the USER orphan and we will not be able to drop the USER especially if the USER owns any object.

Download the class notes for day 5.

Intermediate Structured Query Language for Data Analytics (WS231) — Day 4

We continued working on normalization replacing values of cities/counties with FIPS (Federal Information Processing Standards) values for these cities/counties. We had to import data into our working database WS231. We ran into errors along the way and had to make the proper changes to normalize our data. In any case, the main part of the whole process was having fun!

Download the class notes for day 4.

Introduction to Structured Query Language for Data Analytics (SF22SQL1001) — Day 8

We are two (2) more sessions away from the SF22SQL1001 final.

We have covered lots of material —

  1. getting data from tables/views (SELECT... FROM...),
  2. joining tables/views (INNER|LEFT|RIGHT JOIN) to make larger datasets,
  3. filtering the output of queries (WHERE),
  4. ordering the output of queries (ORDER BY),
  5. grouping the output of queries when using aggregate functions (GROUP BY),
  6. adding logic to queries (CASE... WHEN... THEN... END),
  7. pushing new values into tables (INSERT INTO),
  8. deleting selected rows (DELETE FROM) from a table,
  9. deleting all rows (TRUNCATE) from a table,
  10. making data objects (CREATE),
  11. deleting objects (DROP)
  12. modifying objects (ALTER)
  13. and much more.

I hope you have been having lots of fun.

Download the class notes for day 8 — 22 pages’ worth of material.