asked on
ASKER
ASKER
ASKER
ASKER
ASKER
ColorCodes (ColorIndex, Colorname, ColorCode)
1 AliceBlue #F0F8FF
2 AntiqueWhite #FAEBD7
3 Aqua #00FFFF
...
MyColorList(MyData, rowIndex, ColorIndex) and put
MyGrid 1 24
MyGrid 2 45
MyGrid 1 12
MyGridDaily 1 10
MyGridDaily 2 67
MyGridDaily 3 234
MyGridDaily 4 126
MyGridDaily 5 1
MyGridDaily 6 78
MyGridDaily 7 34
...
create view MyHTMLColors as
select cl.MyData, cl.rowIndex, cl.ColorIndex, cc.Colorname, cc.ColorCode
from MyColorList cl, ColorCodes cc
where cl.ColorIndex=cc.ColorIndex
select t.*, c.ColorCode, c.ColorIndex, c.ColorName
from (
select ..., mod(dense_rank() over(order by bookID), ((select count(1) from MyHTMLColors where MyData='MyGridDaily')))+1 ColorIndex
from yourTable
) t left join MyHTMLColors c on c.ColorIndex=x.ColorIndex and MyData='MyGridDaily'
ASKER
Oracle is an object-relational database management system. It supports a large number of languages and application development frameworks. Its primary languages are SQL, PL/SQL and Java, but it also includes support for C and C++. Oracle also has its own enterprise modules and application server software.
TRUSTED BY
What web dev product? I assume pl/sql server pages with the pl/sql tag but I have to ask.