Solved

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

Posted on 2004-09-23
5
245 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
  • 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to upload /Create/manage SQL database on Azure 3 30
triggered use of sp_send_dbmail failure 2 22
TSQL - IF ELSE? 3 25
MS SQL Pivot table help 4 0
Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

932 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now