Viewing 15 posts - 676 through 690 (of 4,087 total)
February 6, 2019 at 9:40 am
February 6, 2019 at 8:00 am
I'm not sure that the OP actually wants the results pivoted. I think that this will also be faster, but that will be hard to test without any sample data.
February 5, 2019 at 12:22 pm
Look at ROW_NUMBER(). If you follow Steve's advice, you may get tested code.
Drew
February 5, 2019 at 11:54 am
Options 2 and 3 both violate First Normal Form. It would be a major pain to add new flags, and there wouldn't be an easy way to discontinue flags.
February 5, 2019 at 8:52 am
Please provide sample data and expected results. Read the first link in my signature to learn how.
Drew
February 1, 2019 at 10:35 am
I believe that the DENY permissions take precedence over any GRANT permissions.
Also, OP, when you are creating topics, it's very helpful to summarize the question in the name...
February 1, 2019 at 9:44 am
February 1, 2019 at 9:32 am
February 1, 2019 at 8:51 am
January 31, 2019 at 9:20 am
Using the above Cross Apply where we have 3...
January 31, 2019 at 9:08 am
This design is absolutely HORRIBLE. Push back and say "No" before it's too late.
Drew
January 31, 2019 at 8:58 am
January 31, 2019 at 8:28 am
Because NUMERIC(4,2) sets two spaces for decimals, which only leaves two spaces for the integer portion. Since 50*10=500 and 500 requires three...
January 30, 2019 at 4:19 pm
You don't need the CASE expression.
SELECT o.NameRecord,
ca1.value1,
ca1.value2,
ca1.valueType + ' has changed from ' + ca1.value1 + ' to ' +...
January 30, 2019 at 12:43 pm
Viewing 15 posts - 676 through 690 (of 4,087 total)