Viewing 10 posts - 16 through 25 (of 25 total)
Do you think if this wold help ?
CREATE FUNCTION dbo.IsNumericEx( @value nvarchar(max) )
RETURNS BIT
AS
BEGIN
DECLARE @isInt BIT
...
October 30, 2012 at 11:37 am
Please Look at below statement where There is anInvalid use of bracket and Select statement.
Your code is little bit confusing.
AppServerSource = (Select IsNull(t1.ServerName,t2.ServerName) as ServerName
I tried to fix as...
October 29, 2012 at 8:12 pm
Here is my two cents.
You don't need a Case Statement. Just simple One Line Query would work fine.
declare @MyTable as table
(
Column1 int,
Column2 int,
Column3 int,
column4 int
);
insert @MyTable values (0,6,0,0);
insert...
October 29, 2012 at 2:53 pm
SSCRookie,
Your logic is perfect. It is a good strategy to save some coding by using Full Outer Join and CASE istead of lousy Left/Right/Inner join and Union. Thanks for...
October 29, 2012 at 2:09 pm
Select T1.ServerName, T1.ApplicationName, T1.ApplicationID, AppServer = 'Combined'
from Table1 T1
inner join Table2 T2 ON T1.ServerName = T2.ServerName
and T1.ApplicationID = T2.ApplicationID
UNION All
Select T1.ServerName, T1.ApplicationName, T1.ApplicationID, AppServer = 'Table1'
from Table1 T1...
October 29, 2012 at 1:51 pm
Salute Sir capnhector
It took me a while to understand your final solution, however, could not understand fully 🙂
Thank you,
T_Dot_Geek
October 26, 2012 at 8:35 am
Unfortunately, both logic not giving a desired order.
October 24, 2012 at 3:16 pm
capnhector (10/24/2012)
T_Dot_Geek (10/24/2012)
SELECT TaskID, BaseTaskID, SortID = Case When BaseTaskID = 0 THEN TaskID ELSE BaseTaskID END
order by...
October 24, 2012 at 3:11 pm
Create a new calculated SortID column and add it in order by clause
SELECT TaskID, BaseTaskID, SortID = Case When BaseTaskID = 0 THEN TaskID ELSE BaseTaskID END
order by SortID
October 24, 2012 at 1:34 pm
Appriciate your work Andy.
This excellent Trick to perform dynamic grouping and sorting.
Each single point has a very clear explanation and there is no mystery or left unexplained.
It is very easy...
October 24, 2012 at 12:24 pm
Viewing 10 posts - 16 through 25 (of 25 total)