|
<html><head> |
|
<style> |
|
body { font-family: Arial, sans-serif; margin: 20px; } |
|
h1 { text-align: center; } |
|
.cot-title { color: blue; } |
|
.pos-title { color: green; } |
|
h2 { color: black; text-align: left; } |
|
h3 { color: black; text-align: left; } |
|
h4 { color: darkslategray; } |
|
table { width: 100%; border-collapse: collapse; margin: 20px 0; } |
|
table, th, td { border: 1px solid #ddd; padding: 8px; } |
|
th { background-color: #f2f2f2; } |
|
tr:nth-child(even) { background-color: #f9f9f9; } |
|
.highlight { background-color: #ffffcc; } |
|
.true { color: green; } |
|
.false { color: red; } |
|
.highlighted-cell { background-color: yellow; cursor: pointer; } |
|
.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; } |
|
.step { display: block; } |
|
</style> |
|
</head><body> |
|
<hr/> |
|
<h3><span>Statement:</span> the two players with the highest league apps are malcolm brown and peter hart</h3> |
|
<h3>Input Table: 1979 - 80 huddersfield town f.c. season</h3> |
|
<div class="step"> |
|
<div class="step"> |
|
<div class="step-title">Step 1: Order the table by 'league_apps' in descending order.</div> |
|
<div class="content" id="step-1"> |
|
<table> |
|
<tr> |
|
<td>name</td> |
|
<td>position</td> |
|
<td>league_apps</td> |
|
<td>league_goals</td> |
|
<td>fa_cup_apps</td> |
|
<td>fa_cup_goals</td> |
|
<td>league_cup_apps</td> |
|
<td>league_cup_goals</td> |
|
<td>total_apps</td> |
|
<td>total_goals</td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jim branagan</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">df</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0 (1)</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0 (1)</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">malcolm brown</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">df</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">46</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">52</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">david cowling</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">mf</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">39 (1)</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">10</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">44 (1)</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">10</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">peter fletcher</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">fw</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">30 (8)</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">17</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">35 (8)</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">keith hanvey</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">df</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">33</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">39</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">peter hart</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">mf</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">46</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">51</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ian holmes</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">mf</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">6 (4)</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">10 (4)</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">steve kindon</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">fw</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">22 (1)</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">14</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">22 (1)</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">14</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">mick laverick</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">mf</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">45</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">51</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">bernard purdie</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">df</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">18 (4)</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20 (4)</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">andy rankin</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">gk</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">24</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ian robins</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">fw</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">45</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">51</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">fred robinson</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">df</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">30</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">36</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">tommy smith</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">fw</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">brian stanton</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">mf</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">41</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">43</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alan starling</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">gk</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">22</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">28</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">dave sutton</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">df</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">46</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">52</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chris topping</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">df</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">13</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">15</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
</tr> |
|
</table> |
|
</div> |
|
<hr/> |
|
<div class="step"> |
|
<div class="step-title">Step 2: Select the top 2 rows.</div> |
|
<div class="content" id="step-0"> |
|
<table> |
|
<tr> |
|
<td>name</td> |
|
<td>position</td> |
|
<td>league_apps</td> |
|
<td>league_goals</td> |
|
<td>fa_cup_apps</td> |
|
<td>fa_cup_goals</td> |
|
<td>league_cup_apps</td> |
|
<td>league_cup_goals</td> |
|
<td>total_apps</td> |
|
<td>total_goals</td> |
|
</tr> |
|
<tr> |
|
<td>malcolm brown</td> |
|
<td>df</td> |
|
<td>46</td> |
|
<td>2</td> |
|
<td>2</td> |
|
<td>0</td> |
|
<td>4</td> |
|
<td>1</td> |
|
<td>52</td> |
|
<td>3</td> |
|
</tr> |
|
<tr> |
|
<td>peter hart</td> |
|
<td>mf</td> |
|
<td>46</td> |
|
<td>4</td> |
|
<td>1</td> |
|
<td>1</td> |
|
<td>4</td> |
|
<td>0</td> |
|
<td>51</td> |
|
<td>5</td> |
|
</tr> |
|
<tr> |
|
<td>dave sutton</td> |
|
<td>df</td> |
|
<td>46</td> |
|
<td>6</td> |
|
<td>2</td> |
|
<td>0</td> |
|
<td>4</td> |
|
<td>1</td> |
|
<td>52</td> |
|
<td>7</td> |
|
</tr> |
|
<tr> |
|
<td>mick laverick</td> |
|
<td>mf</td> |
|
<td>45</td> |
|
<td>4</td> |
|
<td>2</td> |
|
<td>0</td> |
|
<td>4</td> |
|
<td>0</td> |
|
<td>51</td> |
|
<td>4</td> |
|
</tr> |
|
<tr> |
|
<td>ian robins</td> |
|
<td>fw</td> |
|
<td>45</td> |
|
<td>25</td> |
|
<td>2</td> |
|
<td>0</td> |
|
<td>4</td> |
|
<td>2</td> |
|
<td>51</td> |
|
<td>27</td> |
|
</tr> |
|
<tr> |
|
<td>brian stanton</td> |
|
<td>mf</td> |
|
<td>41</td> |
|
<td>9</td> |
|
<td>2</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>43</td> |
|
<td>9</td> |
|
</tr> |
|
<tr> |
|
<td>david cowling</td> |
|
<td>mf</td> |
|
<td>39 (1)</td> |
|
<td>10</td> |
|
<td>1</td> |
|
<td>0</td> |
|
<td>4</td> |
|
<td>0</td> |
|
<td>44 (1)</td> |
|
<td>10</td> |
|
</tr> |
|
<tr> |
|
<td>keith hanvey</td> |
|
<td>df</td> |
|
<td>33</td> |
|
<td>2</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>4</td> |
|
<td>0</td> |
|
<td>39</td> |
|
<td>2</td> |
|
</tr> |
|
<tr> |
|
<td>peter fletcher</td> |
|
<td>fw</td> |
|
<td>30 (8)</td> |
|
<td>17</td> |
|
<td>2</td> |
|
<td>0</td> |
|
<td>3</td> |
|
<td>1</td> |
|
<td>35 (8)</td> |
|
<td>18</td> |
|
</tr> |
|
<tr> |
|
<td>fred robinson</td> |
|
<td>df</td> |
|
<td>30</td> |
|
<td>1</td> |
|
<td>2</td> |
|
<td>0</td> |
|
<td>4</td> |
|
<td>0</td> |
|
<td>36</td> |
|
<td>1</td> |
|
</tr> |
|
<tr> |
|
<td>andy rankin</td> |
|
<td>gk</td> |
|
<td>24</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>24</td> |
|
<td>0</td> |
|
</tr> |
|
<tr> |
|
<td>steve kindon</td> |
|
<td>fw</td> |
|
<td>22 (1)</td> |
|
<td>14</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>22 (1)</td> |
|
<td>14</td> |
|
</tr> |
|
<tr> |
|
<td>alan starling</td> |
|
<td>gk</td> |
|
<td>22</td> |
|
<td>0</td> |
|
<td>2</td> |
|
<td>0</td> |
|
<td>4</td> |
|
<td>0</td> |
|
<td>28</td> |
|
<td>0</td> |
|
</tr> |
|
<tr> |
|
<td>bernard purdie</td> |
|
<td>df</td> |
|
<td>18 (4)</td> |
|
<td>0</td> |
|
<td>2</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>20 (4)</td> |
|
<td>0</td> |
|
</tr> |
|
<tr> |
|
<td>chris topping</td> |
|
<td>df</td> |
|
<td>13</td> |
|
<td>0</td> |
|
<td>2</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>15</td> |
|
<td>0</td> |
|
</tr> |
|
<tr> |
|
<td>ian holmes</td> |
|
<td>mf</td> |
|
<td>6 (4)</td> |
|
<td>3</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>4</td> |
|
<td>1</td> |
|
<td>10 (4)</td> |
|
<td>4</td> |
|
</tr> |
|
<tr> |
|
<td>jim branagan</td> |
|
<td>df</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0 (1)</td> |
|
<td>0</td> |
|
<td>0 (1)</td> |
|
<td>0</td> |
|
</tr> |
|
<tr> |
|
<td>tommy smith</td> |
|
<td>fw</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>0</td> |
|
<td>1</td> |
|
<td>0</td> |
|
<td>1</td> |
|
<td>0</td> |
|
</tr> |
|
</table> |
|
</div> |
|
</div> |
|
<hr/> |
|
<div class="step"> |
|
<div class="step-title">Step 3: Select rows where 'name' is 'malcolm brown' or 'peter hart'.</div> |
|
<div class="content" id="step-1"> |
|
<table> |
|
<tr> |
|
<td>name</td> |
|
<td>position</td> |
|
<td>league_apps</td> |
|
<td>league_goals</td> |
|
<td>fa_cup_apps</td> |
|
<td>fa_cup_goals</td> |
|
<td>league_cup_apps</td> |
|
<td>league_cup_goals</td> |
|
<td>total_apps</td> |
|
<td>total_goals</td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">malcolm brown</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">df</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">46</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">52</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">peter hart</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">mf</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">46</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">51</span></td> |
|
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5</span></td> |
|
</tr> |
|
</table> |
|
</div> |
|
</div> |
|
<hr/> |
|
<div class="step"> |
|
<div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the number of rows is equal to 2, otherwise return FALSE.</div> |
|
<div class="content" id="step-2"> |
|
<table> |
|
<tr> |
|
<td>name</td> |
|
<td>position</td> |
|
<td>league_apps</td> |
|
<td>league_goals</td> |
|
<td>fa_cup_apps</td> |
|
<td>fa_cup_goals</td> |
|
<td>league_cup_apps</td> |
|
<td>league_cup_goals</td> |
|
<td>total_apps</td> |
|
<td>total_goals</td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">malcolm brown</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">df</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">46</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">4</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">52</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">3</span></td> |
|
</tr> |
|
<tr> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">peter hart</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">mf</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">46</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">4</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">4</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">51</span></td> |
|
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">5</span></td> |
|
</tr> |
|
</table> |
|
</div> |
|
</div> |
|
<hr/> |
|
|
|
</div> |
|
</div> |
|
<hr/> |
|
</body></html> |
|
|