Viewing 15 posts - 3,871 through 3,885 (of 4,820 total)
And here's a mashup of all 3 methods presented, with full aliasing and slightly changed field names, so that all the methods can be more easily compared. ...
July 10, 2014 at 8:12 am
One of the problems with "dumbed down" examples is that the solutions don't necessarily apply well to the full-scale real-world problem, often due to surprisingly simple differences that suddenly render...
July 9, 2014 at 2:05 pm
As Sean indicates, you need to provide better information to get a good answer. From what you posted, we have no clear picture as to what you really...
July 9, 2014 at 1:47 pm
Sean's query is exactly what I would code, but not without first running the following query to be absolutely certain that those names are unique:
SELECT COUNT(DISTINCT lastname) AS LAST_COUNT, COUNT(*)...
July 8, 2014 at 3:02 pm
Unless you have other identifying information, all it will take to fail the process is two records in employee2 with the same value for lastname, but differing values for firstname....
July 8, 2014 at 2:33 pm
Some of the runtime symptoms of the below suggested causes could be: 1.) sudden CPU usage spikes for however long this runs before it fails, or even 2.) a long...
July 8, 2014 at 12:38 pm
pharmkittie (6/27/2014)
June 27, 2014 at 8:29 am
EDIT: Yep, Lynn, that would be mine. Oops... that's not right. It's the queries using MAX and MIN. The 'Z' value would throw those queries...
June 26, 2014 at 4:54 pm
Here's another alternative that should perform well as it not only uses just one pass on the table, but uses NULLIF which usually is rather fast:
SELECT marker
FROM TEMP_A
GROUP BY marker
HAVING...
June 26, 2014 at 3:18 pm
pharmkittie (6/25/2014)
June 26, 2014 at 2:38 pm
SCH70 (6/24/2014)
June 24, 2014 at 6:52 am
SCH70 (6/23/2014)
June 23, 2014 at 1:31 pm
cbrammer1219 (6/23/2014)
June 23, 2014 at 9:47 am
We need more information. You say it "stopped working", but never said what the exact definition of "working" is, nor exactly what it means when you say it...
June 23, 2014 at 9:12 am
Taking a literal interpretation of the words you used, here's the code:
DECLARE @String varchar(500);
SET @String = '<p>Assessed By: Michael Jordan Yagnesh</p>
<p>Reviewed By: Fred Smith</p>
<p>Home Address</p>'
PRINT LEFT(@String, DATALENGTH(@String) - ISNULL(NULLIF(CHARINDEX('/<', REVERSE(@String)),0)...
June 23, 2014 at 8:58 am
Viewing 15 posts - 3,871 through 3,885 (of 4,820 total)