BANGALORE, INDIA: In SQL Server 2008, you can perform insert, update, or delete operations in a single statement using the MERGE statement. MERGE statement allows you to join a data source with a ...
I got it. The INSERT INTO was missing the draft status id field and also the name in the new table was still DRAFT_STATUS_ID but labeled Draft Status Id.
Listing 2. Excerpt from SQLConstants with the definition for an insert Customer statement. public final static String CUSTOMER_TABLE = “CUSTOMER”; public final static String CUSTOMER_NO = “CUSTOMERNO” ...