Solved

Change date created if date modified = Today

Posted on 2008-11-03
4
207 Views
Last Modified: 2008-11-04
Basically

If t0.U_IIS_REF2 = TODAYS DATE
I want to change that records t0.createdate to todays date

Thanks

Keir
0
Comment
Question by:KeirMcCann
[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
4 Comments
 
LVL 37

Expert Comment

by:momi_sabag
ID: 22868001
update table1
set createdate = getdate()
where U_IIS_REF2 = getdate()
0
 
LVL 37

Expert Comment

by:momi_sabag
ID: 22868005
what is the format of dates you work with?
0
 

Author Comment

by:KeirMcCann
ID: 22868012
DD.MM.YY

Thanks

Keir
0
 
LVL 41

Accepted Solution

by:
Sharath earned 500 total points
ID: 22872444
Run Momi's query. If that does n't work, then run the below query.

update table1
set createdate = CONVERT(varchar(10), GETDATE(), 4)
where U_IIS_REF2 = CONVERT(varchar(10), GETDATE(), 4)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

729 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