mirror of
https://github.com/treffynnon/sqlstyle.guide.git
synced 2025-03-09 12:49:51 -05:00
Merge d726d6bd0f
into 91e61111ba
This commit is contained in:
commit
ef45b92af4
6 changed files with 12 additions and 12 deletions
|
@ -95,8 +95,8 @@ SELECT first_name
|
||||||
```sql
|
```sql
|
||||||
SELECT first_name AS fn
|
SELECT first_name AS fn
|
||||||
FROM staff AS s1
|
FROM staff AS s1
|
||||||
JOIN students AS s2
|
JOIN students AS s2
|
||||||
ON s2.mentor_id = s1.staff_num;
|
ON s2.mentor_id = s1.staff_num;
|
||||||
```
|
```
|
||||||
```sql
|
```sql
|
||||||
SELECT SUM(s.monitor_tally) AS monitor_total
|
SELECT SUM(s.monitor_tally) AS monitor_total
|
||||||
|
|
|
@ -112,8 +112,8 @@ SELECT first_name
|
||||||
```sql
|
```sql
|
||||||
SELECT first_name AS fn
|
SELECT first_name AS fn
|
||||||
FROM staff AS s1
|
FROM staff AS s1
|
||||||
JOIN students AS s2
|
JOIN students AS s2
|
||||||
ON s2.mentor_id = s1.staff_num;
|
ON s2.mentor_id = s1.staff_num;
|
||||||
```
|
```
|
||||||
```sql
|
```sql
|
||||||
SELECT SUM(s.monitor_tally) AS monitor_total
|
SELECT SUM(s.monitor_tally) AS monitor_total
|
||||||
|
|
|
@ -119,8 +119,8 @@ SELECT first_name
|
||||||
```sql
|
```sql
|
||||||
SELECT first_name AS fn
|
SELECT first_name AS fn
|
||||||
FROM staff AS s1
|
FROM staff AS s1
|
||||||
JOIN students AS s2
|
JOIN students AS s2
|
||||||
ON s2.mentor_id = s1.staff_num;
|
ON s2.mentor_id = s1.staff_num;
|
||||||
```
|
```
|
||||||
```sql
|
```sql
|
||||||
SELECT SUM(s.monitor_tally) AS monitor_total
|
SELECT SUM(s.monitor_tally) AS monitor_total
|
||||||
|
|
|
@ -126,8 +126,8 @@ SELECT first_name
|
||||||
```sql
|
```sql
|
||||||
SELECT first_name AS fn
|
SELECT first_name AS fn
|
||||||
FROM staff AS s1
|
FROM staff AS s1
|
||||||
JOIN students AS s2
|
JOIN students AS s2
|
||||||
ON s2.mentor_id = s1.staff_num;
|
ON s2.mentor_id = s1.staff_num;
|
||||||
```
|
```
|
||||||
```sql
|
```sql
|
||||||
SELECT SUM(s.monitor_tally) AS monitor_total
|
SELECT SUM(s.monitor_tally) AS monitor_total
|
||||||
|
|
|
@ -86,8 +86,8 @@ SELECT first_name
|
||||||
```sql
|
```sql
|
||||||
SELECT first_name AS fn
|
SELECT first_name AS fn
|
||||||
FROM staff AS s1
|
FROM staff AS s1
|
||||||
JOIN students AS s2
|
JOIN students AS s2
|
||||||
ON s2.mentor_id = s1.staff_num;
|
ON s2.mentor_id = s1.staff_num;
|
||||||
```
|
```
|
||||||
```sql
|
```sql
|
||||||
SELECT SUM(s.monitor_tally) AS monitor_total
|
SELECT SUM(s.monitor_tally) AS monitor_total
|
||||||
|
|
|
@ -86,8 +86,8 @@ SELECT first_name
|
||||||
```sql
|
```sql
|
||||||
SELECT first_name AS fn
|
SELECT first_name AS fn
|
||||||
FROM staff AS s1
|
FROM staff AS s1
|
||||||
JOIN students AS s2
|
JOIN students AS s2
|
||||||
ON s2.mentor_id = s1.staff_num;
|
ON s2.mentor_id = s1.staff_num;
|
||||||
```
|
```
|
||||||
```sql
|
```sql
|
||||||
SELECT SUM(s.monitor_tally) AS monitor_total
|
SELECT SUM(s.monitor_tally) AS monitor_total
|
||||||
|
|
Loading…
Reference in a new issue