Viewing 15 posts - 91 through 105 (of 311 total)
Sorry. I only tested it on (too) small numbers. Looks like the floor function does not work with large numbers.
December 30, 2010 at 3:45 am
You can mimick the modulo operator on floating point operands like below
with BigNumber(N, D) as
(
-- select power(cast(101 as float), 50)
select
101E50, --...
December 29, 2010 at 12:39 pm
GSquared (12/29/2010)
Peter Brinkhaus (12/29/2010)
GSquared (12/29/2010)
One guy suggested A = 41, B = 42 (not sure where he got those numbers from)
Probably hex values. 0x41 = 65, the ascii-value of a...
December 29, 2010 at 11:53 am
GSquared (12/29/2010)
One guy suggested A = 41, B = 42 (not sure where he got those numbers from)
Probably hex values. 0x41 = 65, the ascii-value of a capital 'A', 0x42...
December 29, 2010 at 11:32 am
I have to agree with Paul that there are better tools to do this kind of dynamic pivoting. Anyway, here's an alternative
DECLARE @Query VARCHAR(MAX)
DECLARE @TableNames VARCHAR(MAX)
DECLARE @Comma CHAR(1)
SELECT
@TableNames...
December 22, 2010 at 7:44 am
As John already pointed out, it is probably a better idea to split the treepath into individual nodes if you have a lot of different nodes. Here is some sample...
December 13, 2010 at 5:22 am
Well, probably not the fastest solution you can get, but maybe this on will do.
SELECT
T.TreePath,
STUFF(
(SELECT
',' +...
December 13, 2010 at 4:20 am
Why not just remove the column? Right click on the column header, select 'Delete Columns', select 'Delete columns only'.
Peter
December 8, 2010 at 11:21 pm
only4mithunc (12/8/2010)
In 2005 I'm able to do this as mentioned earlier, but the problem is with 2008 .
I have followed the steps you have mentioned.
The sorting tab also was...
December 8, 2010 at 10:46 am
only4mithunc (12/8/2010)
It didn't work.
This is what I have tried:
1) In my tablix selected the detail row
2) Right Click --> RowGroup--> Group Properties
3) In General tab,...
December 8, 2010 at 7:22 am
You can add a row group with a break on the RowNumber expression. However, you have to remove the breaking expression from the Sorting options (the group expression is automatically...
December 8, 2010 at 3:24 am
Here's another solution using a slightly modified version of Chis' test table data.
Solution:
;WITH TrimmedSentences(SentenceID, Sentence) AS
( -- Trim preceding white space of all sentences
SELECT SentenceID, LTRIM(Sentence) FROM #Sentences
),
Tally(N)...
December 3, 2010 at 6:42 am
A commonly used trick to concatenate values of a column is to use a FOR XML PATH('') subquery, i.e.
SELECT DISTINCT
ds.DeviceId,
-- Use STUFF to delete the first...
November 28, 2010 at 3:11 am
Peter Brinkhaus (11/11/2010)
November 11, 2010 at 12:35 am
Maybe this one will do. The trick is to number the childs and cars in any order you want and do a full outer join on the row numbers.
select
...
November 11, 2010 at 12:15 am
Viewing 15 posts - 91 through 105 (of 311 total)