luulinh90s's picture
update
8431e47
raw
history blame
11.1 kB
<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> spy vs spy is listed under the arcade genre with dragon 32</h3>
<h3>Input Table: beyond software</h3>
<div class="step">
<div class="step">
<div class="step-title">Step 1: Select rows where 'title' is 'spy vs spy'.</div>
<div class="content" id="step-1">
<table>
<tr>
<td>title</td>
<td>genre</td>
<td>c___64</td>
<td>zx_spectrum</td>
<td>others</td>
<td>year</td>
<td>format</td>
</tr>
<tr>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">goodness gracious</span></td>
<td>arcade</td>
<td>c64</td>
<td>n / a</td>
<td>n / a</td>
<td>1983-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">kriegspiel</span></td>
<td>strategy</td>
<td>n / a</td>
<td>n / a</td>
<td>dragon 32</td>
<td>1983-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">space station zebra</span></td>
<td>arcade</td>
<td>n / a</td>
<td>zx spectrum</td>
<td>n / a</td>
<td>1983-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">up periscope</span></td>
<td>strategy</td>
<td>n / a</td>
<td>n / a</td>
<td>dragon 32</td>
<td>1983-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ankh</span></td>
<td>puzzle</td>
<td>c64</td>
<td>n / a</td>
<td>n / a</td>
<td>1984-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">aztec</span></td>
<td>arcade</td>
<td>c64</td>
<td>n / a</td>
<td>n / a</td>
<td>1984-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">lords of midnight</span></td>
<td>graphic adventure</td>
<td>c64</td>
<td>zx spectrum</td>
<td>amstrad cpc</td>
<td>1984-01-01</td>
<td>tape , disk</td>
</tr>
<tr>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">mr robot</span></td>
<td>arcade</td>
<td>c64</td>
<td>n / a</td>
<td>n / a</td>
<td>1984-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">my chess ii</span></td>
<td>board game</td>
<td>c64</td>
<td>n / a</td>
<td>n / a</td>
<td>1984-01-01</td>
<td>tape , disk</td>
</tr>
<tr>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">psytron</span></td>
<td>tactical combat</td>
<td>c64</td>
<td>zx spectrum</td>
<td>n / a</td>
<td>1984-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">spellbound</span></td>
<td>arcade</td>
<td>n / a</td>
<td>zx spectrum</td>
<td>n / a</td>
<td>1984-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">spy vs spy</span></td>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">arcade</span></td>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">c64</span></td>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">zx spectrum</span></td>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">amstrad cpc</span></td>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1984-01-01</span></td>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">tape</span></td>
</tr>
<tr>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">bounces</span></td>
<td>arcade</td>
<td>c64</td>
<td>zx spectrum</td>
<td>n / a</td>
<td>1985-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">doomdark 's revenge</span></td>
<td>graphic adventure</td>
<td>c64</td>
<td>zx spectrum</td>
<td>amstrad cpc</td>
<td>1985-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">psi warrior</span></td>
<td>arcade</td>
<td>c64</td>
<td>n / a</td>
<td>n / a</td>
<td>1985-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">shadowfire</span></td>
<td>tactical combat</td>
<td>c64</td>
<td>zx spectrum</td>
<td>amstrad cpc</td>
<td>1985-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">shadowfire tuner</span></td>
<td>game editor</td>
<td>c64</td>
<td>zx spectrum</td>
<td>n / a</td>
<td>1985-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">sorderon 's shadow</span></td>
<td>graphic adventure</td>
<td>n / a</td>
<td>zx spectrum</td>
<td>n / a</td>
<td>1985-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">quake minus one</span></td>
<td>rts</td>
<td>c64</td>
<td>n / a</td>
<td>n / a</td>
<td>1985-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">superman : the game</span></td>
<td>arcade / strategy</td>
<td>c64</td>
<td>n / a</td>
<td>n / a</td>
<td>1985-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">enigma force</span></td>
<td>tactical combat</td>
<td>c64</td>
<td>zx spectrum</td>
<td>n / a</td>
<td>1986-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">dante 's inferno</span></td>
<td>arcade adventure</td>
<td>c64</td>
<td>n / a</td>
<td>n / a</td>
<td>1986-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">infodroid</span></td>
<td>arcade</td>
<td>c64</td>
<td>n / a</td>
<td>n / a</td>
<td>1986-01-01</td>
<td>tape</td>
</tr>
<tr>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">romper room</span></td>
<td>educational</td>
<td>c64</td>
<td>zx spectrum</td>
<td>n / a</td>
<td>1986-01-01</td>
<td>tape</td>
</tr>
</table>
</div>
<hr/>
<div class="step">
<div class="step-title">Step 2: Select rows where 'genre' is 'arcade'.</div>
<div class="content" id="step-0">
<table>
<tr>
<td>title</td>
<td>genre</td>
<td>c___64</td>
<td>zx_spectrum</td>
<td>others</td>
<td>year</td>
<td>format</td>
</tr>
<tr>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">spy vs spy</span></td>
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">arcade</span></td>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">c64</span></td>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">zx spectrum</span></td>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">amstrad cpc</span></td>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1984-01-01</span></td>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">tape</span></td>
</tr>
</table>
</div>
</div>
<hr/>
<div class="step">
<div class="step-title">Step 3: Select rows where 'dragon 32' is not 'n/a'.</div>
<div class="content" id="step-1">
<table>
<tr>
<td>title</td>
<td>genre</td>
<td>c___64</td>
<td>zx_spectrum</td>
<td>others</td>
<td>year</td>
<td>format</td>
</tr>
<tr>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">spy vs spy</span></td>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">arcade</span></td>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">c64</span></td>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">zx spectrum</span></td>
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">amstrad cpc</span></td>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1984-01-01</span></td>
<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">tape</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 1, otherwise return FALSE.</div>
<div class="content" id="step-2">
<table>
<tr>
<td>title</td>
<td>genre</td>
<td>c___64</td>
<td>zx_spectrum</td>
<td>others</td>
<td>year</td>
<td>format</td>
</tr>
<tr>
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">spy vs spy</span></td>
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">arcade</span></td>
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">c64</span></td>
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">zx spectrum</span></td>
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">amstrad cpc</span></td>
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1984-01-01</span></td>
<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">tape</span></td>
</tr>
</table>
</div>
</div>
<hr/>
</div>
</div>
<hr/>
</body></html>