Quotes help make search much faster. Example: "Practice Makes Perfect"

Tuesday, May 9, 2017

Codecademy SQL: Analyzing Business Metrics Exercise 12 of 14


--first answer

select
  date(created_at) as dt,
  user_id
from gameplays as g1
order by dt
limit 100;

--second answer

select
  date(g1.created_at) as dt,
  g1.user_id
from gameplays as g1
  join gameplays as g2 on
    g1.user_id = g2.user_id
order by 1
limit 100;

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts