Viewing 15 posts - 1 through 15 (of 17 total)
Cool - - Just explaining how I did it.
Thanks for the advice.
September 21, 2006 at 4:18 pm
Yes, I had to use the (Select * ) and all values had to be at the end of my join.
For it to work in DTS, I had to...
September 21, 2006 at 3:16 pm
Now, I have the results, but will the DTS accept Temp tables in the results when it trys to transform?
Select * from myview mv
left join (Select Reason1,Reason2,Reason3,Reason4 from #ResponseList) as...
September 21, 2006 at 10:27 am
I got it to work - - Move the Insert out of the loop and add
SET @Response1 = null
SET @Response2 = null
SET @Response3 = null
SET @Response4 = null
September 21, 2006 at 10:04 am
Jeff,
The requirements for the report also extend into many more *frustrating* things but, long story short, I had to create a view to manipulate the data the way they wanted. ...
September 21, 2006 at 9:11 am
I started something like this....but needs work
CREATE TABLE #ResponseList
(
OpportunityId varchar(15),
Reason1 varchar(150),
Reason2 varchar(150),
Reason3 varchar(150),
Reason4 varchar(150)
)
Declare cOpp CURSOR FOR
SELECT REASON, OpportunityId FROM OPPORTUNITY WHERE (NOT (REASON IS NULL))
Declare @OpportunityID varchar(12)
Declare @Reason varchar(250)
Declare...
September 21, 2006 at 8:48 am
They want it in a flat file.
September 21, 2006 at 8:44 am
Yes, it is for a report.
September 21, 2006 at 8:37 am
How the data currently lives:
Response MYId
First Response, Second, Third XYZ1234
Hello, How, Are, You UUU3333
The data was not placed in a one to many table from the beginning, but instead of normalizing...
September 21, 2006 at 8:26 am
I found a post that you cannot do what I am trying in SQL 2000
Passing column names as parameter to a table-valued UDF is not allowed in SQL 2000.
But if...
September 20, 2006 at 12:45 pm
I am using a Multi-statement Table-Valued Function
I tryed this and i get an error when trying to use a value from table a
Line 2: Incorrect syntax near '.'.
Select * from...
September 20, 2006 at 12:36 pm
1.) Field has many values that are separated by commas (Code for this above)
2.) The values then need to be Columns for the original query.
Current Fields within a view:
MyId | ...
September 20, 2006 at 12:04 pm
--QuarterOfYear
Set DateFirst 6
Select (DatePart(wk, getDate())/13) + 1 as QuarterOfYear
I did this to know the Quarter of the Year I am in. I have to pass a function Today's Date...
August 24, 2006 at 8:52 am
I got it SubSelect
SELECT cs.Name, COUNT(req.RequestId) AS Total
FROM dbo.tblRequest req RIGHT OUTER JOIN (SELECT * FROM tblImplementer WHERE UserID = @ImplementerId) AS
tblImplementer ON req.RequestId = tblImplementer.RequestId RIGHT OUTER JOIN
...
April 6, 2006 at 1:14 pm
Viewing 15 posts - 1 through 15 (of 17 total)