Solved

is not equalk to, then set field to equal another field

Posted on 2004-09-23
5
277 Views
Last Modified: 2012-06-21
hello,

i have a table,.

msm_svccalltable

i want to populate all fields that are not equal to '1900-01-01 00:00:00.000' in field localclosedate with the data from field localstartdate

can someone write the SQL 2000 code for me please?

thanks
0
Comment
Question by:acetate
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 11

Accepted Solution

by:
ram2098 earned 300 total points
ID: 12131329
update msm_svccalltable
set  localclosedate = localstartdate
where localclosedate <> '1900-01-01 00:00:00.000'
0
 
LVL 4

Assisted Solution

by:eclipse2k
eclipse2k earned 200 total points
ID: 12131335
update msm_svccalltable
set localclosedate = localstartdate
where localclosedate <> '1900-01-01 00:00:00.000'

i guess?
0
 
LVL 4

Expert Comment

by:eclipse2k
ID: 12131340
ha aram you was faster but its admirable that we posted exacly same looking code :) (no, i didnt copy-paste or something)
0
 
LVL 11

Expert Comment

by:ram2098
ID: 12131370
I know ..But funny :)
0
 

Author Comment

by:acetate
ID: 12131387
sorry guys, this is actually wanted, sorry for the confusion,

 update msm_svccalltable
set  localstartdate = localclosedate
where localstartdate = '1900-01-01 00:00:00.000'

i used your scripts to make this. i split the points

0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question