WarcraftPlayer
MIS
I have Temp table A that looks something like this
Customerid Notes CreateDate
12345 FEDEX #123456789 4/7/2005
12377 Customer complained 4/7/2005
I also have another permanent table B that looks something like this
Customerid Notes OrderTracking CreateDate
I need to take the FEDEX # and take out the number and put it in the ordertracking column so it should like this
Customerid Notes OrderTracking CreateDate
12345 FEDEX #123456789 123456789 4/7/2005
This is the query I currently have. What do i have to do to split the tracking number out of the notes field and put it into the ordertracking on insert.
INSERT INTO table (Customerid, Notes,Createdate)
SELECT CustomerId,Notes,CreateDate FROM Table A
Thanks in advance
Customerid Notes CreateDate
12345 FEDEX #123456789 4/7/2005
12377 Customer complained 4/7/2005
I also have another permanent table B that looks something like this
Customerid Notes OrderTracking CreateDate
I need to take the FEDEX # and take out the number and put it in the ordertracking column so it should like this
Customerid Notes OrderTracking CreateDate
12345 FEDEX #123456789 123456789 4/7/2005
This is the query I currently have. What do i have to do to split the tracking number out of the notes field and put it into the ordertracking on insert.
INSERT INTO table (Customerid, Notes,Createdate)
SELECT CustomerId,Notes,CreateDate FROM Table A
Thanks in advance