HiveBrain v1.2.0
Get Started
← Back to all entries
snippetsqlMinor

How do I join 2 columns in query result (SQL report builder)

Submitted by: @import:stackexchange-dba··
0
Viewed 0 times
resultcolumnsbuildersqlqueryjoinreporthow

Problem

As the image below shows, on my DB I also have 2 columns that appear in the results pane separately - first name and last name - (lower part of image)

How do I join them together in the report builder?

Solution

In SSRS you don't join them in the result set (unless you do it in the data source) but you can use expressions in the design to show them concatenated in your report.

Have a look at Expressions (Report Builder and SSRS).

Your expression would be something like

=Fields!FirstName.Value & Fields!LastName.Value

Code Snippets

=Fields!FirstName.Value & Fields!LastName.Value

Context

StackExchange Database Administrators Q#182830, answer score: 3

Revisions (0)

No revisions yet.