Skip to content

Commit 8da863a

Browse files
committed
Upload 164
1 parent 4df1f1a commit 8da863a

File tree

2 files changed

+44
-2
lines changed

2 files changed

+44
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
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-163-green.svg)](#index)
3+
[![Solved](https://img.shields.io/badge/solved-164-green.svg)](#index)
44
<!-- markdownlint-enable MD041 -->
55

66
# SQL Everyday
@@ -196,7 +196,8 @@ Because this project necessitated a framework to enable consistent daily practic
196196
| 160 | [Employees With Missing Information](https://leetcode.com/problems/employees-with-missing-information/description/) | [Solution](solutions/160_employees_with_missing_information.md) | LeetCode | Easy | `FULL JOIN` |
197197
| 161 | [Delete Duplicate Emails](https://leetcode.com/problems/delete-duplicate-emails/description/) | [Solution](solutions/161_delete_duplicate_emails.md) | LeetCode | Easy | |
198198
| 162 | [Find Products with Valid Serial Numbers](https://leetcode.com/problems/find-products-with-valid-serial-numbers/description/) | [Solution](solutions/162_find_products_with_valid_serial_numbers.md) | LeetCode | Easy | Regex |
199-
| 163 | [DNA Pattern Recognition](https://leetcode.com/problems/dna-pattern-recognition/description/) | [Solution](solutions/163_dna_pattern_recognition_.md) | LeetCode | Easy | |
199+
| 163 | [DNA Pattern Recognition](https://leetcode.com/problems/dna-pattern-recognition/description/) | [Solution](solutions/163_dna_pattern_recognition_.md) | LeetCode | Easy | |
200+
| 164 | [Even or Odd](https://www.codewars.com/kata/53da3dbb4a5168369a0000fe/sql) | [Solution](solutions/164_even_or_odd.md) | Codewars | Easy | |
200201
<!-- Index End - WARNING: Do not delete or modify this markdown comment. -->
201202
<!--- cSpell:enable --->
202203

solutions/164_even_or_odd.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# SQL Everyday \#164
2+
3+
## Even or Odd
4+
5+
Site: Codewars\
6+
Difficulty per Site: Easy
7+
8+
## Problem
9+
10+
You will be given a table `numbers`, with one column `number`.
11+
12+
Return a dataset with two columns: `number` and `is_even`, where `number` contains the original input value, and `is_even` containing `"Even"` or `"Odd"` depending on number column values. [[Full Description](https://www.codewars.com/kata/53da3dbb4a5168369a0000fe/sql)]
13+
14+
## Submitted Solution
15+
16+
```sql
17+
-- Submitted Solution
18+
SELECT
19+
number
20+
,CASE WHEN number % 2 = 0 THEN 'Even' ELSE 'Odd' END AS is_even
21+
FROM numbers
22+
;
23+
```
24+
25+
## Site Solution
26+
27+
```sql
28+
-- Codewars Solution
29+
-- TBD
30+
```
31+
32+
## Notes
33+
34+
TBD
35+
36+
## NB
37+
38+
TBD
39+
40+
Go to [Index](../?tab=readme-ov-file#index)\
41+
Go to [Overview](../?tab=readme-ov-file)

0 commit comments

Comments
 (0)