Comments on: Made to order: Eirik’s Hi-Lo Chart in SQL – extending the SQL Chart Palette (Pie, Stacked Bar Chart, Gauge, Gantt,…) https://technology.amis.nl/2007/05/14/made-to-order-eiriks-hi-lo-chart-in-sql-extending-the-sql-chart-palette-pie-stacked-bar-chart-gauge-gantt/ Friends of Oracle and Java Thu, 21 May 2015 20:49:51 +0000 hourly 1 http://wordpress.org/?v=4.2.2 By: choff https://technology.amis.nl/2007/05/14/made-to-order-eiriks-hi-lo-chart-in-sql-extending-the-sql-chart-palette-pie-stacked-bar-chart-gauge-gantt/#comment-4608 Mon, 14 May 2007 21:47:10 +0000 http://technology.amis.nl/blog/?p=1965#comment-4608 Thank you for your article.I know more

]]>
By: Anton Scheffer https://technology.amis.nl/2007/05/14/made-to-order-eiriks-hi-lo-chart-in-sql-extending-the-sql-chart-palette-pie-stacked-bar-chart-gauge-gantt/#comment-4607 Mon, 14 May 2007 14:47:53 +0000 http://technology.amis.nl/blog/?p=1965#comment-4607 Why use a separate function (string_table_to_string) and type (string_table_collection)? You can use something like the following SQL to do the same.

Anton

( select markers
from ( select marker markers
, rn
from marker_values
, chart_dimensions
model
dimension by (row_number() over (order by marker_value desc) rn)
measures (rpad(marker_value, width /(marker_count-1) ) marker)
rules ( marker[any] order by rn desc = marker[cv()+1] || marker[cv()] )
)
where rn = 1
)

]]>