Click here to Skip to main content
15,895,827 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How to create second row based on first row


Glno Lno Withdraw WithDate Colletion CollDate Balance

456 45 25000 01/01/2012 5000 10/01/2012 20000
456 45 20000 10/01/2012 10000 15/01/2012 10000


Actually first row is there in my table
I need the send row as values of first row colletion date is send row withdraw date and Balance amount is second row withdrw amount

How to add second row based on first row values
Posted
Comments
Mahmud Hasan 9-Mar-12 12:21pm    
Can u rephrase your question with proper punctuation's and correcting typos?

1 solution

SQL
INSERT INTO table
SELECT t.Field1, t.Field2, t.Field3, 500, 700
FROM table t
WHERE t.ID = Row1
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900