logoalt Hacker News

cm2187today at 8:06 AM1 replyview on HN

You are just a row in a database. Column can’t have nulls.


Replies

Mordisquitostoday at 8:21 AM

   SELECT
      id,
      full_name,
      IFNULL(age_verified, acc_created < DATETIME_SUB(CURRENT_DATETIME(), INTERVAL 18 YEAR) AS age_verified,
   FROM 
      google_accounts