Viewing 15 posts - 886 through 900 (of 2,647 total)
Hmm... I'm kind of confused. Is there an application accessing the data? Where did you create the ODBC connection? Are you dropping Access once SQL Server is added or...
May 22, 2012 at 1:16 pm
slimjen (5/22/2012)
May 22, 2012 at 12:53 pm
SQL Kiwi (5/22/2012)
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,...
May 22, 2012 at 12:47 pm
It will be hard for me to describe it here in a forum. Please look at this link (http://agilebi.com/jjames/2010/09/10/how-to-pivot-data-in-ssrs/) or google matrix columns SSRS.
May 22, 2012 at 12:44 pm
Beginner2012 (5/22/2012)
SQLKnowItAll (5/22/2012)
Beginner2012 (5/22/2012)
Hello,I'm using SSRS..Any clue how to perform such transpose in SSRS ?
Thank you
You would take the column name that you want (Code) and drag it into the...
May 22, 2012 at 12:39 pm
chalbert (5/22/2012)
Where should datediff go?
Try this:
Select
dbo.b_ENROLLMENT.MEMBER_DOB_DATE,
dbo.b_ENROLLMENT.EFF_DATE,
dbo.b_ENROLLMENT.MED_ID,
dbo.b_ENROLLMENT.PLAN_CODE as aid1,
dbo.p_DMAS_MEDICAL_TRANSITION.recip as recipno,
dbo.p_DMAS_MEDICAL_TRANSITION.SEX as sex,
CASE
WHEN dbo.p_DMAS_MEDICAL_TRANSITION.SEX = 'M' THEN 1
WHEN dbo.p_DMAS_MEDICAL_TRANSITION.SEX = 'F' THEN 0
END AS MALE,
CASE
WHEN dbo.b_ENROLLMENT.PLAN_CODE = '450' OR dbo.b_ENROLLMENT.PLAN_CODE =...
May 22, 2012 at 12:34 pm
chalbert (5/22/2012)
Msg 207, Level 16, State 1, Line 22
Invalid column name 'aid'.
Msg 207, Level 16, State 1, Line 22
Invalid column name 'aid'.
Msg 207, Level 16,...
May 22, 2012 at 12:30 pm
Beginner2012 (5/22/2012)
Hello,I'm using SSRS..Any clue how to perform such transpose in SSRS ?
Thank you
You would take the column name that you want (Code) and drag it into the Column section...
May 22, 2012 at 12:14 pm
Holy parentheses Batman! I cleaned this up a bit and bolded the problem section.
Select
dbo.b_ENROLLMENT.MEMBER_DOB_DATE,
dbo.b_ENROLLMENT.EFF_DATE,
dbo.b_ENROLLMENT.MED_ID,
dbo.b_ENROLLMENT.PLAN_CODE as aid,
dbo.p_DMAS_MEDICAL_TRANSITION.recip as recipno,
dbo.p_DMAS_MEDICAL_TRANSITION.SEX as sex,
CASE
WHEN dbo.p_DMAS_MEDICAL_TRANSITION.SEX = 'M' THEN 1
WHEN dbo.p_DMAS_MEDICAL_TRANSITION.SEX = 'F' THEN 0
END...
May 22, 2012 at 12:10 pm
Here is the link I use: http://msdn.microsoft.com/en-us/library/ms191516.aspx
May 22, 2012 at 11:59 am
andersg98 (5/22/2012)
May 22, 2012 at 11:39 am
Can you run a server-side trace for a bit and see what it comes up with?
May 22, 2012 at 11:26 am
Cadavre (5/22/2012)
SELECT Num,
((SELECT bits
FROM (SELECT SUBSTRING(CAST(Num AS VARCHAR(19)),n,1),
Num
FROM...
May 22, 2012 at 11:09 am
Cadavre (5/22/2012)
SELECT Num,
((SELECT bits
FROM (SELECT SUBSTRING(CAST(Num AS VARCHAR(19)),n,1),
Num
FROM...
May 22, 2012 at 11:00 am
Viewing 15 posts - 886 through 900 (of 2,647 total)