Viewing 15 posts - 226 through 240 (of 2,645 total)
Indexes on [dbo].[eligibility]([member_id]) INCLUDE ([eligibility_id])
and [memberphonelookup]([member_id])
January 3, 2024 at 10:14 pm
Is it really returning all the rows in the table? If so then why has the OP got a where clause?
January 2, 2024 at 4:32 pm
How many rows does the query return?
An obvious solution is to create an index on Final_date and include columns (column1, column2... column18)
You might be able to get away with just...
January 2, 2024 at 12:06 pm
I expected that if I use pagination it will only load 1st page for me, which should be very quick. And load the rest pages only if users request...
January 1, 2024 at 5:10 pm
Instead of applying the recompile at the procedure level, you can apply it at the query level within the stored procedure using the OPTION (RECOMPILE) hint. This way, only specific...
December 28, 2023 at 10:07 am
Are you creating a temp table i.e. one that begins with a hash (#) or are you using a permanent table name?
December 28, 2023 at 9:26 am
Yes, that's a bit shorter and generally more efficient. I'm wondering if there were a lot more that 12 items per customer and the right indexes on the...
December 27, 2023 at 4:37 pm
;WITH CTE AS
(
SELECT DISTINCT CustomerCode
FROM myTable
)
SELECT B.*
FROM CTE A
CROSS APPLY(SELECT TOP(12) *
...
December 21, 2023 at 9:07 pm
;WITH CTE AS
(
SELECT DISTINCT CustomerCode
FROM myTable
)
SELECT B.*
FROM CTE A
CROSS APPLY(SELECT TOP(12) *
...
December 21, 2023 at 5:53 pm
If you are sure you always want it to seek the values you can give the query a hint:
SELECT *
INTO #SROISDPL
...
December 19, 2023 at 5:54 pm
You need a colon after numbers:
def calculate_sum(numbers):
total = 0
for num in numbers:
...
December 19, 2023 at 10:39 am
As Jeff said partitioning is the best way and fastest way to remove large chucks of data by date.
When you want to regularly remove old data from a database, there...
December 14, 2023 at 11:40 am
Paste it into Excel and create a line chart then add a trend line.
December 13, 2023 at 3:07 pm
Here is something to get you started:
WITH CompanyData AS
(
SELECT * FROM (VALUES
('[24]7 Customer, Inc.'),
...
December 12, 2023 at 9:05 pm
The code was not created by me. I am just investing some one else's code, this person is leaving us soon. I just want to make sure that the...
December 12, 2023 at 6:46 pm
Viewing 15 posts - 226 through 240 (of 2,645 total)