Viewing 15 posts - 1 through 15 (of 20 total)
You can't put a list (2011, 2012) into an int!
If you want to select multiple years, you will need to look at changing your stored proc to accept a varchar...
June 27, 2011 at 9:37 am
What I want to do to compile the data, is to import the results of Table A, up until a cutoff point of December 4th, 2008. This is where the...
May 11, 2011 at 8:15 am
Thanks everyone, the report is working and I appreciate all your help.
March 9, 2011 at 8:46 am
Thanks Lynn, I apologise if I am going about this all wrong, please bear with me.
Here is the Create table query:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[#mytable](
[Sector] [nvarchar](255) NULL,
[Region] [nvarchar](255)...
March 8, 2011 at 11:56 am
Thank you for your help, as it stands I have never tried the Self Join as of yet, much appreciated.
I apologise if I didn't make myself clearer before, but what...
March 8, 2011 at 10:00 am
Thanks for your help, but all the data is in one table.
Is there another way to script it without using joins?
March 8, 2011 at 6:27 am
Here is another sample of the table, what I need to know is how to script the query for the percentage change of current month from previous month, i.e. Jan...
January 26, 2011 at 6:42 am
Attached is the table, I am trying to get a comparison of each month % changes from 2010 to 2010.
Although, since it is only January, I can only do this...
January 25, 2011 at 1:48 pm
Thank you so much, I was also trying the ISNULL function, but couldn't get it in the right spot!
January 25, 2011 at 10:48 am
where specifically in the query should i use the Collate function?
I already have it in the middle part of the query.
October 7, 2008 at 9:44 am
There are two databases called OCC and OCC_ARCHIVES.
OCC has the collation setting Latin1_General_CI_AS
- tables MCommOpenOrders, tbl_R15OrdersToday and Zones are under this database
OCC_ARCHIVES has the collation setting Latin1_General_CI_AI
- table tbl_R15_analysis...
October 7, 2008 at 9:21 am
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[ZONES](
[ZoneProfile] [varchar](20) COLLATE Latin1_General_CI_AS NULL,
[Dispatchareas] [varchar](20) COLLATE Latin1_General_CI_AS NULL,
[Dispatchregions] [varchar](20) COLLATE Latin1_General_CI_AS NULL,
[Sector] [varchar](20) COLLATE Latin1_General_CI_AS NULL,
[TierC_Group] [varchar](10) COLLATE Latin1_General_CI_AS NULL
) ON...
October 3, 2008 at 1:17 pm
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[MCommOpenOrders](
[JOBID] [varchar](20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[SERVICEORDERNUM] [varchar](6) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DUEDATE] [datetime] NULL,
[ORIGINALDUEDATE] [datetime] NULL,
[JOBSTATUS] [varchar](20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DISPATCHUNITID] [varchar](10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[STATUSUPDATEDBY] [varchar](15)...
October 1, 2008 at 10:23 am
I don't think it has restricted rights, I am logging in throught Management Studio as well.
Hope this helps.
September 15, 2008 at 8:37 am
Viewing 15 posts - 1 through 15 (of 20 total)