Viewing 15 posts - 16 through 30 (of 30 total)
Luis Cazares (2/11/2014)
Gary Varga (2/11/2014)
Craig-315134 (2/11/2014)
Gary Varga (2/11/2014)
Craig-315134 (2/10/2014)
...but the Darwinistic nature of capitalism sooner or later weeds out the bad ones.
Oh, I wish I found that to be the...
February 11, 2014 at 2:57 pm
Lowell,
This is brilliant. Thanks very much for putting this together and for passing it along. This saves me a lot of work today and in the future.
Thanks,
February 11, 2014 at 10:58 am
caippers (2/6/2014)
How can I pull a result set from the prior day without a column in either of the tables that stores a date?
Are you saying you don't have any...
February 6, 2014 at 9:10 am
Luis Cazares (1/31/2014)
That's probably because you might have NULLS in [Company Name].Here are the most common options:
D'oh! Luis' explanation is very likely correct. Even if it's not, it's...
January 31, 2014 at 2:38 pm
That's odd. Can you confirm whether the sample data I used above is correct for your situation? Because if it is, then I have no idea why you...
January 31, 2014 at 2:13 pm
Would something along these lines do the trick for you? It seems to match the desired output given in your original post.
select distinct [company name] from CompanyInfo as A
where
[Company...
January 31, 2014 at 1:42 pm
Hello and welcome to the forums.
It's considered best practice around here to post sample data and table structure as DDL when asking questions. This helps other people get right...
January 31, 2014 at 1:32 pm
Gillian_Pappas2002 (1/16/2014)
...and with your suggestion, I want to make sure that I don't update the records that should really be class =QS...
Gillian,
Bit of advice. Whenever you're building an UPDATE...
January 16, 2014 at 3:22 pm
Scott-
Would it be better to do it like this:
UPDATE T
SET order_class = 'MTO'
FROM #Table T
join #Table T2 ON t.custNo = T2.custNo and
t2.order_class = 'MTO' and
t.order_class != 'MTO'
or...
January 16, 2014 at 3:09 pm
Neither. You should be able to accomplish this with a single UPDATE statement.
You can either use a sub SELECT in the WHERE clause, or a self join to filter...
January 16, 2014 at 2:51 pm
In your test data, should "('(Location is Europe')" read "('Location is Europe')"? or is that left-parenthesis actually in your data?
January 16, 2014 at 11:35 am
I don't think you can make ON clauses conditional. Try replacing your inner join with 2 seperate LEFT OUTER JOINs to Table2.
Then use ISNULL() in your...
January 3, 2014 at 9:42 pm
Do you mean something like this:
SELECT CASE NodeAlias WHEN '101.101.101.101' THEN 'UniqueName' ELSE 'Larry' END
FROM MyTable
or
SELECT NodeAlias + ' - ' + CASE NodeAlias WHEN '101.101.101.101' THEN 'UniqueName' ELSE...
January 3, 2014 at 3:18 pm
Viewing 15 posts - 16 through 30 (of 30 total)