Recap - Engineer new columns
Coddy SQL 여정의 기초 섹션에 포함된 레슨 — 72개 중 30번째.
챌린지
쉬움사용 가능한 테이블과 컬럼:
<strong>items</strong>:<strong>id</strong>
4차 함수가 정의되었습니다:
f(x) = ax<sup>4</sup>+bx<sup>3</sup>+cx<sup>2</sup>+dx+e
상수 매개변수를 정의해 보겠습니다:
a = 3b = 5c = 0.9d = 2.2e = 1
id와 x가 id인 4차 함수를 가져오고, 컬럼 이름을 quartic으로 변경하세요
POWER()! 같은 내장 함수를 사용하지 마세요!
2제곱 또는 3제곱을 계산하기 위해 다음 예를 사용하세요:
a*a
-- power of 2
a*a*a
-- power of 3직접 해보기
기초의 모든 레슨
4More Keywords
The IN keywordThe BETWEEN keywordThe LIKE keywordThe AS keywordRecap - Cellphone Models2Conditions
Conditions BasicsThe AND keywordThe OR keywordThe NOT keywordMultiple Conditions CombinedParenthesisBooleans5Arithmetic Operations
Mathematical OperatorsMathematical ColumnsThe Modulo OperationThe ROUND() Function3Specific Return Format
Null valuesSort Results Part 1Sort Results Part 2Recap - Cyber Security FirmLimit number of recordsRecap - Vehicle Factory6Intro Challenges
Recap - Parliamentary ElectionRecap - Police Criminal ArrestRecap - Bar Beverage ContainerRecap - Engineer new columns