I am trying to create a derived column to concatenate a few fields together. The first field should ony contain all of the characters beginning with the 3rd character... ie
Right(colA, len(colA)-2)
The following syntax is throwing an error and I cant figure out what is wrong... The fields do contain NUlls for some records....Can any one help??
RIGHT((ISNULL(WARRANT_NUMBER_GS) ? " " : WARRANT_NUMBER_GS),LEN((ISNULL(WARRANT_NUMBER_GS) ? " " : WARRANT_NUMBER_GS) - 2)) + " " + (ISNULL(SOLICITOR_GS) ? "" : SOLICITOR_GS) + " " + (ISNULL(COURT_REPORTER_GS) ? "" : COURT_REPORTER_GS) + " " + (ISNULL(INCIDENT_NUMBER_GS) ? "" : INCIDENT_NUMBER_GS)
Right(colA, len(colA)-2)
The following syntax is throwing an error and I cant figure out what is wrong... The fields do contain NUlls for some records....Can any one help??
RIGHT((ISNULL(WARRANT_NUMBER_GS) ? " " : WARRANT_NUMBER_GS),LEN((ISNULL(WARRANT_NUMBER_GS) ? " " : WARRANT_NUMBER_GS) - 2)) + " " + (ISNULL(SOLICITOR_GS) ? "" : SOLICITOR_GS) + " " + (ISNULL(COURT_REPORTER_GS) ? "" : COURT_REPORTER_GS) + " " + (ISNULL(INCIDENT_NUMBER_GS) ? "" : INCIDENT_NUMBER_GS)