Skip to content

Commit 767fdd4

Browse files
committed
Upload 167
1 parent 3996ecb commit 767fdd4

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- markdownlint-disable MD041 -->
22
[![eevveerryyddaayy release](https://img.shields.io/badge/eevveerryyddaayy-v1.3.0-blue.svg)](https://github.com/ggeerraarrdd/eevveerryyddaayy/)
3-
[![Solved](https://img.shields.io/badge/solved-166-green.svg)](#index)
3+
[![Solved](https://img.shields.io/badge/solved-167-green.svg)](#index)
44
<!-- markdownlint-enable MD041 -->
55

66
# SQL Everyday
@@ -200,6 +200,7 @@ Because this project necessitated a framework to enable consistent daily practic
200200
| 164 | [Even or Odd](https://www.codewars.com/kata/53da3dbb4a5168369a0000fe/sql) | [Solution](solutions/164_even_or_odd.md) | Codewars | Easy | |
201201
| 165 | [Daily Hospital Admissions and Discharges Report](https://www.codewars.com/kata/66b09bedf5ca866d7ffafc8f) | [Solution](solutions/165_daily_hospital_admissions_and_discharges_report.md) | Codewars | Medium | `TO_CHAR()` |
202202
| 166 | [Films selection with a twist](https://www.codewars.com/kata/644424f8d7bab510f1375d20) | [Solution](solutions/166_films_selection_with_a_twist.md) | Codewars | Medium | `PERCENTILE_DISC` |
203+
| 167 | [SQL Basics: Raise to the Power](https://www.codewars.com/kata/594a8f653b5b4e8f3d000035) | [Solution](solutions/167_sql_basics_raise_to_the_power.md) | Codewars | Easy | `^` or `POW()` |
203204
<!-- Index End - WARNING: Do not delete or modify this markdown comment. -->
204205
<!--- cSpell:enable --->
205206

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# SQL Everyday \#167
2+
3+
## SQL Basics: Raise to the Power
4+
5+
Site: Codewars\
6+
Difficulty per Site: Easy
7+
8+
## Problem
9+
10+
Return a table with a single column `result` which is the output of number1 raised to the power of number2. [[Full Description](https://www.codewars.com/kata/594a8f653b5b4e8f3d000035)]
11+
12+
## Submitted Solution
13+
14+
```sql
15+
-- Submitted Solution
16+
SELECT
17+
number1 ^ number2 AS result
18+
FROM decimals
19+
;
20+
```
21+
22+
## Site Solution
23+
24+
```sql
25+
-- Codewars Solution
26+
SELECT
27+
POW(NUMBER1, NUMBER2) AS RESULT
28+
FROM
29+
DECIMALS
30+
```
31+
32+
## Notes
33+
34+
TBD
35+
36+
## NB
37+
38+
`^` or `POW()`
39+
40+
Go to [Index](../?tab=readme-ov-file#index)\
41+
Go to [Overview](../?tab=readme-ov-file)

0 commit comments

Comments
 (0)