Viewing 15 posts - 12,241 through 12,255 (of 26,486 total)
Tony Farrell-305085 (5/3/2012)
The user will select the day from the front end...
This is the data i am drawing from...
TimeIn
2011-09-08 19:16:38.127
2011-09-14 13:59:05.913
2012-02-21 18:34:20.830
2011-09-05 17:32:59.753
2012-03-22 13:24:34.957
2012-03-22 13:24:17.957
2010-12-13 18:29:05.660
2011-12-08 13:19:57.497
2010-10-27...
May 3, 2012 at 10:27 am
This looks like an extension of this one, just by a different poster. I wonder if this may be homework for a class?
May 3, 2012 at 10:20 am
Could show you what needs to be done, but your post is light on information.
Is this for a single day, multiple days, current day, yesterday, a specified day?
Please read the...
May 3, 2012 at 10:05 am
SQL Kiwi (5/3/2012)
I'm not sure The Thread actually has...
May 3, 2012 at 9:58 am
CREATE TABLE #temp_delete_duplicate
(
--emphist int identity(1,1),
empno int,
marital_status char(8),
status_change_date datetime default getdate()
);
INSERT INTO #temp_delete_duplicate (empno, marital_status, status_change_date) VALUES (1, 'SINGLE', '01-JAN-2010');
INSERT INTO #temp_delete_duplicate (empno, marital_status, status_change_date) VALUES (2, 'MARRIED', '01-JAN-2010');
INSERT...
May 3, 2012 at 9:52 am
Roger Abram (5/3/2012)
OMG, that was it! Can't believe I didn't think of it.Thank you!
What was it?
May 3, 2012 at 9:20 am
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 am guilty...
May 3, 2012 at 9:19 am
blandry (5/3/2012)
Cadavre, the code produces no errors, but it also produces no results. Or better said, all the counts are NULL. Running the same data through...
May 3, 2012 at 9:00 am
blandry (5/3/2012)
I read the link below your signature with Jeff's recommendations - thats not going to work. First, we are not talking about 1 table - I would have...
May 3, 2012 at 8:58 am
Try this:
SELECT @ChapterRosterText = COALESCE(@ChapterRosterText,'') + full_name + '|' + CASE WHEN PHONE IS NULL Then '' Else PHONE END+ '|' + CASE WHEN EMAIL IS NULL THEN '' ELSE...
May 3, 2012 at 8:53 am
You mean something like this:
CREATE TABLE #temp_delete_duplicate
(
--emphist int identity(1,1),
empno int,
marital_status char(8),
status_change_date datetime default getdate()
);
INSERT INTO #temp_delete_duplicate (empno, marital_status, status_change_date) VALUES (1, 'SINGLE', '01-JAN-2010');
INSERT INTO #temp_delete_duplicate (empno, marital_status, status_change_date)...
May 3, 2012 at 6:24 am
If the new code works, please try this slight modification (look at the WHERE clause)
WITH CTE(n) AS(SELECT 1 UNION ALL SELECT 1),
CTE2(n) AS (SELECT 1 FROM CTE x, CTE y),
CTE3(n)...
May 3, 2012 at 6:01 am
Link is easy, first article referenced below in my signature block.
May 2, 2012 at 9:00 pm
All you need to do is cut and paste the code you have already written in an attempt to solve your problem. It would help to see what you...
May 2, 2012 at 4:15 pm
MegaDBA (5/2/2012)
Step 1marspurgeforQA runs procedure exec p_maint_usp_MarsPurgeForQA
This step took 12 hrs 50 mins the last time it ran
Step 2rebuild indexes and update statistics
This step...
May 2, 2012 at 3:36 pm
Viewing 15 posts - 12,241 through 12,255 (of 26,486 total)