Please login or register to vote for this query.

(click on this box to dismiss)

Portuguese Language

Q&A for linguists, teachers and learners wanting to discuss the finer points of the Portuguese language

-- At what hour do I ask most posts, both questions and answers?
-- UTC (GMT) time zone. The week starts with Sunday.
-- Parameters:
--   UserId
--   HourOrDOW (1 - hours, 2 - day of week)

-- DEFINE @var = DATEPART("weekday", CreationDate), DATENAME("hour", CreationDate);

    [Time] = (DATEPART("weekday", CreationDate) + DATEPART("hour", CreationDate) / 24),
    COUNT(*) AS [Number of posts]
  FROM Posts
  GROUP BY (DATEPART("weekday", CreationDate) + DATEPART("hour", CreationDate) / 24)

Enter Parameters

Switch to meta site
loading Hold tight while we fetch your results