Viewing 15 posts - 61 through 75 (of 2,610 total)
Yes, well ChatGPT generates its responses one word at a time, using each preceding word and the context of the conversation, including its own partially completed sentences, to...
May 27, 2024 at 3:37 pm
Heh... ask it how to convert a DATETIME2 value to a DATETIME value in SQL Server. 😉
I haven't got Copilot, but I thought I'd try it on...
May 27, 2024 at 3:17 pm
Deleted duplicate posting
May 27, 2024 at 6:19 am
Heh... ask it how to convert a DATETIME2 value to a DATETIME value in SQL Server. 😉
I haven't got Copilot, but I thought I'd try it on ChatGPT
May 27, 2024 at 6:18 am
After rereading the original post I now understand about the INTERVAL_THICKNESS, this query works using a case statement to calculate the INTERVAL_THICKNESS
;WITH fn as
(
...
May 8, 2024 at 12:09 pm
However it looks like it is locking on the LITH1 of the 1 meter tally. I need somehow to instruct if there are multiple LITH1 rows within the meter,...
May 8, 2024 at 9:05 am
With this query:
;WITH fn as
(
select N
from dbo.fnTally(0, 300) fn
)
SELECT dd.PROJECT, dd.HOLE_ID, fn.N + 0.0 DEPTH_FROM,
...
May 7, 2024 at 4:12 pm
I'm not the OP. The UDF (dbo.fnTally) is a well know one by Jeff Moden and the OP is using this in his original post.
The...
May 7, 2024 at 3:59 pm
Thanks Phil. Interesting maybe. The real answer is don't use cursors 🙂
It's nothing to do with the cursor, it's how table variables work. Despite being declared within a block,...
May 7, 2024 at 3:36 pm
Not sure exactly what you want, but maybe something like this?
Create some data:
-- Creating the table
CREATE TABLE DrillingData (
PROJECT NVARCHAR(50),
...
May 7, 2024 at 3:20 pm
Not sure exactly what you want, but maybe something like this?
Create some data:
-- Creating the table
CREATE TABLE DrillingData (
PROJECT NVARCHAR(50),
...
May 7, 2024 at 1:58 pm
I'm not sure I quite understand, but maybe something like this:
INSERT INTO dbo.[table1] (ProductCode, ProductionDate, SerialNumber)
SELECT 'A' + RIGHT('00000' + CAST(CAST(RIGHT(MAX(ProductCode), 6) AS INT) + ROW_NUMBER() OVER...
April 24, 2024 at 4:57 pm
Viewing 15 posts - 61 through 75 (of 2,610 total)