1

I have a table in SQL server and it's populated with data.

I would like to know how can combine them and get the data in one row? As of now, the rows show repeated below each other.

I think the reason why they are below each other is: the PK is the account number, but it has different transaction values for different dates.

For example:

Acc#          Transaction value  Transaction Date
------------  -----------------  ----------------
123658421     R2500              25-04-2018
123658421     R5235              23-04-2018

This is how I want it to be displayed:

Acc#         Transaction1  Transaction2
-----------  ------------  ------------
123658421    R2500         R5235
The Impaler
  • 45,731
  • 9
  • 39
  • 76
Z.L
  • 31
  • 4

0 Answers0