Skip to content

Instantly share code, notes, and snippets.

View jp3pe's full-sized avatar

jp3pe

  • 다온정보기술
  • Korea, Republic of
View GitHub Profile
@jp3pe
jp3pe / bookstore_queries.sql
Created October 19, 2025 05:04
nomadcoders-sql-challenge-1st-weekend
-- Challenge 1: Find the 10 longest books (by pages) in the database
SELECT
books.title,
author,
pages
FROM
books
WHERE
pages IS NOT NULL
ORDER BY
@jp3pe
jp3pe / cte_examples.sql
Created February 27, 2024 01:48 — forked from mmousawy/cte_examples.sql
Recursive SQL SELECT, UPDATE and DELETE with recursive CTE in MariaDB
-- SELECT
WITH recursive custom_cte AS
( SELECT
*
FROM
target_table
WHERE
target_table.id = "value"