Hi
Bandi
I have table in 7 records then i need insert same table below requirement
CReate Table Emp_DET(
EID INT IDENTITY(1,1),
YEARID int,
NAME VARCHAR(20),
OID int,
FID int
)
Insert into Emp_DET VALUES(1,'AA',1,2)
Insert into Emp_DET VALUES(1,'AA1',1,3)
Insert into Emp_DET VALUES(1,'AA2',1,4)
Insert into Emp_DET VALUES(1,'AA3',1,5)
Insert into Emp_DET VALUES(1,'AA4',1,6)
Insert into Emp_DET VALUES(1,'AA5',1,7)
Insert into Emp_DET VALUES(1,'AA6',1,8)
Select * from Emp_DET
EID YEARID NAME OID FID
1 1 AA 1 2
2 1 AA1 1 3
3 1 AA2 1 4
4 1 AA3 1 5
5 1 AA4 1 6
6 1 AA5 1 7
7 1 AA6 1 8
-- This is Real Records here 7 Records
-- But I need same table insert for some values changes like this
--My output Like this
EID YEARID NAME OID FID
1 2 AA 21 2
2 2 AA1 21 3
3 2 AA2 21 4
4 2 AA3 21 5
5 2 AA4 21 6
6 2 AA5 21 7
7 2 AA6 21 8
Mark as Answer if its helpful to you
Kumaraspcode2009@gmail.com