How do I print a triangle of stars using SQL
Posted
by
Vutukuri
on Stack Overflow
See other posts from Stack Overflow
or by Vutukuri
Published on 2012-03-29T17:27:13Z
Indexed on
2012/03/29
17:28 UTC
Read the original article
Hit count: 186
Is it practically possible to create a triangle of stars like this as below in SQL.I know that this could be done easily in any other programming language like C,C++,Java but want to know whether it is really possible with just SQL or PL/SQL.I tried working on it with dual table in Oracle but couldn't get through it.
* *
* * * *
* * * or * * *
Can someone please shed somelight if anyone knows about it.
© Stack Overflow or respective owner