Viewing 15 posts - 316 through 330 (of 1,390 total)
You could nest the current formula inside an additional CONCAT function and test for the existence of the lead characters
SELECT tt.homepage_url
...
October 16, 2022 at 1:41 pm
Does the query return the expected output?
October 7, 2022 at 7:21 pm
One place to keep important SQL-related information for me is SSC's Briefcase feature. For a while after I became a member it wasn't working (at least for me using Chrome...
October 7, 2022 at 2:19 pm
Steve Collins, I don't see how we can avoid using ORMs and report writers.
...
Sometimes the easy fix is good enough.
Avoidance is the easy way imo
October 5, 2022 at 12:24 pm
ORM only makes sense if the mapping is necessary, no? Otherwise, if it's easier to not use ORM then it becomes a waste to use it. Imo since .NET 6...
October 4, 2022 at 10:16 pm
IQP is important because there are more processes reading the database, not all of them written by developers. Some are generated by reporting tools or ORMs. This sort of...
October 4, 2022 at 1:47 pm
with rn_cte as (
select *, eow-[Week] wk_diff,
row_number() over (partition by it, cg,...
October 3, 2022 at 2:51 am
In Visual Studio if you hold the Alt key down while using the mouse to highlight text it rectangularly selects areas. Because the dates are horizontally aligned with just a...
October 2, 2022 at 1:00 pm
No comment on the date calculations?
declare @start_yr int=2022;
with months_cte(mo_num) as (
select * from...
October 1, 2022 at 10:09 pm
Why store information which is derivable by query? It sometimes creates race conditions keeping updated. If you're looking for performance you could try splitting the clustered index away from the...
September 29, 2022 at 11:30 pm
Here's a query with some date calculations. The value calculated in CROSS APPLY is the difference in days between the customer's DateofJoin and the order's DateVal. Based on this difference...
September 28, 2022 at 9:12 pm
The data contains a duplicate row. How to handle duplicates? Also, VID is nullable so are NULLs to be ignored or treated collectively as a VID?
September 25, 2022 at 12:33 pm
Once they realized the mistake, they attempted to soften the blow by creating DATEDIFF_BIG. A valiant attempt that works nicely except for the rather obvious and unfortunate fact that...
September 23, 2022 at 2:49 pm
You could divide the rows using two queries: one above and one below UNION ALL. Above SELECT ID's with [type]='Alias' and below SELECT ID's without any 'Alias'. You could assign...
September 16, 2022 at 12:48 am
One Youtube channel is the CMU Database Group from Carnegie Mellon University. My brother went to CMU and one of his sons goes there now. Their earlier series are...
September 15, 2022 at 2:00 pm
Viewing 15 posts - 316 through 330 (of 1,390 total)