Viewing 15 posts - 196 through 210 (of 325 total)
If you can collect duration in minutes, storing it as a decimal count of minutes and only ever converting it as a presentation layer thing is probably the best approach....
August 12, 2018 at 6:06 am
Join OADDR and left join TableD and then do:
IIF (TableD.AgentSupervisorID Is Null, OADDR.AgentAddress, HADDR.AgentAddress) As AgentAddress
August 12, 2018 at 5:18 am
Well a simple algorithm is easy:Select sometext, left(sometext, 5) as hash from #table
Now it's a naïve hash with a fairly high probability of collisions, but it's...
August 10, 2018 at 1:03 am
Why would the first result be (3 a), when (1 a) and (2 a) also appear to have non-zero values for revenue and quantity?
August 10, 2018 at 12:17 am
August 9, 2018 at 11:00 pm
August 8, 2018 at 8:51 pm
Use Jeff Moden's DelimitedSplit8K function: http://www.sqlservercentral.com/articles/Tally+Table/72993/
August 8, 2018 at 3:39 pm
Yeah, can't say I've ever had an issue with auto growth for data files, as long as you don't set it to something silly like 1MB increments and then every...
August 8, 2018 at 3:34 pm
SSIS and Excel do not play nicely together. I have always had issues with...
August 8, 2018 at 12:59 pm
Check for something calling sp_start_job to run the job. A job can be executed that way without a schedule or even if the job itself is set to disabled.
August 8, 2018 at 12:43 pm
If the resultant columns are fixed, you can just do:Select
AgentID,
Home As HomePhone,
Work As WorkPhone,
Mobile As MobilePhone
From #Temp T
Pivot
(
Max(PhoneNumber)...
August 8, 2018 at 12:36 pm
Interesting, you learn something every day. Thanks chaps.
August 8, 2018 at 6:53 am
Yeah, I can see how in that situation there's a lot more incentive to work with something that's a lot more granular in terms of storage and undoing poor design...
August 7, 2018 at 10:59 pm
August 7, 2018 at 10:03 pm
Percentage growth is always a terrible idea, and usually leads to a surprising growth coupled with a shortage of disk space and that overwhelming feeling that you really are going...
August 7, 2018 at 11:46 am
Viewing 15 posts - 196 through 210 (of 325 total)