Viewing 15 posts - 196 through 210 (of 245 total)
thanks for the pointers.
i've tried the PIVOT but i'm not sure its quite what i'm looking for.
ms-help://MS.SQLCC.v10/MS.SQLSVR.v10.en/s10de_1devconc/html/24ba54fc-98f7-4d35-8881-b5158aac1d66.htm
this example is taking the 'average cost' from each row of the table and...
July 6, 2009 at 5:20 am
perhaps do a 'between' statement
e.g
this would bring back everything that had the specified column between
23-06-2009 00:00:00 and 24-06-2009 00:00:00
dtApplicationTakenDt between CONVERT(varchar(50),getdate(),106)
and CONVERT(varchar(50),dateadd(dd,1,getdate()),106)
June 23, 2009 at 5:08 am
your SC.QUANTITY_UM column must be containing varchar data?
June 18, 2009 at 8:08 am
print 'hello' + char(13) + char(10) + 'world'
you can do something like that i suppose.
June 4, 2009 at 3:50 am
does your SP have an output parameter?
i'm not sure, but i think you could run the SP, assigning the output parameter to a variable and then put that...
June 3, 2009 at 2:38 am
i personally see nothing wrong with taking code off the internet and making it work for my purposes.
i'm still gaining an understanding of how it works.
not that i actively go...
May 27, 2009 at 5:56 am
they match for me.
not sure why they differ for you.
May 27, 2009 at 5:13 am
i think that if they were happy after the interview process then it was probably abit overkill to mention it again.
unless you were thinking that maybe they didn't hear you...
May 7, 2009 at 3:42 am
thanks!
i've basically got this
SELECT * FROM OPENQUERY(SERVERNAME,'CREATE INDEX i1 ON DATABASENAME.dbo.TABLENAME(Col1, Col2) SELECT 1')
it doesn't error, although i've gone to enterprise manager to check the indexes and i can't see...
May 5, 2009 at 2:41 am
RBarryYoung (4/30/2009)
What's interesting about it is no one ever calls me...
May 1, 2009 at 4:03 am
do you have to find them or could you run a script that just updates all the rows?
update table
set col1 = upper(col1)
April 29, 2009 at 7:08 am
select
case when x.greating is null then 'nothing' else x.greating end
from
(
select
'hello' as 'greating'
union
select
'goodbye'
union
select
null
)x
use a case statement within your select part. if its null then output the string else output whats in...
April 29, 2009 at 4:48 am
select @EmailID, r.ssn, @EmailTypeId,........
or
select @EmailID,u.ssn. @EmailTypeId,........
not just select ssn
April 27, 2009 at 8:10 am
i personally prefer to set it as null.easier on the eye when looking through the database and working out whether it has a valid date against it or not.
but i...
April 27, 2009 at 8:08 am
Viewing 15 posts - 196 through 210 (of 245 total)