AdvancedEnergySQL+20 XP
Show only the top 2
Scenario
You are a data analyst in the Energy team. LIMIT stops after a few rows — handy for a 'top 2' list.
Question
Write your code in the editor, look at the result, then try changing one small thing.
Your task
- Write your code in the editor
- Press Check my answer
- Look at the result on the right
LIMIT
Read the simple theory: ExcelAdvanced · Duplicate Removal & Result Sampling — question 2 of 20
1. Choose your dataset
Pick an industry and a size. Your code and results change to match.
sql editorpower_readings
Snippets
💡 Explain my whole code, line by line (hover any word in the editor for a tip)
🌈 In short — no coding words
📂 Opens the "power_readings" table→✅ Shows you the answer
Altogether: this query reads your industry table, picks what you need, and shows the answer as rows.
Start typing to see suggestions. Press Enter to use one. Red marks show the line to fix. Drag a bottom corner horizontally and vertically to resize.
Type your code here ↓
✍️ Tap here to type
Dataset & schema
power_readings
The tiny starter data. Bigger data scrolls.
Fields
| reading_id | plant | megawatts |
|---|---|---|
| E1 | Solar | 40 |
| E2 | Wind | 55 |
| E3 | Solar | 35 |
| E4 | Hydro | 70 |
Energy data only.
attempts: 0
▶ Output terminal
$ Press “Check my answer” — results appear here.Your next steps
Each item turns green when your answer includes it.
- Sorts biggest first
- Uses LIMIT 2