Hi all
Actually i have two tables
Suppose table name is Table A and Table B
in Table A having User_name,Password,Unique_no field
where Table B having User_name,Unique_no,Sales_count, Today_date field
Now, what i want, in Table B when i trying to do insert query at same time query should be extract User_name and Unique_no base on Unique_no condition + query can be insert sales_count+1 and today date also
for this i make a query
insert into Table B select User_name,Unique_no from Table A where Unique_no =@Unique_no
but not understand how can i insert sales_count increament and today date into Table B At same time
Nitin SontakkeRank #264 · 9.6K reputationPosted Aug 18, 2016, 7:56 AM EDT
Atul Rokade146 reputationPosted Aug 18, 2016, 8:13 AM EDT
Atul Rokade146 reputationPosted Aug 18, 2016, 8:15 AM EDT
Tapan PatelRank #614 · 3.9K reputationPosted Aug 18, 2016, 12:09 PM EDT
Nitin SontakkeRank #264 · 9.6K reputationPosted Aug 18, 2016, 8:00 PM EDT
Bhuvan PandeyRank #2,683 · 519 reputationPosted Aug 18, 2016, 8:32 PM EDT
Midhun TpRank #388 · 6.5K reputationPosted Aug 18, 2016, 9:06 PM EDT
Atul Rokade146 reputationPosted Aug 19, 2016, 9:49 AM EDT
Atul Rokade146 reputationPosted Aug 31, 2016, 5:05 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts