Viewing 15 posts - 11,011 through 11,025 (of 15,381 total)
Definitely do not need a cursor for this.
declare @ProcessingDate date = '17-May-2012'
PROCESSING_DATE > dateadd(d, @ProcessingDate, -1)
and PROCESSING_DATE <= @ProcessingDate
If that doesn't point you in the right direction, take...
August 16, 2012 at 7:29 am
scottichrosaviakosmos (8/10/2012)
August 15, 2012 at 3:10 pm
Borrowing from the fine example Luis provided this produces the results you are looking at least with the sample data.
SELECT child.LotID,
child.Parent,
isnull(CASE WHEN LEN( child.VBS) > 0 OR LEN( child.MOL)...
August 9, 2012 at 11:14 am
Woohoo!!! Vacation starts in about 7 minutes. Meeting my wife's parents, her brother and another close family friend for a long weekend in Chicago. 16 people in all. If you...
August 9, 2012 at 10:55 am
thall 8753 (8/9/2012)
Order of how a lot can travel through the tools?Left to right: VBS ... TCO
Maybe I don't understand the question.
Tim
Looking at this again I am thinking that maybe...
August 9, 2012 at 10:27 am
thall 8753 (8/9/2012)
Order of how a lot can travel through the tools?Left to right: VBS ... TCO
Maybe I don't understand the question.
Tim
From your original post:
I need to be able to...
August 9, 2012 at 10:23 am
Lynn Pettis (8/9/2012)
SQLRNNR (8/9/2012)
Lynn Pettis (8/9/2012)
Here we go again. Let's berate an OP because of things he/she may not even have any control over. I...
August 9, 2012 at 10:16 am
venkidesaik (8/9/2012)
This is my Sample resultant Table
1
2 1000
3 2000
4 3000
Now i want to remove if any blank rows are...
August 9, 2012 at 9:11 am
Lynn Pettis (8/9/2012)
Sean Lange (8/9/2012)
August 9, 2012 at 9:02 am
So we mentioned the deprecated code but you are still using the "old style" error handling by checking @@ERROR. You should use the newer try-catch construct instead. It is far...
August 9, 2012 at 8:30 am
MysteryJimbo (8/9/2012)
Lynn Pettis (8/9/2012)
August 9, 2012 at 8:27 am
Luis Cazares (8/9/2012)
SELECT ISNULL(NULLIF(fm_clinum, '') + CHAR(10), '') +
ISNULL(NULLIF(fm_contac, '') + CHAR(10), '')
...
August 9, 2012 at 8:22 am
Luis Cazares (8/9/2012)
That was my first thought Sean, but he wanted to identify the empty strings to avoid additional lines.
Missed that part.
This should do it.
SELECT ISNULL(fm_clinum + CHAR(10), '') +...
August 9, 2012 at 8:14 am
I think I would take the ISNULL approach. Something like this:
SELECT ISNULL(fm_clinum, '') + ISNULL(fm_contac, '')
...
FROM ...
August 9, 2012 at 8:05 am
I don't know how to capture your table but it seems to me that the best way to solve this is from a policy change. I don't mean to tell...
August 9, 2012 at 7:58 am
Viewing 15 posts - 11,011 through 11,025 (of 15,381 total)