Advertisement

07.06.2008 at 02:37PM PDT, ID: 23542059
[x]
Attachment Details

Advanced find and replace query

Asked by garethh86 in SQL Query Syntax

Tags: SQL

Hi there, I dont know if this is possible:

I have two fields:
ShowName
Showdate

all the showdate fields are in datetime format but all of them only have the date ie:

15/08/2008 00:00:00
16/08/2008 00:00:00
17/08/2008 00:00:00

Etc.

In the showname field (nvarchar(50)) I have

ShowName - Venue Number, 4.30pm £8/7 [1hr]
ShowName Venue Number, 4pm £8/7 [1hr]
ShowName Venue Number, 9.15pm £8/7 [1hr]

I want to strip the time from the showname and update the showdate field with it. Is there anyway of doing this in SQL?

I have over 1644 records to update hence my dilema of hours of labourious data entry :(

Any help much appreicated, Thanks!


Start Free Trial
[+][-]07.06.2008 at 02:48PM PDT, ID: 21941733

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.06.2008 at 03:24PM PDT, ID: 21941834

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.06.2008 at 06:20PM PDT, ID: 21942275

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.06.2008 at 06:28PM PDT, ID: 21942298

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: SQL Query Syntax
Tags: SQL
Sign Up Now!
Solution Provided By: appari
Participating Experts: 3
Solution Grade: A
 
 
[+][-]07.06.2008 at 06:40PM PDT, ID: 21942341

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.06.2008 at 07:44PM PDT, ID: 21942509

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628