|
|
-
Madhivanan Commented 2 Years ago through Blogs | 1 Point
Becuase SPACE and REPLICATE functions by default will return only 8000 characters...
|
-
Madhivanan Commented 2 Years ago through Blogs | 1 Point
Thanks and wishing you the same...
|
-
Madhivanan Commented 2 Years ago through Blogs | 1 Point
Sergejack, It is not possible to use a user defined variable in the ORDER BY Clause. However you can use system variables which are omitted by default...
|
-
Madhivanan Commented 2 Years ago through Blogs | 1 Point
<<
SQL Server is clever enough not to even care about trying to order a single row result set.
>>
That is the point of my point and so is title as Fun :)...
|
-
Madhivanan Commented 2 Years ago through Blogs | 1 Point
Sergejack , I am aware of what you say. But the point of this blog post is about the behavior involved in ORDER BY Clause for invalid expressions. In some cases SQL Server omits the expression in some cases it evaluates. You can see it from the examples...
|
-
Madhivanan Commented 2 Years ago through Blogs | 1 Point
Note that SQL Server also supports this function. You can also use CASE Expression
CASE WHEN expression1= expression2 then NULL ELSE expression1 END...
|
-
Madhivanan Commented 2 Years ago through Blogs | 1 Point
While COALESCE is in ANSI-standard, SQL Server supports it along with it's own function ISNULL()...
|
-
Madhivanan Commented 2 Years ago through Blogs | 1 Point
marc_jellinek@hotmail.com , that is a good point. But I have just pointed out that it is possible to create like that....
|
-
Madhivanan Commented 2 Years ago through Blogs | 1 Point
The SQL Server's equivalent is
select right(PlayerFirstName+replicate('*',10)),10) RPadExample ,right(replicate('*',10))+PlayerFirstName,10) LPadExample From tblPlayers...
|
-
Madhivanan Commented 2 Years ago through Blogs | 1 Point
Hima, The last example shown in the post is for SQL Server. Oracle use LENGTH function...
|