Viewing 15 posts - 46 through 60 (of 122 total)
--Check this
SELECT Name,TYPE,Price FROM
(SELECT Name, [TYPE], Price
,ROW_NUMBER() OVER (PARTITION BY NAME ORDER BY PRICE DESC) AS N FROM @t) AS A
WHERE N=1
August 29, 2012 at 12:19 am
You are right koen.Initially i got it entirely wrong about my understanding about look up transformation. What i was trying to do
Sales Table as input table and Contact table as...
August 14, 2012 at 12:11 am
No then you will have unique rows for each look up id or Contactid
August 13, 2012 at 9:20 am
Please refer this if any body has problem with this kind of issue.
August 10, 2012 at 11:42 am
Yes i do agree with you guys.Using ranking function makes life easy when deleting duplicate rows
August 7, 2012 at 1:17 pm
I got the solution what i wanted but not a good solution
SET ROWCOUNT 1
WHILE 1=1
BEGIN
DELETE FROM #Contact
WHERE FirstName IN (SELECT FirstName FROM #Contact GROUP BY FirstName
HAVING COUNT(*)>1)
IF @@ROWCOUNT=0
BREAK
END
SET ROWCOUNT 1
August 7, 2012 at 10:41 am
please send me any body has script for this scenario
July 24, 2012 at 3:14 am
To have more clarification destination table should look like
ProductID ->716
Name->Long-Sleeve Logo Jersey, XL
ProductNumber->LJ-0192-X
MakeFlag>0
FinishedGoodsFlag->1
Color->Multi
SafetyStockLevel->4
and when i preview the data,this is how the data looks
ProductID ->716
Name->Long-Sleeve Logo Jersey
ProductNumber->XL
MakeFlag>LJ-0192-X
FinishedGoodsFlag->0
Color->1
SafetyStockLevel-> Multi,4
July 24, 2012 at 12:22 am
After debugging found issue if SafetyStockLevel is less than double digit
This is how the data should be inserted in the destination table
ProductID ...
July 23, 2012 at 11:27 pm
Go it resolved
Thanks
July 22, 2012 at 9:42 pm
I am able to solve this issue
1.Change the data types for the following columns in the source
ProductID - Four byte Signed Integer(DT_I4)
Name - DT_WSTR(50)
ProductNumber - DT_WSTR(50)
2.Add derived...
July 20, 2012 at 7:40 am
User derived column to convert the boolean value to a 0 or 1
Expressions what i used in derived column for two columns MakeFlag and FinishedGoodsFlag
MakeFlag ? (DT_BOOL)1...
July 19, 2012 at 1:16 am
Can you please send me the expression. Google d to check whether i can get some thing
These are some of the examples i got it
[ColumnName] == "Y" ? (DT_BOOL)1 :...
July 18, 2012 at 1:01 pm
Sorry for the duplicate post
July 18, 2012 at 11:02 am
Viewing 15 posts - 46 through 60 (of 122 total)