Viewing 15 posts - 1,921 through 1,935 (of 15,381 total)
sartis (1/4/2016)
January 4, 2016 at 1:21 pm
Your list of dates is invalid. They need to have single quotes around the values. I would highly recommend doing this as a dynamic cross tab instead of a dynamic...
January 4, 2016 at 12:51 pm
TomThomson (1/4/2016)
Sean Lange (1/4/2016)
Ed Wagner (1/4/2016)
Sean Lange (1/4/2016)
jasona.work (1/4/2016)
As I had a 4 day weekend (woohoo!) I didn't get to sleep anywhere...
January 4, 2016 at 12:44 pm
Ed Wagner (1/4/2016)
Sean Lange (1/4/2016)
jasona.work (1/4/2016)
As I had a 4 day weekend (woohoo!) I didn't get to sleep anywhere close to my...
January 4, 2016 at 11:02 am
jasona.work (1/4/2016)
As I had a 4 day weekend (woohoo!) I didn't get to sleep anywhere close to my usual time, instead I...
January 4, 2016 at 10:35 am
mw112009 (12/23/2015)
CREATE TABLE [dbo].[EMR_IN](
[MEM_NBR] [varchar](50) NOT NULL,
[SERV_DT] [datetime] NOT NULL,
[ADMIT_DT] [datetime] NULL,
[DISCH_DT] [datetime] NULL,
[SNOMED] [varchar](20) NULL )
This table already has data
I want to add...
December 23, 2015 at 12:35 pm
rs80 (12/23/2015)
December 23, 2015 at 8:23 am
Brandie Tarvin (12/23/2015)
Here's my QOTD:If it is Christmas, but you don't celebrate, does the tannenbaum still sing carols to the yule log during the Hanukkah code camp?
This reminded me of...
December 23, 2015 at 7:57 am
Alvin Ramard (12/23/2015)
gsc_dba (12/23/2015)
Very slick solution Sean, kudos!
Slick, but definitely not what the OP was asking for. The OP clearly said he wanted to select the values where ZIP...
December 23, 2015 at 7:55 am
rs80 (12/23/2015)
December 23, 2015 at 7:53 am
Ed Wagner (12/23/2015)
Sean Lange (12/23/2015)
It is hard to tell if the spammers or IWasBornReady clutters up the feed more. So many useless comments on QOTD from 10 years ago.
I know...
December 23, 2015 at 7:49 am
Why not just your code to spit out the sql then you can copy it to a new window to run it? You can't use dynamic sql like you are...
December 23, 2015 at 7:45 am
gsc_dba (12/23/2015)
Here is a sample function that will help you get started:
CREATE Function [fnRemoveNonNumericCharacters](@strText VARCHAR(1000))
RETURNS VARCHAR(1000)
AS
BEGIN
WHILE PATINDEX('%[^0-9]%', @strText)...
December 23, 2015 at 7:37 am
Assuming you are trying to only return those rows with numbers only and not return rows with any other characters you do this pretty easily.
if OBJECT_ID('tempdb..#ZipCodes') is not null
drop table...
December 23, 2015 at 7:29 am
It is hard to tell if the spammers or IWasBornReady clutters up the feed more. So many useless comments on QOTD from 10 years ago.
December 23, 2015 at 7:21 am
Viewing 15 posts - 1,921 through 1,935 (of 15,381 total)