Feb 03 2021 02:33 PM
Hi,
I have following Excel data. How I can get the desired result in D2,D3 and D4 columns. If any column has NULL or blank then values should be '' in Insert command, as mentioned in the D columns
A1 B1 C1 D1
1 E AAA Insert into TPG (A1, B1, C1) values ((Select max(A1)+1 from DIC),'E','AAA')
2 E BBB Insert into TPG (A1, B1, C1) values ((Select max(A1)+2 from DIC),'E','AAA')
3 Insert into TPG (A1, B1, C1) values ((Select max(A1)+3 from DIC),'','')
Feb 04 2021 06:09 PM