Mysql subtraction with 2 table or php -


i have 2 table(example , b)

a

----------- id | name ----------- 1  | bruce  2  | peter  3  | jack  4  | alin 

b

--------------------- id | status | a_id --------------------- 1  |    0   | 1  2  |    0   | 3 

subtraction 2 table or php , want result c

c

------------ id  | name ------------ 2   | peter 4   | alin 

how can it?

please give try. c records not shown b right?

select * table id not in (select a_id b) 

Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -