• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Report Builder Query Concating two fields

Explorer ,
Feb 13, 2014 Feb 13, 2014

Copy link to clipboard

Copied

I have two fields that I need to concatenate after I have performed a calcutation. I am taking a school year and subtracting 5 years.

School Year = 201314. I want the result to be 200809 so that I can select any courses that have a School Year greater than 200809.

I have tried many variations of:

LEFT(sysvar.cur_schyr,4) - 5 + RIGHT(sysvar.cur_schyr,2) - 5 as "B4SchYr" this adds 2009 + 08 and gives me 2017 when I want 200809 returned. How do I treat the numeric strings as characters?

Thanks.

TOPICS
Reporting

Views

758

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Feb 19, 2014 Feb 19, 2014

Copy link to clipboard

Copied

LATEST

Use the string concatenation character (ampersand) instead of the plus sign.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation