Viewing 15 posts - 3,361 through 3,375 (of 10,144 total)
hoseam (5/12/2014)
May 12, 2014 at 2:42 am
And you will only ever change FundID, ProductID or both?
May 12, 2014 at 2:34 am
hoseam (5/12/2014)
declare
@New_Value varchar(50),
@Col varchar(50),
@TableName varchar(50)
select @TableName = [TABLE_NAME]
from [Hosea_tblDef_Cloning_Table]
select @New_Value = [NEW_VALUE]
from [Hosea_tblDef_Cloning_Table]
SELECT '[' + t.table_schema + '].[' + t.table_name...
May 12, 2014 at 2:29 am
CREATE TABLE [dbo].[Hosea_tblDef_RETURNS](
[RETURNS_ID] [int] IDENTITY(1,1) NOT NULL,
[REPORT_ID] [varchar](50) NOT NULL,
[COMPANY] [varchar](150) NULL,
[PRODUCT_TYPE] [varchar](150) NULL,
[PRODUCT_ID] [varchar](150) NULL,
[PRODUCT_DESC] [varchar](150) NULL,
[FUND_ID] [varchar](150) NULL,
[FUND_INCEPTION_DATE] [varchar](6) NULL,
[RETURNS_TYPE_KEY] [varchar](150) NULL,
[RETURNS_TYPE_FILTER] [varchar](150) NULL,
[RETURNS_MONTH_FILTER] [varchar](150) NULL,
CONSTRAINT [PK_tblDef_RETURNS] PRIMARY...
May 12, 2014 at 2:11 am
hoseam (5/12/2014)
Any luck Chris??
No. Running your script generates the following error.
Msg 110, Level 15, State 1, Line 22
There are fewer columns in the INSERT statement than values specified in the...
May 12, 2014 at 2:01 am
Same for table Hosea_tblDef_RETURNS please - ddl and dml. Cheers.
May 9, 2014 at 6:56 am
Can you provide a few sample rows for table [dbo].[Hosea_tblDef_Cloning_Table] please?
As INSERT's to the table ddl you've already posted. Cheers
May 9, 2014 at 6:32 am
simonc 39536 (5/9/2014)
In this instance you should use ROWS because it is the more correct solution for what you are doing,
it just so happens that the ORDER BY...
May 9, 2014 at 6:29 am
What are you using to perform this ETL job? Is it just TSQL or are you using SSIS or some other tool?
"In my ETL job I would like to truncate...
May 9, 2014 at 3:24 am
J Livingston SQL (5/8/2014)
ChrisM@Work (5/8/2014)
SELECT *, Trend = ([Week]/5.0) * MAX(Forecast) OVER(PARTITION BY [TYPE])
FROM #REport
Which exactly meets your requirements (apart from the trivial matter...
May 8, 2014 at 9:22 am
Otherwise you will get answers like this:
SELECT *, Trend = ([Week]/5.0) * MAX(Forecast) OVER(PARTITION BY [TYPE])
FROM #REport
Which exactly meets your requirements (apart from the trivial matter of rounding) but is...
May 8, 2014 at 8:50 am
Nice article, Ben - does exactly what it says on the tin, although many folks lurking around here would be more familiar with the name Running Total.
The old version of...
May 8, 2014 at 1:49 am
Ed Wagner (5/7/2014)
ChrisM@Work (5/7/2014)
The OP's posting history suggests a haphazard way of working which can be difficult for responders to correctly interpret.
I think this is a very nice way to...
May 7, 2014 at 7:00 am
SELECT [stuff]
FROM [thing]
WHERE
(demo_code = 'DE1' AND demo_vchar_data = 'U')
OR
(demo_code = 'RAP' AND demo_vchar_data = 'YES')
May 7, 2014 at 6:15 am
Viewing 15 posts - 3,361 through 3,375 (of 10,144 total)