Hi All,
Greetings.!
I have excel sheet with 1 Lakh data. I need to form delete queries by using 2 columns.
For example,
[TABLE="width: 130"]
<tbody>[TR]
[TD]Column1
[/TD]
[TD]Column2
[/TD]
[/TR]
[TR]
[TD]100
[/TD]
[TD]A
[/TD]
[/TR]
[TR]
[TD]200
[/TD]
[TD]B1
[/TD]
[/TR]
[TR]
[TD]100
[/TD]
[TD]A2
[/TD]
[/TR]
[TR]
[TD]300
[/TD]
[TD]C1
[/TD]
[/TR]
[TR]
[TD]200
[/TD]
[TD]B2
[/TD]
[/TR]
[TR]
[TD]300
[/TD]
[TD]C2
[/TD]
[/TR]
</tbody>[/TABLE]
Sample Query I formed manually is,
delete from table1 where Column1=100 and Column2 in(A,A2);
delete from table1 where Column1=200 and Column2 in(B1,B2);
delete from table1 where Column1=300 and Column2 in(C1,C2);
.
.
.
. so on..
Could you please advise is there anyway I can automate this by using excel features or macro ?
Since I have lakh data in excel it is killing my time to form the queries manually.
Help would be greatly appreciated..
Regards,
Sundar
Greetings.!
I have excel sheet with 1 Lakh data. I need to form delete queries by using 2 columns.
For example,
[TABLE="width: 130"]
<tbody>[TR]
[TD]Column1
[/TD]
[TD]Column2
[/TD]
[/TR]
[TR]
[TD]100
[/TD]
[TD]A
[/TD]
[/TR]
[TR]
[TD]200
[/TD]
[TD]B1
[/TD]
[/TR]
[TR]
[TD]100
[/TD]
[TD]A2
[/TD]
[/TR]
[TR]
[TD]300
[/TD]
[TD]C1
[/TD]
[/TR]
[TR]
[TD]200
[/TD]
[TD]B2
[/TD]
[/TR]
[TR]
[TD]300
[/TD]
[TD]C2
[/TD]
[/TR]
</tbody>[/TABLE]
Sample Query I formed manually is,
delete from table1 where Column1=100 and Column2 in(A,A2);
delete from table1 where Column1=200 and Column2 in(B1,B2);
delete from table1 where Column1=300 and Column2 in(C1,C2);
.
.
.
. so on..
Could you please advise is there anyway I can automate this by using excel features or macro ?

Since I have lakh data in excel it is killing my time to form the queries manually.

Help would be greatly appreciated..

Regards,
Sundar