Viewing 15 posts - 61 through 75 (of 77 total)
Sorry about that. You need to add an alias to the end of the subquery.
SELECT ESO_PORT,
SUM(Ontime_s) Ontime_s,
...
August 16, 2011 at 5:40 am
I believe this will work for you.
SELECT ESO_PORT,
SUM(Ontime_s) Ontime_s,
SUM(Late_s) Late_s,
SUM(Ontime_c) Ontime_c,
SUM(Late_c) Late_c
FROM (SELECT
ESO_PORT,
case when ONTIME_S = 'On Time' then 1 else 0 end as Ontime_s,
case when ONTIME_S = 'Late' then...
August 16, 2011 at 5:29 am
Jamie Thompson wrote a blog post several years back on this:
July 28, 2011 at 11:53 am
Any chance you could open the .rdl file in BIDS? You should get something more descriptive than #Error in the BIDS error list.
May 17, 2011 at 12:46 pm
Without an error message it's hard to say but a quick guess is that you are trying to sum different data types. Since amount is probably a decimal type,...
May 17, 2011 at 9:27 am
From: http://technet.microsoft.com/en-us/library/cc785078%28WS.10%29.aspx
Computer accounts and domain assignment for cluster nodes
Make sure that the cluster nodes all have computer accounts in the same domain. Cluster nodes cannot be in a workgroup.
April 11, 2011 at 6:57 am
Before removing the order by, make sure that the SSIS package output is not sorted. You will probably be better off to leave the sort in the query instead...
April 8, 2011 at 8:33 am
You need to make sure that all of the values returned by the case expression are of the same data type. It appears that you are mixing a datetime...
December 28, 2010 at 9:24 am
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
;WITH Observations (ObservationIndex, MRN, PainScale, DateTimeDocumented) AS
(SELECT ROW_NUMBER() OVER (PARTITION BY CV.IDCode ORDER BY OD.RecordedDtm) AS ObservationIndex,
CV.IDCode,
SOBS.value,
OD.recordeddtm
FROM CV3ClientDocument CD
INNER JOIN CV3ClientVisit CV ON CD.ClientGUID =...
December 20, 2010 at 11:54 am
Try replacing your two scalar functions
dbo.GetFinancialYear
dbo.GetDepositCategory
with the SQL equivalent.
December 14, 2010 at 5:42 am
Typically you'll need to publish to ReportServer ($ instance name if not on the default instance) and not Reports. To verify the URL open the Reporting Services Configuration manager...
August 11, 2009 at 5:35 am
What I am trying to get is the alias assigned to a field when creating a view.
You can get this information from by joining sys.views to sys.columns
What I would like...
May 22, 2009 at 6:52 am
It happens to me all the time. I use this:
DECLARE @VIEW_CURSOR AS CURSOR
DECLARE @VIEW_NAME AS VARCHAR(1000)
DECLARE @STR_SQL AS VARCHAR(2000)
SET @VIEW_CURSOR = CURSOR LOCAL STATIC FOR (SELECT name...
August 28, 2007 at 5:24 am
Try starting the service in single user mode by running sqlservr -m or changing the options in EM. If you can get connected you should be able to...
June 15, 2007 at 5:45 am
Your SP should be wrapped in a transaction if it's updating data in a table. Why would this be a bad thing?
June 1, 2007 at 8:07 am
Viewing 15 posts - 61 through 75 (of 77 total)