Viewing 15 posts - 406 through 420 (of 2,610 total)
SELECT [Datetime]
FROM [mydbtemp]
WHERE [Tagvalue] = 1
AND [Datetime] > (SELECT MAX([Datetime])
FROM [mydbtemp]
WHERE [Tagvalue] = 0
AND [Datetime] BETWEEN '2023-02-01 01:00:00' AND '2023-02-05...
March 26, 2023 at 6:58 pm
The table you are selecting from (my_table) is not the table you have created (mydbtemp). Also the column names are different.
I think you meant to put this as your query:
March 26, 2023 at 2:25 pm
Serious "chicken dinner" there for performance, Jonathan... here are the stats from a test on a million rows of 16 hex digits (8 bytes)...
SQL Server...
March 16, 2023 at 2:04 am
Serious "chicken dinner" there for performance, Jonathan... here's stats from a test on a million rows of 16 hex digits (8 bytes)...
SQL Server Execution Times:
...
March 15, 2023 at 9:25 pm
That's because bigint stores integers as Two's complement, negative numbers need 2^64 (18446744073709551616) added to them to represent the number as an unsigned int.
March 15, 2023 at 8:47 pm
That's because bigint stores integers as Two's complement, negative numbers need 2^64 (18446744073709551616) added to them to represent the number as an unsigned int.
SELECT...
March 15, 2023 at 1:27 pm
I would guess your trigger should look something like this:
CREATE TRIGGER software_on_install_fill_in
ON software
FOR INSERT, UPDATE
AS BEGIN
SET NOCOUNT ON
UPDATE...
March 14, 2023 at 5:00 pm
It would help if you included the table ddl for package and software.
March 14, 2023 at 4:21 pm
SELECT ID
FROM ExampleTable
GROUP BY ID
HAVING MAX(CASE WHEN Description = 'Apex' THEN 1 ELSE 0 END) = 0 OR
MAX(CASE WHEN Description = 'BILL'...
March 13, 2023 at 3:55 pm
It seems to be ordered by original post date descending.
Active Threads is ordered by last post date descending.
March 13, 2023 at 3:50 pm
SELECT '1' AS 'CommitBlock',
'1' AS 'EnforceTagExistence',
(SELECT vw_deferments.loan_number AS '@loannumber',
...
March 13, 2023 at 10:41 am
I updated the procedure (for my purposes) so it doesn't attempt to update stats on the sys schema by updating one of the ANDs in the WHERE to include 'sys':
March 11, 2023 at 4:41 pm
@Jonathan... that will work if "any" of the 3 are present. I'm thinking the OP only wants to exclude if all 3 are present. But, please, let him explain...
March 11, 2023 at 3:24 pm
Can you share your script?
Attached. Again, I'm very aggressive in the code. If the RowModCtr > 0, then I rebuild the stats. You can certain modify that...
March 11, 2023 at 2:23 pm
Dear ChatGPT
I have a table where it has id column, along with description.
Based on Group BY ID, I need to verify for each ID we have row exists with Description...
March 11, 2023 at 1:31 am
Viewing 15 posts - 406 through 420 (of 2,610 total)