Viewing 15 posts - 121 through 135 (of 311 total)
It's because Iif is a function and all parameters are evaluated before the function itself is evaluated. Try something like
=Split(Iif(IsNothing(Fields!Col1.Value), "~~", Fields!Col1.Value), "~").GetValue(0)
BTW: The array object returned by Split is...
July 28, 2010 at 11:54 pm
And to simplify things ...
select
'ActiveProd' = COUNT(CASE WHEN StatusID = 1 THEN 1 END),
'InactiveProd' = COUNT(CASE WHEN StatusID = 2 THEN 1 END),
'DiscontinutedProd' = COUNT(CASE WHEN StatusID = 3...
July 28, 2010 at 7:32 am
Instead of calculating a running total in T-SQL, you can use the RunningValue function in your report to calculate the running totals.
For highlighting certain values, just add an expression to...
July 28, 2010 at 7:03 am
Use the Split function, e.g.
=Split(Fields!Words.Value, "~").GetValue(1)
=Split(Fields!Words.Value, "~").GetValue(2)
=Split(Fields!Words.Value, "~").GetValue(3)
July 28, 2010 at 4:12 am
Peter Brinkhaus (5/13/2010)
select
binary_place_nbr, user_first_name,
(
select
count(*)
from
dbo.User_Registrations
...
May 13, 2010 at 11:27 am
Joe Celko (5/13/2010)
WITH Subtree(node_nbr)
AS
(SELECT T1.node_nbr
...
May 13, 2010 at 8:26 am
Half answer accidentilly posted. Removed
May 13, 2010 at 8:09 am
Joe Celko (5/12/2010)
SELECT SUM(CASE WHEN binary_place_nbr % 2 = 0
THEN...
May 13, 2010 at 2:11 am
Joe Celko (5/12/2010)
Your approach to Binary trees is wrong. Buy a copy of TREES & HIERARCHIES IN SQL and read it.
I suppose your are the author of it, otherwise...
May 12, 2010 at 1:02 pm
SELECT UNITID, COUNT(UNITID) AS TOTAL
FROM IMSV7.COMP
WHERE COMPTYPE = '38'
GROUP BY UNITID
HAVING COUNT(UNITID) > 1
May 12, 2010 at 9:40 am
Just another major performance improvement. Create an index on the temporary table #Traverse on column Nodes and include user_first_name. Then make the join condition in subqueries to concatenate user_first_name SARGable....
May 12, 2010 at 3:02 am
One simple way the speed things up is to dump the outcome of the CTE into a temporary table and then use this table in the final solution. Using a...
May 11, 2010 at 2:41 pm
mahbub422 (5/11/2010)
May 11, 2010 at 12:13 pm
Alexander de Rooij (5/11/2010)
This does exactly what I wanted, only thing is that my string is getting to long and all the text does not fit into 1...
May 11, 2010 at 5:26 am
Here's an example of string concatenation. Be sure to cast the text field to varchar(max) otherwise it won't work.
create table #ConcatTest(id int, v text)
insert into #ConcatTest
select 1, 'Aa' union all
select...
May 11, 2010 at 2:44 am
Viewing 15 posts - 121 through 135 (of 311 total)