skip to Main Content

SELECT * FROM time_on_screen where id=’2′ AND where date between ‘2020-10-04’ and ‘2020-10-10’

2

Answers


  1. Only one WHERE per select is allowed use and,or and bracketing for multiple conditions/filters

    SELECT * FROM time_on_screen where id='2' AND (date between '2020-10-04' and '2020-10-10')
    
    Login or Signup to reply.
  2. Syntax for select clause is

    selectcolumn filter
    frombase table/base tables
    whereinitial row fillter

    here only one where clause is allowed in a single select.

    select * from time_on_screen where id = '2' and date between '2020-10-04' and '2020-10-10'
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search