Viewing 15 posts - 1 through 15 (of 21 total)
The query was written by someone who no longer works for the company. I did not get a chance to meet them.
I'm looking to SUM pd.premium_amounts. Originally I wanted to...
September 24, 2015 at 9:30 am
Kristen,
Thank you for replying to my post. I tried using both approaches COALESCE and ISNULL with no changes in the number of rows that were returned. I did need to...
September 22, 2015 at 10:13 am
You cannot concatenate different node values into one row without some tricks. You can insert the data with all nodes into a temp table and concatenate in SQL.
What sort of...
June 19, 2009 at 7:27 pm
What if you have multiple columns with the same name in the xml file. how can those be concatenated into one field and what if element lives in one app...
June 19, 2009 at 4:33 pm
Flo,
I am referencing a .xml file that lives outside of sql in MyDocuments. Can you provide some xml code which you import that generates a table with unique columns and...
June 19, 2009 at 4:13 pm
When you say newely introduced XML methods are you talking about using the import/export wizzard or something else ? I tried using the wizzard but was having trouble with it...
June 19, 2009 at 3:59 pm
Im sorry for my halfass post earlier. Here is the correction version. substitute values of course
SELECT
CASE
WHEN CONVERT(varchar(10), B.Date, 121) IS NULL THEN '1900-01-01'
ELSE CONVERT(varchar(10), B.Date, 121)
END AS Date
FROM...
October 24, 2008 at 10:08 am
Wilfred,
In addition to what everyone else has mentioned, you can also set up a case statement to populate the null or blank fields after they have been inserted.
SELECT
CASE
WHEN dateum IS...
October 24, 2008 at 9:04 am
There was a post very similar to what you are trying to accomplish. Here is the link http://www.sqlservercentral.com/Forums/Topic581296-359-1.aspx
-Chris
October 24, 2008 at 8:13 am
WOW im such a doof all i had to do was put the ORDER BY outside of the select like this. thanks for the advice though
DECLARE @tableHTML NVARCHAR(MAX)
SET...
October 17, 2008 at 3:58 pm
Chris M.
This seem to work. I was looking at using RTRIM in an IF statement but that did not get me anywhere. I guessed I looked too deep into this...
August 20, 2008 at 10:17 am
Lowell,
I see how this case statement works however it is more complicated than the LIKE statement below. Being fairly new to SQL, I like to keep my code as simple...
August 20, 2008 at 10:15 am
Jack,
Yes that is the main requirement for this stored proc. The code that you provided looks like it will fulfill that requirement. This looks much cleaner than the code that...
July 22, 2008 at 11:24 am
Trader Sam,
Yes this list needs to be comma-delimited. I applied the changes however this does not solve my problem. thanks for pointing that out though. I still in my early...
July 22, 2008 at 9:31 am
Jack,
My apologies for not explaining the situation thoroughly. The stored proc is returning agents from states other than TX, FL, and LA. It is just that those states are primarily...
July 22, 2008 at 9:26 am
Viewing 15 posts - 1 through 15 (of 21 total)