Viewing 15 posts - 12,226 through 12,240 (of 26,486 total)
adrian.facio (5/3/2012)
May 3, 2012 at 1:20 pm
adrian.facio (5/3/2012)
May 3, 2012 at 1:06 pm
Similar to the above:
CREATE TABLE dbo.Entries
(
entriesID INT IDENTITY(1,1) NOT NULL
,name VARCHAR(20) NOT NULL
,packageLevel TINYINT NOT NULL
);
INSERT INTO dbo.Entries (name,packageLevel) VALUES ('aa',0);
INSERT INTO dbo.Entries (name,packageLevel) VALUES ('bb',1);
INSERT INTO dbo.Entries (name,packageLevel) VALUES...
May 3, 2012 at 1:01 pm
adrian.facio (5/3/2012)
;WITH CivilStatus (StatusSequenceNumber,[Marital_Status])
AS
(
SELECT 1,'SINGLE' UNION
SELECT 2,'MARRIED' UNION
SELECT 3,'DIVORCED' UNION
SELECT 3,'WIDOWED'
),
PersonCivilStatus
AS
(
SELECT d.empno,d.marital_status,d.status_change_date,
Sequence = row_number() over (partition by empno order by status_change_date),
StatusSequenceNumber
FROM #temp_delete_duplicate d
INNER JOIN...
May 3, 2012 at 12:44 pm
ColdCoffee (5/3/2012)
May 3, 2012 at 12:10 pm
komal145 (5/3/2012)
1) needed the name...
May 3, 2012 at 12:05 pm
SSC is at 1,499,895 and counting!
May 3, 2012 at 12:03 pm
Actually, in my code above, just insert your source table for the derived table in the from clause of the cte I marked for replacement.
You may have to make some...
May 3, 2012 at 11:59 am
Here is my solution:
DECLARE @StartDate DATETIME;
SET @StartDate = '20111208'; -- Sample start date
WITH
e1(n) AS (SELECT 1 UNION ALL SELECT 1 UNION ALL SELECT 1 UNION ALL SELECT 1 UNION ALL...
May 3, 2012 at 11:53 am
Tony Farrell-305085 (5/3/2012)
I am sorry....
The user will select one day from the interface screen.
The stored proc will take that date and gather only the logins for that date.
Breaking the...
May 3, 2012 at 11:22 am
Now, a question. Do we need to satisfy both the requirements here and the other thread? You had one string in the other thread that you wanted the...
May 3, 2012 at 11:19 am
komal145 (5/3/2012)
Hi..it was by me only!!!I tried but its not working for the string types mentioned above.
For future reference, you really should have continued using that thread and expanded on...
May 3, 2012 at 11:17 am
Just to be sure, my problem is that I'm not sure where to start to help you solve this problem and I need your help to do it. The...
May 3, 2012 at 11:13 am
Grant Fritchey (5/3/2012)
Sean Lange (5/3/2012)
/soapbox on
We are starting to lean too far to the arrogant side with many of our replies (and yes I...
May 3, 2012 at 11:11 am
SQL Kiwi (5/3/2012)
Lynn Pettis (5/3/2012)
SQL Kiwi (5/3/2012)
One possible test is to imagine one's mother reading the post before hitting 'reply' and wondering if it would make her proud.
Not trying to...
May 3, 2012 at 10:33 am
Viewing 15 posts - 12,226 through 12,240 (of 26,486 total)