Question for the SQL gurus....
I'm researching a Data Conversion.
I've included the Table DDL and some sample Data (current data and expected results data)
The PATH column is the Primary Key.
Example Contents of Path column
Need to change to
Table DDL
Sample Data (current)
Sample Data (Expected results)
This one of a couple of tables that I am looking at for the conversion project... about 4000 rows in this table..
Any Help or advice would be greatly appreciated!
I'm researching a Data Conversion.
I've included the Table DDL and some sample Data (current data and expected results data)
The PATH column is the Primary Key.
Example Contents of Path column
Code:
templatedata\Article\ColumbiaArticle\data\2004-09_Spalding_en
Need to change to
Code:
templatedata\Article\ColumbiaArticle\data\en\2004-09_Spalding
Table DDL
Code:
Create table dbo.Article (
id int identity,
IW_State VARCHAR(255)not null,
path VARCHAR(255)not null,
contentArea CHAR(10)not null,
homepage CHAR(5)null,
title NVARCHAR(400)null,
summary NVARCHAR(1000)null,
keywords NVARCHAR(50) not null,
author NVARCHAR(50) null,
type CHAR(10) not null,
subArea CHAR(10)null,
publishDate datetime not null,
expireDate datetime not null,
articleLanguage CHAR(5)not null,
indexImage VARCHAR(255)null,
eventStartDate datetime null,
eventEndDate datetime null,
eventLocation NVARCHAR(50) null,
agentID CHAR(10) null,
ccText ntext null,
indexImageCaption NVARCHAR(100)null) ;
--------------------------------------------------
-- Create Primary Key PK_Article
--------------------------------------------------
alter table dbo.Article
add constraint PK_Article
primary key (path);
Sample Data (current)
Code:
id,IW_State,path,contentArea,homepage,title,summary,keywords,author,t
ype,subArea,publishDate,expireDate,articleLanguage,indexImage,eventStartDat
e,eventEndDate,eventLocation,agentID,ccText,indexImageCaption
244,"Original","templatedata\Article\ColumbiaArticle
\data\2002-01_wuerl_en","COL",NULL,"Reflection and Guidance","The first in
a new series of columns on Pope John Paul II's encyclicals and other major
teaching documents.","encyclicals, wuerl","Bishop Donald
Wuerl","COL","AUTH01","2002-01-01","9999-01-01","en",NULL,NULL,NULL,NULL,NU
LL,NULL,NULL
Sample Data (Expected results)
Code:
id,IW_State,path,contentArea,homepage,title,summary,keywords,author,type,subArea,publishDate,expireDate,articleLanguage,indexImage,eventStartDate,eventEndDate,eventLocation,agentID,ccText,indexImageCaption
244,"Original","templatedata\Article\ColumbiaArticle\data\en\2002-01_wuerl","COL",NULL,"Reflection and Guidance","The first in a new series of columns on Pope John Paul II's encyclicals and other major teaching documents.","encyclicals, wuerl","Bishop Donald Wuerl","COL","AUTH01","2002-01-01","9999-01-01","en",NULL,NULL,NULL,NULL,NULL,NULL,NULL
This one of a couple of tables that I am looking at for the conversion project... about 4000 rows in this table..
Any Help or advice would be greatly appreciated!