I
I
Ivan2016-10-20 07:22:27
SQL Server
Ivan, 2016-10-20 07:22:27

How to split rows in one column into two two columns?

There is a table with two columns. One stores the name of something, and the second stores the price of that something.
Position 1 Price 1
Position 2 Price 2
Position 3 Price 3
Position 4 Price 4
I need to divide them into 4 columns, every 20 lines
Position 1 Price 1 Position 3 Price 3
Position 2 Price 2 Position 4 Price 4
How can I do this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Shumkin, 2016-10-21
@ashumkin

How to split a table by two columns in FastReport?
?

I
Ivan, 2016-10-26
@habrakot

The MasterData Object has two parameters Column (number of columns) and ColumnWidth (column width). Specify the parameters and take out the required fields. Ready.
Columns occupy the width of the sheet evenly. I don’t know if it’s possible to make them of different widths, it would be great, because the field with prices does not take up much space in itself.
e7b8a31cc8034f05a332e0f3246fecb5.JPG

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question