php - How we get unmatched values from tables in mysql databases -


I have a problem getting data from mysql database tables. I have two tables like Table-1 and Table-2 In the figures below. How to get Table-2 data in Table 1, if not equal to pyelotid1

Mysql database tables

I'm not sure if I understand correctly, but it gives all the rows of table-1, in which there is no matching entry in Table 2 You can find related documents for not related .

 with  SELECT * table -1 t1 where it is not present (Select from Table-2 T2 WHERE t1 .Venueid` = t2.`Venueid`)  
< / Div>

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -