Viewing 15 posts - 436 through 450 (of 6,678 total)
To a degree, the difference between ON & WHERE, can be, but isn't entirely, syntactic sugar. However, what I say is, for clarity sake, put filter criteria in the...
September 20, 2022 at 6:54 pm
I prefer wrapping the code in a check for primary - instead of adding a step. When you add a step and fail - you also have to set that...
September 20, 2022 at 6:45 pm
Thank you Jeffrey , like your last comment, looks like you used dense_rank() instead of rank(). this made the difference.
"RANK and DENSE_RANK will assign the grades the same rank...
September 18, 2022 at 2:35 pm
Here is an example:
Declare @sampleData Table ([Day] date, [Hour] char(8));
Insert Into @sampleData (Day, Hour)
Values ('2022-03-30', '12:48:36')
, ('2022-03-30', '12:48:36')
...
September 17, 2022 at 3:18 pm
Verify the hour column doesn't contain additional data. If you can provide test data in the form of create and insert statements I can provide a working example.
September 16, 2022 at 11:36 pm
Instead of trying to recreate that expression - you can and should use RANK() or DENSE_RANK().
September 16, 2022 at 9:38 pm
Not exactly - I would create shared storage and present that storage to every node in the cluster and allow it to failover to any available node. If you assign...
September 16, 2022 at 9:24 pm
There is another option available - you can also use a cloud witness.
With that said, for a 2-node cluster I would use the same thing regardless of type of cluster. ...
September 15, 2022 at 8:56 pm
It looks like you are trying to use a stored procedure as a function - which is generally not a good idea. With that said - there is nothing that...
September 12, 2022 at 5:13 pm
It would be much better for you to go back to the sender and have them send that data in an unambiguous format. I get that some senders refuse -...
September 12, 2022 at 4:36 pm
IF you add the statement
SET DATEFORMAT DMY;
before you attempt the INSERT, the error will go away and the INSERT runs successfully.
Although this is an option - don't do this. ...
September 11, 2022 at 3:42 pm
@JeffreyWilliams Thank you for your input. Would you say, definning primary keys for each row would be the quickest way to ensure uniqueness or no duplicate values being imported?
I...
September 10, 2022 at 3:57 pm
And if you don't like mixing cross join and cross apply - or using the table variable, you can embed the column mapping into the query as follows:
September 9, 2022 at 8:11 pm
It's funny how people rail against duplicates in a randomly selected set... it's a part of what "random" is.
It's also funny what some people consider duplicates - even when...
September 9, 2022 at 8:06 pm
I need for the person's name to be unique. So one of the records for 'Reece, Genais' needs to be eliminated. It doesn't matter which one:
Viewing 15 posts - 436 through 450 (of 6,678 total)