Hi all,
I am updating a table from another, using a seperate script for each field.
One of the fields I update is always in the source table but only sometimes in the destination table.
Is it possible to write some SQL that checks for a value in the target table and if it exists update the corresponding data, if it doesn't exist create the row with that value and then update the corresponding data?
The first table consists of a row for each Project with other columns including 'Project Manager', 'Product', 'Client' etc
the second table has ROWS for each of the attributes above.
Each Project may have several rows, with each row being either 'Project Manager', 'Product', 'Client' Etc.
Sorry if I am not explaining myself very well.
(for those who use Microsoft Project the second table in my 'problem' is MSP_TEXT_FIELDS table.)
I am updating a table from another, using a seperate script for each field.
One of the fields I update is always in the source table but only sometimes in the destination table.
Is it possible to write some SQL that checks for a value in the target table and if it exists update the corresponding data, if it doesn't exist create the row with that value and then update the corresponding data?
The first table consists of a row for each Project with other columns including 'Project Manager', 'Product', 'Client' etc
the second table has ROWS for each of the attributes above.
Each Project may have several rows, with each row being either 'Project Manager', 'Product', 'Client' Etc.
Sorry if I am not explaining myself very well.
(for those who use Microsoft Project the second table in my 'problem' is MSP_TEXT_FIELDS table.)