Viewing 15 posts - 3,016 through 3,030 (of 7,614 total)
I'm still not 100% sure of your rules, but hopefully if needed you can adjust this to get what you need:
SELECT
jec.main, jec.sub,
January 8, 2019 at 1:58 pm
select
right(space(12)+convert(varchar(20),cast([User_Info_Currency_1] as money),1), 12) as [Replacement Cost]
from (
values(
523.88000),(
60689.76000),(
48860.26000),(
77239.26000),(
132227.26000),(
65668.18000),(
71523.34000)
) as EQSA0345(User_Info_Currency_1)
January 4, 2019 at 10:51 am
Reforrmat the SSICat data and not the ep data, since there should be far fewer SSICat rows.
How is the EncounterProc table clustered?
Hopefully you don't actually need...
January 3, 2019 at 10:01 am
SELECT
b.Period AS B_Period,
a1.Period AS A_period,
a1.SomeValue
FROM #TableB b
OUTER APPLY (
SELECT TOP (1) a.*
FROM #TableA a
...
January 3, 2019 at 9:40 am
Cluster the [SearchSuggest_QGram_tbl] on [nameCacheId] rather than on gram.
January 2, 2019 at 8:26 am
December 26, 2018 at 10:05 am
SELECT s
s2
,TRY_CAST(s2 AS DATE) AS ScottPDate
FROM @t
CROSS APPLY (
SELECT LTRIM(RTRIM(s)) AS s1
) AS ca1
CROSS...
December 24, 2018 at 8:36 am
I'd add the standard "nocount" setting, but other than that it looks good:
alter trigger trg_up_in_changeflag
on example_table
after update, insert
as
December 19, 2018 at 1:09 pm
December 18, 2018 at 3:42 pm
December 18, 2018 at 3:23 pm
If you're on SQL 2016 (or even SQL 2012), just use TRY_CAST:
SELECT s
,TRY_CAST(s AS date) AS MyDate
FROM @t
December 18, 2018 at 11:12 am
December 17, 2018 at 12:57 pm
December 17, 2018 at 12:49 pm
December 17, 2018 at 12:31 pm
Viewing 15 posts - 3,016 through 3,030 (of 7,614 total)