Viewing 15 posts - 16 through 30 (of 388 total)
I double checked my data and it looks good but the counter may not be working:
with CTE
as (select distinct
...
June 3, 2022 at 6:31 pm
Hold up for now, I think my data is flawed.
June 3, 2022 at 5:34 pm
It's still returning no records. If I eliminate the COUNT I get 3,000 + but about 700 have multiple '276' counts that need to not be returned.
June 3, 2022 at 5:15 pm
Sorry, I was wrong with what my needed output should be, I needed this, in other words keeping those with just one date:
123548, '2022-02-21'
985254, '2022-03-19'
774589, '2022-01-17'
754512, '2022-04-04'
May 26, 2022 at 7:06 pm
One question, what if I have some dates as NULL values and want them to return?
May 26, 2022 at 4:55 pm
That works perfectly, many thanks!
May 26, 2022 at 4:24 pm
March 14, 2022 at 9:05 pm
The [ProvidersDirectory].[dbo].[ProvidersTable] does not have a 'Distance' field. This is a calculated field to be only placed in the temp table. The [ProvidersDirectory].[dbo].[ProvidersTable] only has the longitude and latitude. In...
March 14, 2022 at 8:04 pm
If I assign a value to @source in my declaration how do I 'reset' it in my insert to the temp table? The exercise is to assign a geographical location...
March 14, 2022 at 6:27 pm
What format would you prefer the data?
December 13, 2021 at 6:30 pm
The ConvoHrs table is coming from a vendor we have no control over.
December 13, 2021 at 6:29 pm
-- here are the basic DDLs for my two tables:
CREATE TABLE [portman].[dbo].[AgentHours](
[LoginEntryID] [int] IDENTITY(1,1) NOT NULL,
[DOMAIN] [varchar](4) NOT NULL,
[DATE] [date] NOT NULL,
[LOGIN TIMESTAMP] [datetime2](0) NULL,
[LOGOUT TIMESTAMP] [datetime2](0)...
December 13, 2021 at 5:53 pm
I think we may be on the right track but my data isn't presenting correctly. I'm getting (although the seconds are not visible, they are incorrect):
December 10, 2021 at 9:44 pm
Sorry... I see now and tried MAX and that took care of it... thanks!!
December 6, 2021 at 4:04 pm
This does not seem to work, the data returns like before:
SELECT [user_name], [created_at],
SUM(dbo.fnGetDecimalTime([event_sec])) as 'Decimal_Time_SUM'
FROM [Charter].[dbo].[ConvoHrs]
group by [user_name],[created_at]
order by [user_name]
December 6, 2021 at 3:41 pm
Viewing 15 posts - 16 through 30 (of 388 total)