Fix some misquoting
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
FROM Logins
|
FROM Logins
|
||||||
GROUP BY UserId
|
GROUP BY UserId
|
||||||
) AS Temp USING (UserId)
|
) AS Temp USING (UserId)
|
||||||
WHERE LastLogin <= 31;
|
WHERE LastLogin <= 31;
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<p>We can convert this to a simple JOIN with the magic of HAVING. HAVING is like WHERE, but applies after aggregation:</p>
|
<p>We can convert this to a simple JOIN with the magic of HAVING. HAVING is like WHERE, but applies after aggregation:</p>
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
FROM Users
|
FROM Users
|
||||||
JOIN Logins USING (UserId)
|
JOIN Logins USING (UserId)
|
||||||
GROUP BY UserId
|
GROUP BY UserId
|
||||||
HAVING LastLogin &lt;= 31;
|
HAVING LastLogin <= 31;
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<!--# include file="include/bottom.html" -->
|
<!--# include file="include/bottom.html" -->
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ chmod 700 {client,server}/private
|
|||||||
|
|
||||||
<h3>Create openssl.cnf</h3>
|
<h3>Create openssl.cnf</h3>
|
||||||
|
|
||||||
<pre><code>cat > openssl.cnf &lt;&lt;'END'
|
<pre><code>cat > openssl.cnf <<'END'
|
||||||
openssl_conf = openssl_init
|
openssl_conf = openssl_init
|
||||||
[ openssl_init ]
|
[ openssl_init ]
|
||||||
engines = engines
|
engines = engines
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ You have a table of Users and a table of Logins, with a row for each user login
|
|||||||
FROM Logins
|
FROM Logins
|
||||||
GROUP BY UserId
|
GROUP BY UserId
|
||||||
) AS Temp USING (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:
|
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
|
FROM Users
|
||||||
JOIN Logins USING (UserId)
|
JOIN Logins USING (UserId)
|
||||||
GROUP BY UserId
|
GROUP BY UserId
|
||||||
HAVING LastLogin <= 31;
|
HAVING LastLogin <= 31;
|
||||||
|
|
||||||
<!--# include file="include/bottom.html" -->
|
<!--# include file="include/bottom.html" -->
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ XXXX is still our placeholder of choice.
|
|||||||
|
|
||||||
### Create openssl.cnf
|
### Create openssl.cnf
|
||||||
|
|
||||||
cat > openssl.cnf <<'END'
|
cat > openssl.cnf <<'END'
|
||||||
openssl_conf = openssl_init
|
openssl_conf = openssl_init
|
||||||
[ openssl_init ]
|
[ openssl_init ]
|
||||||
engines = engines
|
engines = engines
|
||||||
|
|||||||
Reference in New Issue
Block a user