Viewing 15 posts - 3,196 through 3,210 (of 59,067 total)
ok, that's not what I thought you meant. I thought you meant flip all the bits.
This works for 0 and 1:
DECLARE @smallint smallint = 0
select...
July 5, 2022 at 11:13 pm
What are the datatypes for the two columns in Question #1?
July 5, 2022 at 10:32 pm
Probably so he can get away from having to run two separate queries and then merge the results with a distinct UNION. That may or may not be faster, though. ...
July 5, 2022 at 2:41 am
I wonder if it is because in our dreams our minds are more focused on one thing at a time and it is easier without so many distractions.
I would...
July 5, 2022 at 2:39 am
Perhaps more important than the DISTINCT keyword is the AVG() function's handling of NULL values.
NULLs behave similarly to DISTINCT - regardless of how AVG() is called. That is, the...
July 4, 2022 at 5:52 pm
Heh... there is an EXCEPT, though... same "class" of method.
July 4, 2022 at 5:09 pm
Just in case you're still around, the reason I'm asking is because, if the ultimate use is to import the data into another SQL Server, using BCP Out in the...
July 4, 2022 at 4:54 pm
In other words, please read and heed the article at the first link in my signature line below for one of many methods to provide some "Readily Consumable Test Data"...
July 4, 2022 at 3:54 pm
Please go back and read the reply from Scott Pletcher and myself.
I agree that it sounds like you're trying to do a server to server transfer. With the exception of...
July 4, 2022 at 3:48 pm
It might be possible but I'm not going through the code to figure out which columns are coming from which tables. Using table aliases in all columns when joins are...
July 4, 2022 at 3:39 pm
Thanks for the feedback on what it turned out to be, Jonas.
July 4, 2022 at 3:33 pm
I got this,...
What did you end up doing? I know this would help others in the future.
July 4, 2022 at 3:27 pm
Here's the query to cover your first request.
SELECT MontaguOwner ...
July 4, 2022 at 1:07 am
Hi Jeff,
Using the same test data I provided I wonder if you could help me build on your code to achieve an additional outcome.
So, on the test data, I...
July 3, 2022 at 10:21 pm
Jeff,
I'm going to have to be become very proficient with Pivot (CROSS TABS) with my company.
Thanks for the links
See my post on the other thread. I've also just updated...
July 3, 2022 at 6:07 pm
Viewing 15 posts - 3,196 through 3,210 (of 59,067 total)