Viewing 15 posts - 2,551 through 2,565 (of 59,098 total)
@Sathish,
Are you all set? If not, take a look at the article at the first link in my signature line below to learn how to post some "Readily Consumable Data"...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2022 at 8:24 pm
@Tobar... did you ever figure this out? Without being able to put my hands on the database, I'm out of suggestions.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2022 at 8:22 pm
Assuming that all of the other 20 subqueries are based on the same pattern in tblPolSpec, you will probably get better performance if you use a CROSS-TAB query like...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2022 at 7:44 pm
Many thanks for your help. I have been told that it uses DTExec.exe to run the SSISpackage. I am trying to find out more about this but if anyone...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2022 at 7:43 pm
Memory optimized?
--Jeff Moden
Change is inevitable... Change for the better is not.
November 4, 2022 at 6:34 pm
The original code looks like a "poor man's CROSSTAB". Try the following true CROSSTAB instead.
SELECT PolNr = m.PolNr
...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 4, 2022 at 6:14 pm
Thanks for the reply, Eirikur.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 4, 2022 at 4:59 pm
I'd suggest adding a Continuous Integration step into your setup. Just deploy the code, without data, into a database, on commit of the code (or a push to a...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 4, 2022 at 4:41 pm
this works perfectly! Many thanks!!
It works perfectly for the given data. Try deleting one of the dates and find out that the date doesn't appear in the result. If...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 4, 2022 at 4:32 pm
To continue, one of my pet peeves are SQL lines of code that go off screen and dynamic SQL that comes out as a single line of code, especially when...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 3, 2022 at 7:18 pm
Just in case anyone else is having the issue... I've verified that I'm no longer getting email responses for posts that I've subscribed to or have responded to. I've send...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 3, 2022 at 6:43 pm
Another simplification would be to use DATENAME for the year instead of casting the results of the YEAR(() function.
EDIT: Sorry... I missed the -1 that was being done.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 3, 2022 at 6:11 pm
Post withdrawn.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 3, 2022 at 6:03 pm
You also list the 3 conditions, as follows...
If duplicate codes then invalid result
if 8 & another code then invalid result
if 9 & another code then invalid result
For the first rule,...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 3, 2022 at 5:57 pm
[Options table] 1 Option1 2 Option2 8 None 9 NotKnown
[Answers table] Student Answer 100 1 100 2
101 1 101 9
Student 100 answers are valid. Student 101 answers are not...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 3, 2022 at 5:54 pm
Viewing 15 posts - 2,551 through 2,565 (of 59,098 total)