Viewing 15 posts - 9,001 through 9,015 (of 13,882 total)
Exactly what I had in mind.
October 20, 2014 at 2:32 pm
ronan.healy (10/20/2014)
October 20, 2014 at 10:41 am
Eirikur Eiriksson (10/18/2014)
Quick window function solution, should be self explanatory😎
Eirikur, do you ever do anything slowly? 😛
October 20, 2014 at 10:36 am
Steve Jones - SSC Editor (10/20/2014)
October 20, 2014 at 10:32 am
Wow, good question.
If you were to model this in the database as you suggest, I would think that the best-performing solution would be one which generated dynamic SQL to perform...
October 20, 2014 at 10:29 am
What's the datatype of the column in the target table?
John's solution handles everything up to 999, not just 100.
October 20, 2014 at 10:20 am
compufreak (10/20/2014)
select distinct p.FormulaTypeID,p.FinancialYearID,p.VersionID,p.ProjectName,f.Formulafrom tb_Projects p
inner join tb_FormulaTypes f on p.FormulaTypeID=p.FormulaTypeID
this is still not pulling the right results 🙁
We don't know your tables, your data, your business...
October 20, 2014 at 7:06 am
OK, I think I worked it out. Do you mean something like this? By the way, please include sample DDL next time.
if object_id('tempdb..#Order', 'U') is not null
...
October 20, 2014 at 5:15 am
winston Smith (10/20/2014)
OrderID ItemName UnitPrice Quanity
1 ...
October 20, 2014 at 4:55 am
compufreak (10/20/2014)
Hi PhilI looked at the two tables and only an ID Field is common between these two.
there seems to be no description field at all.
Then where were you hoping...
October 20, 2014 at 1:33 am
Do you have a table somewhere which includes both the code and the description?
October 20, 2014 at 12:30 am
May I ask why you are using a cursor for this?
October 17, 2014 at 6:41 am
Gabriel P (10/15/2014)
So pretty much we're stuck with either Script Task or Derived Columns?
I'm not sure how a script task would help you here.
I think you may mean a script...
October 16, 2014 at 12:20 am
coreyjbaum (10/14/2014)
October 15, 2014 at 12:27 am
Viewing 15 posts - 9,001 through 9,015 (of 13,882 total)