Ben Hamilton

Using a ternary expression to check if a value is null

Simple test to see if a field is null. I’m using this in Talend to determine if I copy the value into a new note field. You could use a length test, but if the field is a date, then you need to do it this way. row1.field1 != null ? do_this_if_true : do_this_if_false

Posted in How to | Tagged , , | Comments Off on Using a ternary expression to check if a value is null

Multiple ternary expressions

This is how to use Talend to concatenate multiple columns (fields) into one field neatly. Say we have three fields, row1.field1, row1.field2, row1.field3 that we want to insert into a output.notes column. In the tMap component, use the following expression: (StringHandling.LEN(row1.field1) > 0 ? “Field 1: “+row1.field1+” ” : “”)+(StringHandling.LEN(row1.field2) > 0 ? “Field 2 […]

Posted in How to | Tagged , , | Comments Off on Multiple ternary expressions

Using a ternary operator in Talend Open Studio

I’m currently preparing some data for import into SugarCRM for a client. The source data has a column that contains the given names (i.e. “Jane Mary”) and a second column containing the surname (i.e. “Doe”). Using Talend Open Studio we want to separate the given names into first_name and middle_names columns. So, how do we […]

Posted in How to | Tagged , , | Comments Off on Using a ternary operator in Talend Open Studio

Talend phone number handling example

Talend phone number handling example.

Posted in How to | Tagged , , , | Comments Off on Talend phone number handling example

Why keeping data clean in a database is important

Every user of a database is responsible for ‘gardening’ the database, removing the ‘weeds’, watering and maintaining it. Otherwise this sort of thing occurs. Dad gets OfficeMax mail addressed ‘Daughter Killed In Car Crash’

Posted in ACT!, SQL, SugarCRM | Tagged | Comments Off on Why keeping data clean in a database is important

Mobile Data

Pay attention, if you’re not thinking mobile, you’ll get left behind: Mobile data traffic is now outpacing fixed broadband traffic. Last year, it grew 4.2 times as fast. via Mobile Only.

Posted in General | Tagged , | Comments Off on Mobile Data