Viewing 15 posts - 1 through 15 (of 33 total)
Carlo Romagnano (4/7/2014)
happycat59 (4/7/2014)
April 7, 2014 at 2:27 am
david.wright-948385 (2/12/2014)
Always add brackets when mixing operators. Even if you know the rules, brackets make a calculation less prone to misunderstanding.
+1
February 12, 2014 at 3:45 am
Hi,
Try something like this
With Member [Period].[Total] as ( [Period].[Jun] + [Period].[Jul])
SELECT CROSSJOIN( { [Fiscal_Year].[2014] },
{ [Period].[Total] },
{ ADDCALCULATEDMEMBERS([Function].[All Function].Children) })
ON 0 ,
NON EMPTY CROSSJOIN( { [Fund].[10]}, { [Account_Code].[ABCD] })...
October 16, 2013 at 3:32 am
Koen Verbeeck (1/8/2013)
I spend 5 minutes looking for a mistake, only to finally decide there wasn't one, all joins seemed legit. I...
January 9, 2013 at 12:30 am
Hi,
I was just paling around with the query and got this:
declare @x xml
set @x =
'<root>
<row value="US">
<col value="00">Jon</col>
<col value="01">David</col>
<col value="02">Mike</col>
<col value="03">Nil</col>
</row>
<row value="Canada">
<col value="C1">Pollard</col>
</row>
<row value="Japan">
<col value="J1">Yin</col>
<col value="J2">Li</col>
</row>
<row value="India">
<col value="MP">Ram</col>
<col value="UP">Paresh</col>
<col value="AP">Mohan</col>
</row>
</root>'
select v.value('../@value','varchar(100)'),...
December 25, 2012 at 3:38 am
Hi
Did you try DATEDIFF(day, Docket_EngFinish , getdate())=1 ?
The datediff by day checks only the day part and not the time.
October 23, 2012 at 9:08 am
honza.mf (7/16/2012)
Nice one.But it's very hard to count the chars early in the morning. Luckily the string in b is not 31 or 32 characters long.
+1
I copied the strings to...
July 16, 2012 at 2:19 am
Thanks Gail,
I knew that there must be some reason for the longer version.
July 15, 2012 at 4:41 am
Hi Gail,
I wonder if there is a difference between your update query and this:
update TblGas
set TblGas.MedianCo= t.MedianCo
FROM Total AS t
where TblGas.ID_NO= t.ID_No
when I compeer the Execution Plans they look...
July 15, 2012 at 3:36 am
Nice and easy one for me as i'm using it on a daily base cause this is my date format, but miss clicked and got it wrong :blush:
June 6, 2012 at 1:37 am
Hi,
I combined the 2 codes you supplied and got this
create table #temp
(
ID nvarchar(20),
SubID smallint,
lOC NVARCHAR(3),
Complete tinyint,
Oper_num int
)
insert #temp (ID, SubID, LOC, Complete, Oper_num)
values
('J000000001', 0000, 'W10', 1, 3),
('J000000001', 0000, 'W10',...
September 21, 2011 at 9:10 am
Hi,
first of all grate article.
I just used the (./text())[1] modification and got results with length over 70K chars!
Kupy
January 18, 2011 at 9:16 am
Hi,
I'm happy that I can help.
The row number help with cause we have a new column to group by. If you'll add the rnum to the outer select you'll see...
January 18, 2011 at 7:46 am
Viewing 15 posts - 1 through 15 (of 33 total)