Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Hi, I'm trying to execute an insert query on sql ce using some values for the columns from other tables (using an select statement) and some constant values with a values statment. I'd like to know if this is possible and if not, how can I solve the query in other way.
Here I copy the query:
INSERT INTO TB_CUSTOMER_TOTALS (CTO_CUSTOMER,CTO_REJECT,CTO_REJECT_NEW,CTO_DEBT_AMOUNT,CTO_DEBT_AMOUNT_NEW,CTO_DIFFERED,CTO_DIFFERED_NEW,CTO_NOT_ASSIGNED,CTO_NOT_ASSIGNED_NEW,CTO_ACTION,CTO_ENVIAR) VALUES (SELECT CUS_NUMBER FROM TB_CUSTOMER WHERE CUS_NUMBER NOT IN (SELECT CTO_CUSTOMER FROM TB_CUSTOMER_TOTALS),0,0,0,0,0,0,0,0,0,0)
0 · ·