Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 pyramid logic

Author  Topic 

learntsql

524 Posts

Posted - 2009-10-07 : 08:44:33
Please provide me the Pyramid logic.
as

*
**
***
****
.........n times(variable declared)

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2009-10-07 : 09:01:38
[code]select replicate('*', NUMBER)
from dbo.F_TABLE_NUMBER_RANGE(1, 100)
order by NUMBER[/code]


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

learntsql

524 Posts

Posted - 2009-10-07 : 09:33:26
ThankQ.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2009-10-07 : 09:43:36
quote:
Originally posted by learntsql

Please provide me the Pyramid logic.
as

*
**
***
****
.........n times(variable declared)




Where are you going to use this?

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2009-10-07 : 09:55:39
In Egypt, of course!
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2009-10-07 : 10:21:36
I was thinking Tulum

http://www.tulum.com/

I've been there



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page
   

- Advertisement -