diff --git a/2011-11-29-converting-subselects-to-joins-part-2.html b/2011-11-29-converting-subselects-to-joins-part-2.html index 40fb4e6..983513c 100644 --- a/2011-11-29-converting-subselects-to-joins-part-2.html +++ b/2011-11-29-converting-subselects-to-joins-part-2.html @@ -18,7 +18,7 @@ FROM Logins GROUP BY UserId ) AS Temp USING (UserId) - WHERE LastLogin <= 31; + WHERE LastLogin <= 31;
We can convert this to a simple JOIN with the magic of HAVING. HAVING is like WHERE, but applies after aggregation:
@@ -29,7 +29,7 @@ FROM Users JOIN Logins USING (UserId) GROUP BY UserId - HAVING LastLogin <= 31; + HAVING LastLogin <= 31; diff --git a/2016-03-27-ec-ca-redux-now-with-more-nitrokey.html b/2016-03-27-ec-ca-redux-now-with-more-nitrokey.html index 3a9b44e..61b616f 100644 --- a/2016-03-27-ec-ca-redux-now-with-more-nitrokey.html +++ b/2016-03-27-ec-ca-redux-now-with-more-nitrokey.html @@ -26,7 +26,7 @@ chmod 700 {client,server}/privatecat > openssl.cnf <<'END'
+cat > openssl.cnf <<'END'
openssl_conf = openssl_init
[ openssl_init ]
engines = engines
diff --git a/markdown/2011-11-29-converting-subselects-to-joins-part-2.md b/markdown/2011-11-29-converting-subselects-to-joins-part-2.md
index 5eb3f29..a8dc7bf 100644
--- a/markdown/2011-11-29-converting-subselects-to-joins-part-2.md
+++ b/markdown/2011-11-29-converting-subselects-to-joins-part-2.md
@@ -18,7 +18,7 @@ You have a table of Users and a table of Logins, with a row for each user login
FROM Logins
GROUP BY UserId
) AS Temp USING (UserId)
- WHERE LastLogin <= 31;
+ WHERE LastLogin <= 31;
We can convert this to a simple JOIN with the magic of HAVING. HAVING is like WHERE, but applies after aggregation:
@@ -28,6 +28,6 @@ We can convert this to a simple JOIN with the magic of HAVING. HAVING is like WH
FROM Users
JOIN Logins USING (UserId)
GROUP BY UserId
- HAVING LastLogin <= 31;
+ HAVING LastLogin <= 31;
diff --git a/markdown/2016-03-27-ec-ca-redux-now-with-more-nitrokey.md b/markdown/2016-03-27-ec-ca-redux-now-with-more-nitrokey.md
index 59ed4de..5c238c8 100644
--- a/markdown/2016-03-27-ec-ca-redux-now-with-more-nitrokey.md
+++ b/markdown/2016-03-27-ec-ca-redux-now-with-more-nitrokey.md
@@ -25,7 +25,7 @@ XXXX is still our placeholder of choice.
### Create openssl.cnf
- cat > openssl.cnf <<'END'
+ cat > openssl.cnf <<'END'
openssl_conf = openssl_init
[ openssl_init ]
engines = engines