Viewing 15 posts - 1 through 15 (of 26 total)
Sorry to bump this thread, but I've run into a minor issue.
When I re-open the view that uses this code, this part...
WITH CTE AS
(
Is GONE, which causes...
April 16, 2024 at 5:25 pm
This produces the exact same results as Jonathan's query with far fewer reads.
WITH CTE AS
(
SELECT xp.RBDTYR
...
April 11, 2024 at 8:14 pm
Try this, it is possibly faster:
;WITH CTE AS
(
SELECT DISTINCT
RBDCTL,
...
April 11, 2024 at 5:27 pm
How many rows are on the prod table?
187,450
Is it possible for you to add an index to the table?
I don't believe so, as I only have read-only access to the...
April 11, 2024 at 5:22 pm
April 11, 2024 at 4:33 pm
I uploaded your picture to ChatGPT 4 and asked it to: "Write a SQL Server create table (table name: XXXRE60P) and insert script for this, make sure you include...
April 11, 2024 at 4:19 pm
Have you tried my solution?
;WITH CTE AS
(
SELECT DISTINCT
RBDCTL,
...
April 11, 2024 at 4:06 pm
OK, try it as a basic aggregate
SELECT RBDCTL
, RBDTTC
...
April 11, 2024 at 3:30 pm
You forgot the "_1" in the group by: GROUP BY XXXRE60P_1.RBDTTC, XXXRE60P_1.RBDCTL
Ugh, such a stupid thing to overlook. I don't do this every day so... my apologies.
April 11, 2024 at 2:59 pm
April 11, 2024 at 2:51 pm
we need a script that generates your data & structure.
...and how do I do that? I don't mind taking the time, I just don't even know what step 1 is.
April 11, 2024 at 2:27 pm
Please create sample data in a consumable format using the
{;} Code
button to include a script to create a TEMP table and insert data into that temp table.Drew
I...
April 11, 2024 at 2:19 pm
Try using a window function
SELECT RBDCTL
, RBDTTC
,...
April 11, 2024 at 2:18 pm
Alvin Ramard (6/12/2015)
Time for Excel to get an upgrade!Trying to do this without VBA is getting to be a pain in the ...
I'm using Excel 2010 - and...
June 12, 2015 at 4:48 pm
Alvin Ramard (6/12/2015)
Can you show me the SQL statement you're trying to execute?
exec Act32EITReport ?,?
June 12, 2015 at 2:31 pm
Viewing 15 posts - 1 through 15 (of 26 total)