Member-only story

Laptop vs Mobile Viewership — New York Times Asked SQL Question

Solving SQL Question asked by NYT

Suraj Mishra
2 min readNov 2, 2022
Photo by Caspar Camille Rubin on Unsplash

Introduction

  • In this article we will solve Laptop vs Mobile Viewership SQL question which is asked by New York Times as per DataLemur website.

If you don’t know DatLemur then please do visit , it’s one of the best website to practice SQL questions and improve your SQL skills.

Question

  • We have been given viewership as input table , our goal is to find total_number views by device (mobile and laptop).
  • Fyi, Mobile devices are combined of tablet and phone.

Solution

  • we can basically filter input…

--

--

Suraj Mishra
Suraj Mishra

Written by Suraj Mishra

Staff Software Engineer @PayPal ( All opinions are my own and not of my employer )

No responses yet