Viewing 15 posts - 1 through 15 (of 83 total)
Hey Thanks a lot guys. Just tested the query and it runs fine! 🙂
And thanks to everyone for pointing me to the right direction of posting the ddls for my...
April 11, 2010 at 6:20 pm
Yes thats right.
I need to rank it on totalcost
April 8, 2010 at 10:52 pm
Hi Friends
Here is the ddl
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [#temp11](
[test_name] [nvarchar](50) NULL,
[Calendar_year] [int] NULL,
[Calendar_quarter] [int] NULL,
[TotalCost] [money] NULL
) ON [PRIMARY]
INSERT INTO #temp11
(test_name, calendar_year, calendar_quarter,totalcost)
SELECT 'test1',2008,1,3444.20 UNION...
April 8, 2010 at 9:14 pm
I am not sure what you mean by the 'coded answer'
But I will surely post the ddl shortly
April 8, 2010 at 8:43 pm
Hi
Thanks for ur query.
I apologise I did not make it very clear the first time...
I dont want to calculatethe percentage by highest and lowest values...
I want to do it...
January 24, 2010 at 12:38 pm
Hi
When I try to import an access database using import/export wizard in management studio and try to browse the location of the database, sql does not recognize the access...
December 1, 2009 at 12:39 pm
This query works fine.
There were some issues in my database.
Thanks
July 2, 2009 at 2:56 pm
Hi
Thanks for your reply.
I tried your query but there are still few patient IDs appearing in the result who have been on both type of Drugs..
June 30, 2009 at 9:36 pm
Here is the sample data
USE [main table]
GO
INSERT INTO [main table]([Drug name],
[calendar year],[calendar month],[quarter],[patient id])
SELECT 'typeA' ,2000,1,'q1','ac1'
UNION ALL
SELECT 'typeA' ,2001,2,'q1','qwe2'
UNION ALL
SELECT 'typeB' ,2000,1,'q1','ac1'
UNION ALL
SELECT 'typeB' ,2005,12,'q4','bgresd'
UNION ALL
SELECT 'typeB',2001,2,'q1','qwe2'
GO
Here is the...
June 30, 2009 at 3:03 pm
Hi Here is the actual DDL:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Main Table](
[Drug name] [nvarchar](255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Calendar year] [int] NULL,
[Calendar month] [int] NULL,
[Quarter] [nchar](10) COLLATE...
June 29, 2009 at 10:34 pm
Table A
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[DrugA]
AS
SELECT year1, month1, Quarter,[Patient No.]
FROM MainTable AS a
WHERE ...
June 29, 2009 at 3:54 pm
Hi
Thanks for replying.
I tried adding a border on the body of the report using properties but that border is not visible when I preview it
June 17, 2009 at 2:59 pm
The code works fine in the Management studio.
But when I use the same code in the reporting services, it gives the error for the 'CTE'.
The error says 'CTE is not...
June 14, 2009 at 9:33 pm
Hi Guys
SOrry I did not send you the actual script in my post:
Here it is
USE [DATA]
GO
/****** Object: Table [dbo].[MainTable] Script Date: 06/15/2009 14:07:06 ******/
SET ANSI_NULLS ON
GO
SET...
June 14, 2009 at 8:14 pm
Viewing 15 posts - 1 through 15 (of 83 total)