Viewing 15 posts - 586 through 600 (of 8,416 total)
L' Eomot Inversé (5/22/2012)
May 22, 2012 at 3:30 pm
Sean Lange (5/22/2012)
May 22, 2012 at 3:25 pm
I would probably implement this in a SQLCLR scalar function, but this is another option for T-SQL:
SELECT
REPLICATE('0', LEN(f.string) - LEN(REPLACE(f.string, '0', ''))) +
...
May 22, 2012 at 1:29 pm
WayneS (5/22/2012)
Has anyone heard from Gianluca since the earthquake in northern Italy? I think he's up in that area, and just want to make sure that he's okay.
His last tweet...
May 22, 2012 at 1:06 pm
Stefan Krzywicki (5/22/2012)
Lynn Pettis (5/22/2012)
If people would just format their code they could figure out some of their own problems. Geez.
Many should format it all at once, like with...
May 22, 2012 at 1:03 pm
Sean Lange (5/22/2012)
I wasn't even going to mention that Paul, there look to be so many other possible issues with this.
You both make very reasonable points there :laugh:
May 22, 2012 at 12:56 pm
chalbert's code
DATEDIFF(YY,dbo.b_ENROLLMENT.MEMBER_DOB_DATE,GETDATE()) as age
This doesn't compute someone's age. It needs a formula like:
Age =
CASE
WHEN DATEPART(DAY, dbo.b_ENROLLMENT.MEMBER_DOB_DATE) > DATEPART(DAY, GETDATE())
...
May 22, 2012 at 12:42 pm
Beginner2012 (5/22/2012)
Is it possible to make this dynamic, because I do not know how many different codes I have?
Yes, but you don't want to do it in T-SQL code,...
May 22, 2012 at 12:26 pm
SQLKnowItAll (5/22/2012)
So this part: "DATEDIFF(YY,dbo.b_ENROLLMENT.MEMBER_DOB_DATE,GETDATE( )) as age,temp.PLAN_CODE)temp" is misplaced, and I'm not really sure where it is supposed to go.
I had the same problem:
May 22, 2012 at 12:23 pm
Beginner2012 (5/22/2012)
I'm using SSRS..Any clue how to perform such transpose in SSRS?
Now you tell us :laugh:
May 22, 2012 at 11:57 am
The is one way to implement a pivot with totals:
-- Sample table
DECLARE @data AS TABLE
(
Code tinyint NOT NULL CHECK...
May 22, 2012 at 11:56 am
umar.memon (5/22/2012)
I have a table in which there are comma delimited fields...
You don't say whether this design is yours or not, but if you have the option of changing it,...
May 22, 2012 at 11:36 am
archie flockhart (5/22/2012)
But to reply to Paul's direct question and to your list of possible results above: if I could choose, I'd return FLOAT data.
Fair enough, that's an arguably good...
May 22, 2012 at 11:28 am
michael vessey (5/22/2012)
SQL Kiwi (5/22/2012)
michael vessey (5/22/2012)
when you perform deletes on a heap the space is not reclaimed.Unless a table lock is taken (and/or specified).
ah yes - i forgot to...
May 22, 2012 at 8:46 am
Hugo Kornelis (5/22/2012)
There is no data type conversion....
May 22, 2012 at 8:44 am
Viewing 15 posts - 586 through 600 (of 8,416 total)