Skip to content

CCH0124/codewars-sql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

一般

難度 題目 答案 使用關鍵字
6 kyu SQL Basics: Simple IN link IN
6 kyu Calculating Batting Average link CASTROUND
8 kyu Grasshopper - Check for factor link MOD
8 kyu SQL Basics: Simple MIN / MAX link MINMAX
8 kyu On the Canadian Border (SQL for Beginners #2) link WHERE
8 kyu Keep Hydrated! link FLOOR
7 kyu Easy SQL: Cube Root and Natural Log link cbrtLN
8 kyu Easy SQL: Convert to Hexadecimal link TO_HEX
7 kyu Easy SQL: Absolute Value and Log to Base link ABSLOG
8 kyu Returning Strings link FORMATCONCAT
8 kyu Easy SQL - Ordering link ORDER BY
7 kyu SQL Basics: Raise to the Power link POWER
8 kyu Even or Odd link CASE
8 kyu Is n divisible by x and y? link AND
8 kyu Grasshopper - Messi goals function link
8 kyu Register for the Party (SQL for Beginners #3) link INSERT INTO
7 kyu Maximum Multiple link
8 kyu SQL Basics: Simple SUM link SUM
8 kyu SQL Grasshopper: Select Columns link SELECT
7 kyu SQL Basics - Position link position
8 kyu SQL Basics: Simple DISTINCT link DISTINCT
6 kyu SQL Basics: Simple EXISTS link EXISTS
6 kyu SQL Basics - Monsters using CASE link JOINCASE
7 kyu SQL Basics: Simple JOIN with COUNT link JOIN
6 kyu SQL Basics: Simple UNION ALL link UNION ALL
7 kyu BASICS: Length based SELECT with LIKE link LIKE
7 kyu Easy SQL: ASCII Converter link ASCIILEFT
7 kyu SQL with Harry Potter: Sorting Hat Comparators link ORDER BY
7 kyu SQL Basics: Simple JOIN link JOIN
7 kyu SQL with Pokemon: Damage Multipliers link JOINORDER BY
7 kyu SQL Basics: Simple GROUP BY link GROUP BY
7 kyu SQL Basics - Trimming the Field link split_part
7 kyu Sum of odd numbers link POWER

困難

難度 題目 答案 使用的函數
4 kyu Dealing With Messy Data link GROUP BYpg_trgmgin 操作

字串處裡

難度 題目 答案 使用關鍵字
6 kyu SQL: Regex AlphaNumeric Split link
7 kyu SQL with LOTR: Elven Wildcards link
8 kyu Easy SQL: LowerCase link LOWER
7 kyu SQL: Concatenating Columns link CONCAT
7 kyu SQL Basics - Trimming the Field link split_part
7 kyu SQL: Right and Left link LEFTRIGHTsubstring
7 kyu SQL: Padding Encryption link REPEATCONCAT

聚合

難度 題目 答案 使用的函數
7 kyu SQL Basics: Up and Down link
6 kyu SQL Basics: Simple HAVING link
7 kyu SQL: Disorder link RANDOM
5 kyu SQL Basics: Group By Day link group by
7 kyu GROCERY STORE: Logistic Optimisation link GROUP BYORDER BYCOUNT
6 kyu SQL Bug Fixing: Fix the JOIN link JOINCASTGROUP BYORDER BY
6 kyu SQL Basics: Simple table totaling. link RANKCOALESCEGROUP BYORDER BYSUMCOUNT
5 kyu SQL Statistics: MIN, MEDIAN, MAX link MAXMINPERCENTILE_CONT

Text 搜尋

難度 題目 答案 使用的函數
6 kyu SQL Basics: Simple FULL TEXT SEARCH link to_tsvectorto_tsquery

Network Address 函數

難度 題目 答案 使用的函數
7 kyu First and last IP in a network link networkbroadcast
5 kyu Count IP Addresses link inet

Window function

難度 題目 答案 使用的函數
5 kyu Using Window Functions To Get Top N per Group link RANKJOINsubquery

PIVOTING data

難度 題目 答案 使用的函數
5 kyu SQL Basics: Simple PIVOTING data link CROSSTAB
6 kyu SQL Basics: Simple PIVOTING data WITHOUT CROSSTAB link

CTE

難度 題目 答案 使用的函數
5 kyu SQL Basics: Simple Hierarchical structure link RECURSIVE

Null handler

難度 題目 答案 使用的函數
6 kyu SQL Basics: Simple NULL handling link COALESCENULLIF

Create Function

難度 題目 答案 使用的函數
7 kyu SQL Basics: Create a FUNCTION link
6 kyu SQL Basics: Create a FUNCTION (DATES) link ageextract

JSON

難度 題目 答案 使用的函數
6 kyu Present JSON data the SQL way link EXTRACTAGEJSON 操作

VIEW

難度 題目 答案 使用的函數
5 kyu SQL Basics: Simple VIEW link VIEWGROUP BY

WITH

難度 題目 答案 使用的函數
6 kyu SQL Basics: Simple WITH link WITHIN

JOIN

難度 題目 答案 使用的函數
6 kyu SQL Basics: Top 10 customers by total payments amount link LEFT JOINGROUP BYSUMCOUNTLIMIT
6 kyu SQL Basics: Simple JOIN and RANK link JOINGROUP BYRANKCOUNT
7 kyu SQL with Pokemon: Damage Multipliers link JOINORDER BY
6 kyu SQL Basics - Monsters using CASE link JOINCASE

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published