I need to add empty rows to a SQL SELECT statement in such a way that the result is in multiples of 10, meaning if there are 8 rows in a Tables 2 empty Rows should be added so that the select statement has 10 rows and if there are say 16 rows in a Table 4 empty rows should be added so that the select statement has 20 rows etc, etc.
In short at all times the rows selected must be 10,20,30,40, etc, etc.
1条答案
按热度按时间5t7ly7z51#
In PostgreSQL something like this should do the job: