Viewing 15 posts - 256 through 270 (of 430 total)
Not sure how you figure the total for Jan, Feb, Mar 2022 is 11. There are 4 in Jan, 5 in Feb, and 4 in Mar. 4+5=9 + 4 =...
July 1, 2022 at 11:53 pm
Here's the output from that.
I'm confused, my understanding is that the required result is the number of distinct customers in a...
July 1, 2022 at 9:10 pm
The times are definitely stored in UTC. The right click method is clearly adjusting based on time zone, but I can't see any way to get the current time zone...
July 1, 2022 at 8:45 pm
Never mind, you changed it.
How does this work with months of different lengths?
where s.transactiondate > dateadd(month, -3, dt.t_dt)
If dt.t_dt is '2022-02-28' then dateadd(month, -3, dt.t_dt) is...
July 1, 2022 at 5:39 pm
I imported the csv, so here's the data with a US formatted date added. I'm interested to see an elegant solution.
DROP TABLE IF EXISTS dbo.SampleData
CREATE TABLE dbo.SampleData
(...
July 1, 2022 at 3:46 pm
It sounds very doable and the way you approach it depends on the volume of data.
We extract a lot of data from Oracle using the Attunity drivers, because the built...
July 1, 2022 at 3:21 pm
This is not an elegant way of doing it, but I think it works. I deleted my first attempt because I was too lazy to convert the values in the...
July 1, 2022 at 12:02 am
Woah.... thats a long reply. I am trying to understand what exactly are you telling me to do... might take a while.... Sorry xD
Skip my attempt at describing...
June 30, 2022 at 4:28 pm
duplicate removed
June 28, 2022 at 6:41 pm
sorry something wrong with formatting..
The code formatting window has gone, but something like this.
DECLARE @JobTime DATETIME2 = '2022-03-14 12:23:45.0000000'
SELECT CASE WHEN EXISTS (SELECT 1 FROM [dbo].[Dst_Time_Conv] WHERE @JobTime >=...
June 28, 2022 at 6:36 pm
Can anyone suggest how can I first load 100,000 rows from sql tables, create xml file and dump the data into it and then load next 100,000 rows and...
June 28, 2022 at 3:08 pm
okay so if I dump what ED B has for DST into a table .. what's next steps?
THx.
you can put the output into a table. Any east coast date...
June 28, 2022 at 1:59 am
Just one more question. If I want for only to appear the fields 'MaxMinDesc' and the 'VacationHours' how would I do it? I have tried taking the asterixes off...
June 27, 2022 at 1:08 pm
However, can you expand on it? Why MinRN and MaxRN?
MinRN is the alias given to the rownumber ordered by vacation hours ascending. The lowest (or joint lowest) will get...
June 26, 2022 at 3:58 pm
SELECT *,
CASE WHEN MaxRN =1 THEN 'Max' ELSE 'Min' END AS MaxMinDesc
FROM (
SELECT...
June 23, 2022 at 8:38 pm
Viewing 15 posts - 256 through 270 (of 430 total)