on 01-23-2015 8:42 AM
If the columns with data are brought in as input schema then it is fairly straightforward as mentioned by other experts in this chain. There is no need to write a sql function within the mapping. It will definitely have an impact on performance when you are handling large volumes.
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It will actually produce totally incorrect results, as you may have noticed.
The sql function returns the first 1020 characters from the query output. Typically, if the sql command passed as parameter is a SELECT statement, the return value is the first row value of the first column. And that happened to be 5 in this case.
Hi,
Just you can do the mapping like below:
In the mapping tab for the new column
(column1 * coumn2)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try PRICE * QTY in the mapping for TotalPrice
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.