1
0
Fork 0
mirror of https://github.com/treffynnon/sqlstyle.guide.git synced 2025-03-09 12:49:51 -05:00

Update sqlstyle.guide.zh.md

This commit is contained in:
Matt Roy Lloyd 2017-10-26 14:19:36 +01:00 committed by GitHub
parent 5040e2c6c2
commit d726d6bd0f

View file

@ -86,8 +86,8 @@ SELECT first_name
```sql
SELECT first_name AS fn
FROM staff AS s1
JOIN students AS s2
ON s2.mentor_id = s1.staff_num;
JOIN students AS s2
ON s2.mentor_id = s1.staff_num;
```
```sql
SELECT SUM(s.monitor_tally) AS monitor_total