Viewing 15 posts - 976 through 990 (of 2,645 total)
Prior to SQL Server 2016 (13.x), conversion of float values to decimal or numeric is restricted to values of precision 17 digits only. This is no longer a restriction as...
August 4, 2020 at 8:37 pm
August 4, 2020 at 5:23 pm
Discount rates don't usually change that much. They are usually mandated by law or company policy. The most dynamic data element in this table is going to be the...
August 3, 2020 at 5:26 pm
the TOP 1 doesn't works and this is the reason why I'm here. If there's a query to do this, and you want help me, good.....the rest is my...
July 31, 2020 at 2:26 pm
If you want to apply discounts to discounts you can do it with CROSS APPLY
Select x.Price,
A.Result1,
...
July 30, 2020 at 9:39 pm
Look at the execution plan.
Also run it with:
SET STATISTICS IO, TIME ON
July 28, 2020 at 6:12 pm
This is probably a couple of stupid questions that shows my ignorance, but if you never ask how will you learn... 🙂
July 27, 2020 at 7:56 pm
Thank for the many replies....the idea is show the first row of others. The point is that I need to "call" same columns just to apply a filter into...
July 27, 2020 at 4:14 pm
Try TOP(1) in a CROSS APPLY.
e.g.:
SELECT DISTINCT
m.ID,
m.Type,
...
July 27, 2020 at 2:36 pm
Hi I Did not mentioned earlier, This is my Live OLTP Database/Tables. So On top of the adhoc Queries there are some another maintenance jobs as well as some...
July 23, 2020 at 11:51 pm
Another thought - do you NEED columnC in your FinalTable_bedeleted? Probably speed things up a little bit by only pulling the ID's out of FinalTable, no?
I hadn't actually looked...
July 23, 2020 at 12:17 am
You haven't provided information on what indexes are on the tables.
Ideally FinalTAble will have a clustered index on Id and no other indexes.
I would then try creating clustered indexes on...
July 22, 2020 at 7:10 pm
I have a Use case like.
We tried disabling all the index but still it's taking too much time. Even we have 5-8 hours maintain-ace window. We don't have partitioned...
July 22, 2020 at 4:59 pm
Viewing 15 posts - 976 through 990 (of 2,645 total)