How will you display "Mr" for male & "Mrs" for female in
target table?
Answers were Sorted based on User's Feedback
Answer / giri
Use Expression Transformation
Add new Field
Condition
IIf(fieldname='male','Mr','Mis')
This field Check Variable then
add newfield Concat(newfield,first name)
| Is This Answer Correct ? | 9 Yes | 0 No |
Here the question is to just display value 'MR'for
males 'MR'for males , not to modify the data in the table
as 'MR'for males 'MR'for males
we can do it by many ways, one among those ........
select decode(column_name, 'male','MR','female','MRS')
this query displays MR for all males and MRS for all females
| Is This Answer Correct ? | 10 Yes | 2 No |
Answer / rkumar.etl
based on flag for male and female we can use decode logic at
expression level before loading records to the target tables.
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / dragon
I agree with Rkumar.etl,
but if in the database is too old and they dont have column
flag then how you u define.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / addy
This can be done by the Expression Transformation easily.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / narinder
Assuming that the source data has some kind of identifier
to track male or female record then use the decode function
based on idetifier to store 'Mr' or 'Mrs' in a port in an
expression transformation and pass this port value to
target.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / madhusudhana reddy
decode(gender,male,'Mr',Female,'Mrs,optional)
| Is This Answer Correct ? | 1 Yes | 1 No |
How can we integrate different flat file data in a single mapping and with in a single execution
create a mapping to retrieve the employees who are getting salary greater than average salary?
please let me know which type of question arise in interview on project manager round on insurance project with answer pls reply asap.
what is the size of your data warehousing?
what are the transformations that are used in data cleansing ? and how data cleansing takes place ?
for ex: in source 10 records are there with column sal. use a filter transformation condition as Sal=TRUE and connect to target. what will happen.
without using rank transformation how can we rank items by using some other transformations
What are the tasks that source qualifier performs?
How to Create a folder using pmrep command?
scenario where i can use only concurrent execution of workflow.
How big was your fact table
hi real timers . iam waiting for ur reply regarding ETL TESTING