I wanted to draw a dimaond like this in Sql. Can you help me please
Asked
Active
Viewed 46 times
-3
-
2Please see: [Why is “Can someone help me?” not an actual question?](http://meta.stackoverflow.com/q/284236) – Filburt Oct 04 '18 at 07:38
1 Answers
2
I have find this code in queryexamples.com there are to many examples like this
Declare @i int = 0,@max int = 11,@c int = 1
While (@i<@max)
Begin
Print space(abs((@max-@c)/2))+ Replicate('X',@c)
Set @i = @i + 1
if(@i>(@max/2))
Set @c -= 2
else
Set @c += 2
End

Hüseyin Öztürk
- 19
- 2