윈도우 함수 5

[Leet code] 1204. Last Person to Fit in the Bus

📢 본 포스팅에 활용되는 기본 문제 및 자료 출처는 리트코드 Problems, https://leetcode.com/problemset/all/임을 밝힙니다. ✔문제 https://leetcode.com/problems/last-person-to-fit-in-the-bus/description/ LeetCode - The World's Leading Online Programming Learning Platform Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Table : Q..

[LeetCode] 1321. Restaurant Growth

📢 본 포스팅에 활용되는 기본 문제 및 자료 출처는 리트코드 Problems, https://leetcode.com/problemset/all/임을 밝힙니다. ✔ 문제 https://leetcode.com/problems/restaurant-growth/description/ Restaurant Growth - LeetCode Can you solve this real interview question? Restaurant Growth - Table: Customer +---------------+---------+ | Column Name | Type | +---------------+---------+ | customer_id | int | | name | varchar | | visited_on |..

'SQL내장함수' 란?

SQL 내장함수 SQL에서는 함수의 개념을 사용한다. 수학에서의 함수와 마찬가지로 특정 값이나 열의 값을 입력받아서 그 값을 계산해서 결과를 돌려준다. [Input] X → FUNCTION F : → [Output] f(x) SQL함수는 DBMS가 제공하는 내장함수(Bulit-in Fuction) 과 사용자가 필요에 따라 직접 만드는 사용자 정의 함수(user-defind function)으로 나누어진다. SQL 내장함수 SQL내장함수는 상수나 속성 이름을 입력값으로 받아서 단일값을 결과로 반환한다. 모든 내장함수는 최초에 선언될 때 유효한 입력 값을 받아야 한다. 단일행 함수 구분 함수 숫자함수 ABS, CEIL, COS, EXP, FLOOR, LN, LOG, MOD, POWER, RAND, ROUND..

Database/SQL 2022.08.03