Viewing 15 posts - 2,251 through 2,265 (of 59,066 total)
How to convert long data to wide data in SQL without using hard coding?
Regards
Like I suggested on the other thread, Manish, open a separate thread for your own question.
[EDIT]...
December 16, 2022 at 5:47 am
Correct, you convert the local time to UTC then perform the conversion to Unix timestamp.
In fact, the numeric timestamp is only UTC by convention. There is nothing inherent in...
December 16, 2022 at 5:36 am
Have a doubt regarding converting long data to wide data in SQL with out using hard coding?
Regards
Manish Bose
You should open your own post, Manish, so that it doesn't "get...
December 16, 2022 at 5:17 am
Back in the '90's at work, I had to have a reel to reel tape reader, a CD reader, a special optical reader, and multiple floppy drives, and a special...
December 16, 2022 at 5:12 am
"It Depends" on what you're talking about. If you're on Eastern Time and you want the correct data based on a UNIX timestamp, then you need to convert your local...
December 16, 2022 at 4:47 am
I am not even sure what your function is trying to do here - or why you would even care about UTC. The UNIX timestamp is an offset in...
December 16, 2022 at 2:47 am
The new STRING_SPLIT with the 3rd operand is great for this. The old STRING_SPLIT without it is not. Even MS has stated that the order of the output is NOT...
December 15, 2022 at 9:27 pm
And what kind of stored procedure? Is it for DBAs/Maintenance, etc or is it "production" code or ???
December 15, 2022 at 9:18 pm
So make call in open query to get the int value of t_stamp then use that as the driver in query..
If I'm understanding what you wrote above correctly (it's...
December 14, 2022 at 8:27 pm
Most of these are not SARGable. I wonder if the TIME conversion is (Like DATE and DATETIME supposedly is).
If this is a regular thing, I'm with Piet... persisted computed column.
December 13, 2022 at 11:45 pm
Hi jeff thanks for advice , i went by website you suggested geeks for geeks and i found it to more for programmers . .I didnt see anything related...
December 13, 2022 at 11:39 pm
And, I didn't read Jeffrey Williams post before I posted (I was responding to a post on the first page of this thread). He's spot on about the Unix TimeStamp...
December 13, 2022 at 10:41 pm
Insert Into Tag_Data_Capture_staging
(TagName,CaptureValue,DateRecorded)
select *
from OPENQUERY(srv1, 'select tagid,floatvalue,DATEADD(s,t_stamp/1000,''1969-12-31 20:00:00'') from rem.ignition.dbo.sqlt_data_1_2021_12
where DATEADD(s,t_stamp/1000,''1969-12-31 20:00:00'') between ''12-09-2021'' AND ''12-10-2021'' and floatvalue is not null');
I did the Insert...
December 13, 2022 at 10:27 pm
Viewing 15 posts - 2,251 through 2,265 (of 59,066 total)