P
P
Pavel2019-03-14 14:50:38
SQL
Pavel, 2019-03-14 14:50:38

Why does sql query return 0 rows/blank?

paumBBV.png

SELECT date and user_id FROM table WHERE (date=2019-03-12 AND user_id=14) OR (date=2019-03-12 AND user_id=11)

Maybe I screwed up the syntax? I don't understand why it doesn't return anything.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lazy @BojackHorseman, 2019-03-14
@mrusklon

because date=2019-03-12 means that date is 2004, not March 12th. quotes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question