Viewing 15 posts - 151 through 165 (of 754 total)
May 9, 2023 at 8:38 pm
You just want to concatenate all the IssueName values? If you don't care about order, you can use STRING_AGG function:
SELECT STRING_AGG(IssueName,',') AS IssueNames FROM dbo.tempIssueRange;
May 9, 2023 at 1:36 pm
Given that you know the from and to time zone (i.e., you know the offset difference), but your values are not datetimeoffset, why don't you just use dateadd()?
May 9, 2023 at 1:16 pm
Maybe something like Monarch? I used a product called Monarch decades ago that sounds like this tool.
There are some industries/groups of customers with more discipline than others, and some...
May 5, 2023 at 8:58 pm
<reference_number> is an element, not an attribute.
May 4, 2023 at 1:16 pm
That error seems to indicate you're not using SQL Server 2022. (Which is probably why DesNorton wrote " (NOTE the extra parameter in STRING_SPLIT)"
Are you on SQL Server 2022? You...
May 3, 2023 at 5:56 pm
You probably have one or more calculations w/ a result > 100
Contrived example... This succeeds:
This succeeds:
SELECT 'Symbol',
'2023-05-02',
CAST(IIF(0 = -1, 0, 1.0 * 1.234567 / .01234567) AS NUMERIC(7,4))...
May 3, 2023 at 12:07 am
Post duplicated
May 2, 2023 at 11:56 pm
What are the data types (w/ precision & scale) of T3.P_V, T4.C_V, T3.P_O, T4.C_O, T3.P_D, & T4.C_D?
Can you provide a sample script of failing data?
May 2, 2023 at 11:56 pm
Your example using
WHERE PRM_StartDate = (SELECT MAX(PRM_StartDate) FROM PriceMatrix)
would , fixing the double WHERE, only return rows where PRM_StartDate is the maximum where IMA_ItemStatusCode = 'Active'.
So...
May 2, 2023 at 2:57 pm
Based on some other links, try replacing & with %26
May 1, 2023 at 10:23 pm
PLAN & COUNT are reserved keywords. If you're going to use them as an object (e.g., column) name or alias, you need to wrap them in double quotes or...
May 1, 2023 at 3:33 pm
Posting DDL & insert scripts rather than links to download is more likely to get you help.
Not getting snippy with a generous expert like Grant...
April 6, 2023 at 9:35 pm
Viewing 15 posts - 151 through 165 (of 754 total)