Skip to content

Commit f58e869

Browse files
feat: solved 2nd stage of the Hyperskill project "Electronics Store Customer"
1 parent b73cb29 commit f58e869

File tree

1 file changed

+12
-0
lines changed
  • hyperskill/16_electronics_store_customer/02

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Objectives
2+
3+
Identify the average `price` of printers having the `Inkjet` type and `C` color from the `Printer` table.
4+
5+
Round the result up to 2 decimal places.
6+
7+
```sql
8+
SELECT ROUND(AVG(price), 2) AS avg_price
9+
FROM Printer
10+
WHERE color = 'C'
11+
AND type = 'Inkjet';
12+
```

0 commit comments

Comments
 (0)