Substract/Compare two table rows in a SQL database -


here problem :
have "machines" table column's row looking this, longer :

microsoft application error reporting

microsoft application error reporting

microsoft office professional plus 2010

microsoft office onenote mui (english) 2010
microsoft office infopath mui (english) 2010

microsoft office access mui (english) 2010

microsoft office shared setup metadata mui (english) 2010

microsoft office excel mui (english) 2010

microsoft office shared 64-bit setup metadata mui (english) 2010

and have "exceptions" table, column's row :

microsoft office onenote mui (english) 2010

microsoft office infopath mui (english) 2010

what i'd taking text present in first table ( , not in second ) , putting third table.

sorry if i'm not clear, did best english.. in advance.

edit : here how row looks. click

assuming want rows in machines (without ones in exceptions), can select them this:

select * machines columnname not in (select columnname exceptions) 

you can insert them using insert (assuming machines , newtable same columns):

insert newtablename select * machines columnname not in (select columnname exceptions) 

if have different columns, can select them..


since in in same column , row, you'll need use like check if present , replace delete needed part if so.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -