Hi,
I tried the above coding, by create a test table called emptable2, with fields empid, clientname, lead.
CREATE TABLE emptable2(empid int not null, clientname varchar(25), lead varchar(10));
and inserted some values,
INSERT INTO emptable2 SET empid='1', clientname='client1', lead='lead1';
INSERT INTO emptable2 SET empid='1', clientname='client2', lead='lead2';
INSERT INTO emptable2 SET empid='1', clientname='client3', lead='lead3';
INSERT INTO emptable2 SET empid='2', clientname='client4', lead='lead4';
now i have four records with 3 records to empid='1' and one to empid='2'.
And then i tried the coding you suggested,
INSERT INTO emptable2 (empid,clientname,lead) SELECT * FORM emptable2 WHERE empid='1';
It displays the record, like
empid clientname lead
1 client1 lead1
1 client2 lead2
1 client3 lead3
2 client4 lead4
1 client1 lead1
1 client2 lead2
1 client3 lead3
But i want to insert the records of empid #1 to empid #2.
like
1 client1 lead1
1 client2 lead2
1 client3 lead3
2 client4 lead4
2 client1 lead1
2 client2 lead2
2 client3 lead3
How i can make it.
Please help, since i have lot of fields(75) so if it works i can change them easily.
please help
Thanks in advance.