Viewing 15 posts - 736 through 750 (of 4,085 total)
Your query contains two tables, but you've only provided one sample table. Furthermore, the fields in your sample table do not match the fields in either of the tables in...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
January 10, 2019 at 3:21 pm
I don't think that you want to do this in general. I could see doing this as part of an application, but the application would probably feed the information into...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
January 10, 2019 at 9:48 am
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
January 10, 2019 at 9:35 am
I should also add that it's pointless to ORDER BY one of the partition expressions (in this case YearMonth). By definition, all rows within a partition have the same exact...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
January 10, 2019 at 8:17 am
I ran the following test on a SQL 2016 box and the query used an index seek, so this claim is false.
CREATE TABLE #TEST ( id...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
January 9, 2019 at 3:06 pm
The package is just an XML file. In some cases, it's easier to make simple changes in the XML rather than using the GUI. I believe that this is one...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
January 8, 2019 at 2:08 pm
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
January 8, 2019 at 2:06 pm
It reminds me of ASCII art from the 80s (70s?) and it definitely works best with a fixed-width font. I still think it's more trouble than it's worth, but here...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
January 8, 2019 at 9:43 am
It shouldn't be that hard to create, but I also have to ask why. For any kind of report that might need this, I would use reporting software where you...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
January 7, 2019 at 4:32 pm
A loop is definitely not necessary (and will perform badly to boot). Have you tried the sub-query? My first thought was a LEFT OUTER JOIN. See if you can figure...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
January 7, 2019 at 4:23 pm
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
January 4, 2019 at 9:22 am
You should generally avoid functions/conversions on fields in ON/WHERE clauses. You have multiple functions/conversions in your ON clause, which is why you are having problems.
Part of the issue...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
January 2, 2019 at 3:31 pm
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
January 2, 2019 at 1:08 pm
I back a lot of board games on Kickstarter, and I eventually decided to get a PO Box at a UPS store for package deliveries, because too many of my...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
December 31, 2018 at 12:05 pm
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
December 31, 2018 at 11:48 am
Viewing 15 posts - 736 through 750 (of 4,085 total)