Viewing 15 posts - 16 through 30 (of 33 total)
What you posted makes sense. I tried it out for those two entry codes WFC & DCM and it seems to work fine, with the exception that I had to...
August 2, 2005 at 8:09 am
Good point, I would create a view, however w/ the amount of data that will be contained in the table (millions of rows) the requirement is aggregate all data first,...
July 22, 2005 at 1:14 pm
Thanks for pointing me in the right direction. Utilizing your logic, I modified my query as shown below:
SELECT
cast(C.LABORLEV3DSC + '(' + C.LABORLEV3NM + ')' as varchar(255))AS Facility,
cast(C.LABORLEV2DSC + '('...
July 22, 2005 at 1:03 pm
Here's the table design
CREATE TABLE [dbo].[PunchTrend] (
[Facility] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[District] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[Division] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[EntryType] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL...
July 22, 2005 at 11:10 am
The requirements have changed a bit so I removed the date range clause and inserted the data into a flat table that looks like this: