SQL CURRENT_TIME

Returns the current time of day only — no date component at all.

What & Why

CURRENT_TIME returns the transaction's current time with time-zone information. The worked Queryflo row uses the fixed teaching value 09:30:00+00 beside the real growth.users count.

See How It Works

BUSINESS QUESTION

Using a fixed teaching clock, Growth records a database time beside the user count.

idcreated_atcountrychannelplanactivated_atchurned_at
1012024-01-15 09:10:00+00USorganicpro2024-01-16 14:25:00+00NULL
1022024-02-10 11:05:00+00CApaidfreeNULL2024-03-20 10:00:00+00
1032024-03-12 16:35:00+00GBreferralpro2024-03-13 08:15:00+00NULL
1042024-04-01 13:20:00+00USorganicfree2024-04-03 12:00:00+00NULL
EXAMPLE QUERY
-- In a live report, replace the teaching value with CURRENT_TIME.
SELECT
  TIMETZ '09:30:00+00' AS database_time,
  COUNT(*) AS user_count
FROM growth.users;
RESULT — exact output from the displayed Queryflo rows
database_timeuser_count
09:30:00+004

The fixed time represents CURRENT_TIME while the count comes from growth.users.

Now You Try

Practice this concept

Return the fixed teaching time 09:30:00+00 beside the growth.users row count.

Available schema
growth

Prefix tables with growth.table_name.

database_timeuser_count
growth.users
ColumnType
idinteger
created_attimestamp with time zone
countrytext
channeltext
plantext
activated_attimestamp with time zone
churned_attimestamp with time zone
legacy_user_codetext
query.sql
Intermediate business practice

Sign up free to try it on a real business scenario