Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3609d95

Browse files
Working with Mathematical Functions & Arithmetic Operators
1 parent 80120a6 commit 3609d95

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎data/01-mathematical-functions.sql‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
SELECT price * billing_frequency AS annual_revenue
2+
FROM memberships;
3+
4+
-- CEIL()
5+
-- FLOOR()
6+
-- ROUND()
7+
-- TRUNC() TRUNCATE() mysql
8+
9+
SELECT TRUNC(consumption, 0)
10+
FROM memberships;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /