Viewing 15 posts - 166 through 180 (of 626 total)
I believe this gets you what you are looking for...
SELECT
s1.LocID,
s1.Name1 as s1Name1,
s1.Name2 as s1Name2,
s2.Name1 as s2Name1,
s2.Name2 as s2Name2
FROM #Server1 s1
JOIN #Server2 s2 ON s2.LocID = s1.LocID
WHERE...
October 13, 2016 at 12:07 pm
Ed Wagner (10/12/2016)
Manic Star (10/12/2016)
Y.B. (10/12/2016)
Ed Wagner (10/12/2016)
whereisSQL? (10/12/2016)
Base
Operations
Surgeon
Plastic
Metal
Heavy
October 12, 2016 at 1:57 pm
45 minute commute depending on traffic. Podcasts has become a lifesaver as I can only listen to music so long. NPR Planet Money is one of my favorites...
October 12, 2016 at 1:22 pm
Ed Wagner (10/12/2016)
whereisSQL? (10/12/2016)
Base
Operations
Surgeon
October 12, 2016 at 11:37 am
Grant, you mentioned Mens Rea in another thread (which is not a term you often hear) and it reminded me of a funny scene from "See No Evil, Hear No...
October 12, 2016 at 9:07 am
Grant Fritchey (10/12/2016)
Especially true because of a clause in the US law known as Mens Rea, meaning with knowledge. If you knowingly share healthcare information with unqualified people in the...
October 12, 2016 at 9:00 am
Luis Cazares (10/11/2016)
Y.B. (10/11/2016)
October 11, 2016 at 11:19 am
As an aside, avoid using a leading wildcard in your LIKE (i.e. '%sup%) if possible. You won't be able to make use of any indexes on that column...
October 11, 2016 at 9:46 am
Ok, I think I might be going crazy but I've never seem to have any issues with html encoding when posting code before. However, for some reason I'm now...
October 11, 2016 at 8:50 am
SQL will do an implicit conversion to a DATETIME data type.
For Example:
DECLARE @myDateTime DATETIME = '2016-10-11'
SELECT @myDateTime
Will get you:
2016-10-11 00:00:00.000
What does you data look like?
You might want to do something...
October 11, 2016 at 8:02 am
crookj (10/7/2016)
Grumpy DBA (10/7/2016)
Luis Cazares (10/7/2016)
Grumpy DBA (10/7/2016)
Stuart Davies (10/7/2016)
Ed Wagner (10/5/2016)Spawn
Frog
Polliwog
Poliwag
Poliwhirl
Pollywannacracker
Parrot
October 7, 2016 at 1:54 pm
Phil Parkin (10/7/2016)
Run them both in the same batch and check the relative costs.
^THIS
As an example I ran similar queries against AdventrureWorks2012.
SELECT
*
FROM
Sales.Customer c
LEFT JOIN Sales.SalesOrderHeader soh ON...
October 7, 2016 at 1:51 pm
CferMN (10/4/2016)
GilaMonster (9/15/2016)
What's the table frequently filtered by?
GilaMonster (9/16/2016)
Good startWhat's the most common predicate used against that table?
I'm new to index/performance tuning. Could you please explain how to tell what...
October 7, 2016 at 1:18 pm
drew.allen (10/7/2016)
October 7, 2016 at 11:42 am
Doctor Who 2 (8/7/2016)
Eirikur Eiriksson (7/24/2016)
Doctor Who 2 (7/24/2016)
October 3, 2016 at 2:16 pm
Viewing 15 posts - 166 through 180 (of 626 total)