Viewing 4 posts - 1 through 4 (of 4 total)
The with statement is something I've never used before. What a great way to create a quick subset to use in other queries. I think this does it...
June 30, 2008 at 3:05 pm
It does matter if they went active and inactive on the same day. If the order on that day was active at 10:00am and then inactive at 12:00pm, then...
June 30, 2008 at 2:46 pm
Thanks for your quick response.... Here is the code to create the table and sample data
CREATE TABLE [dbo].[account_DeactivationReactivationHistory](
[ID] [bigint] IDENTITY(1,1) NOT NULL,
[account_id] [int] NOT NULL,
[Active] [bit] NOT NULL,
[status_date] [datetime] NOT...
June 30, 2008 at 2:45 pm
Not exactly... what I need is to be able to pass a date range and account id to a function and it return to me if that account id was...
June 30, 2008 at 2:36 pm
Viewing 4 posts - 1 through 4 (of 4 total)