The time now is 07/24/08 - 02:11
Log in: Username: Password:
Search forums for:
  
Calculator Running Log Uploads Smilies Calendar
FAQ Search    Articles Register Log in

Microsoft SQL HELP!!!


www.runningforums.com Forum Index -> Riff-Raff Hang Out

Post new topic   Reply to topic
kobyj
Member
Reply with quote
Joined: 24 Jul 2002
Posts: 2370
Location: Lake Pine
| Back to top
PostPosted: 01/06/04 - 12:08    Post subject: Microsoft SQL HELP!!!
For those that know what I'm talking about:

I have a table with data in it. I want to copy all the rows of that table that match a specific value into another table. Is there an easy way to do it through SQL code?
TriBob
Member
Reply with quote
Joined: 29 Aug 2002
Posts: 5771
Location: Lost in Transition
| Back to top
PostPosted: 01/06/04 - 12:34    Post subject:
Insert with a select from

I.E.

insert into T_Portfolio_Stats
(loan_id, library_nk, loan_no_nk, Defeased)
select loan_id, library_nk, loan_no_nk, 'N'
from d_loan
where ln_active_stat_ind = 'Y'
Display posts from previous:   
Post new topic   Reply to topic All times are GMT - 4 Hours

www.runningforums.com Forum Index -> Riff-Raff Hang Out

Page 1 of 1

Related topics:
One Day Asylum: Microsoft Office Questions
Microsoft Streets 03
Microsoft Office 2003
GM vs Microsoft
dumb microsoft word question
Need computer Geek help !!! (Microsoft Millenium Edition)
Microsoft Word is a joke.