on-internet
← Community

MySQL LEFT JOIN returning no unmatched rows due to WHERE conditions on the right-hand table

Stack Overflow ·

I have two tables in MySQL hotel_respondents and hotel_results - they are joined by hotel_respondents.login_id = hotel_results.company I have the following data in hotel_results table: date brand code q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 q16 q17 q18 q19 q20 q21 q22 q23 q24 q25 NOV2010 XYZ 66j8ttk2 8 6 4 8 3 8 8 8 7 4 8 7 7 4 7 6 6 7 4 5 7 7 2 1 1 NOV2010 XYZ 66j8ttk2 9 9 5 5 5 5 3 3 9 9 9 5 6 8 6 8 8 5 5 5 6 6 2 1 1 NOV2010 XYZ 66j8ttk2 10 10 7 10 8 10 10 9 8 10 10 10 8 10 10 10 10 10 10 10 10 10 1 1 1 NOV2010 XYZ 66j8ttk2 8 6 4 8 3 8 8 8 7 4 8 7 7 4 7 6 6 7 4 5 7 7 2 1 1 NOV2010

Comments

Sign in or sign up to comment and upvote.

No comments yet.