Viewing 15 posts - 1,831 through 1,845 (of 3,011 total)
This shows how to avoid repeating the expression code withing the case statement by using a derived table in a subquery. This will work for any arbitrary complex expression.
select
a.*,
MyResult...
April 17, 2009 at 9:22 pm
CH&HU (4/17/2009)
I will definitely try the procedure and will keep the improvements posted.
One more question : can't we stop a user account or login account deleting the data from...
April 17, 2009 at 8:58 pm
GSquared (4/17/2009)
Michael Valentine Jones (4/17/2009)
April 17, 2009 at 8:27 pm
There is no problem. SQL Server is working as designed and as documented.
When you cast a zero length string to datatype of datetime, it casts it to the SQL...
April 17, 2009 at 1:15 pm
OK, as long as we are doing useless SQL, I want to add numbers together without using any Arithmetic, Logical, Assignment, String, Bitwise, or Unary Operators or any Mathematical or...
April 17, 2009 at 1:07 pm
select
Material,
sum(case Status when 1 then Qty else 0 end)-
sum(case Status when 0 then Qty else 0 end) as Qty
from
MyTable
group by
Material
order by
Material
April 15, 2009 at 8:58 pm
Bob Abernethy (4/15/2009)
...I'm sure that the vast majority of the decision-makers in these thousands of companies are intelligent profesisonals who went through a valid decision-making process that took into account...
April 15, 2009 at 8:10 pm
Maybe you should learn to use what is available in SQL Server, like REVERSE, instead of spending time duplicating what is already available.
April 15, 2009 at 4:09 pm
pshvets (4/14/2009)
I am trying to write a function which reverses passed string WITHOUT using any built-in functions
So if 'abc' is passed, it returns 'cba'
I want to use recursion. Here...
April 15, 2009 at 12:06 pm
RBarryYoung (4/10/2009)
Florian Reischl (4/10/2009)
HiSince your count of databases is not too much you can use a VARCHAR(8000) and Barry's suggestion to use the INFORMATION_SCHEMA.TABLES:
Unfortunately Flo, the INFORMATION_SCHEMA views do not...
April 10, 2009 at 10:00 am
Theunis Viljoen (4/10/2009)...We are currently looking at encryption tools such as SQL Shield 4 as an effective encryption tool for SQL 2005. I would be interested to read any feedback...
April 10, 2009 at 9:34 am
The only time I have seen SQL Server procedure encryption used was for a vendor product.
I decrypted and looked at a few of the procedures. They appeared to have...
April 10, 2009 at 9:25 am
If you want to show a special status for a poster, you might consider some kind of SSC MVP status (Most Valuable Poster?) that you setup, instead of using Microsoft’s...
April 10, 2009 at 7:56 am
The quality of a response depends on what you say, not who you are.
This is a discussion board, not a place to receive pronouncements from on high. The value...
April 9, 2009 at 9:17 am
Lowell (4/8/2009)
April 8, 2009 at 6:00 pm
Viewing 15 posts - 1,831 through 1,845 (of 3,011 total)