There is a request:

SELECT t1.val, t2.val2 FROM dungeons,locations 

How can I put a WHERE to select one from the first table and another from the second table. For example, I want to choose from the first

 WHERE rating > 100 

and from the second

 WHERE money=0 

    1 answer 1

     SELECT t1.val, t2.val2 FROM dungeons t1,locations t2 WHERE t1.rating > 100 and t2.money=0 
    • It works, but for some reason only after the second browser update. What could be the reason? - Erepaha
    • @Erepaha you said nothing about the browser before - Matty
    • but now he said) - Erepaha
    • And for more information about the browser, please - Viktorov
    • I send this request in general, right after it I look through var_dump (), returns NULL, I update the page in the browser, everything works. But it doesn't suit me :( - Erepaha