merge of two database tables with LGP?

Posts   
 
    
magic
User
Posts: 125
Joined: 24-Nov-2008
# Posted on: 09-Dec-2008 20:56:43   

I have a conceptual question about how to quickly implement the equivalent of the following SQL query with LGP:


INSERT INTO tableA
SELECT *
FROM tableB
WHERE tableB.id NOT IN (
    SELECT id
    FROM tableA
)

A short hint how such a concept is called in LGP, or where to find an example/documentation about this would be enough. I hope wink

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 09-Dec-2008 22:41:11   

LLBLGen does not nativley support this constuct. You could wrap your required behaviour in a stored procedure, and call this using an LLBLGen Action Stored Procedure Call.

Matt