Viewing 15 posts - 2,251 through 2,265 (of 13,870 total)
OK. One simplified solution would be as follows:
January 7, 2021 at 4:54 pm
Yes, I do want to take the month into consideration.
What do you mean by this?
January 7, 2021 at 4:42 pm
If StartDate was 2018-12-31 and SessionDate was 2020_01, what would be your desired answer as the number of years between the two?
January 7, 2021 at 4:18 pm
Possibly, but without knowing what dbo.fnGetSeconds does, we can't help much.
January 6, 2021 at 7:20 pm
Well done with posting consumable data.
Can you also post desired results, based on your sample data?
Like Joe and many others here, I am averse to opening spreadsheets from untrusted sources....
January 6, 2021 at 4:14 pm
Thank you for your guidance Brain.
He's called Brian! And the advice he has provided is sound: if the ETL solution is provided by a third party and there are...
January 6, 2021 at 10:27 am
With >1,700 points, you should know better. As already requested by others, please post consumable DDL, sample data in the form of INSERT statements and desired results based on your...
January 6, 2021 at 10:24 am
Untested, but something like this. Use a CTE to pre-aggregate the values in Cost Breakdown and then JOIN to that from Sales Line.
With Cost_Breakdown_Totals as
(SELECT cb.sl_entry_no,...
January 6, 2021 at 10:22 am
Hi Des
thanks for the answer it works well except for values which are zero then it doesn’t list them. how to list the zero values?
For example if I include...
January 5, 2021 at 2:04 pm
If you provide the following, there is a chance that you will get useful assistance. Without it, there's not much we can say.
January 5, 2021 at 1:54 pm
Ok, how about
TempAtMaxConductivity = temp
?
January 4, 2021 at 7:43 pm
I imagine that if you replace this
CASE WHEN TagName = 'WFI_LP01_Temp.PV' THEN value END AS TempAtMaxConductivity
with this
TempAtMaxConductivity = value
it will solve the problem.
January 4, 2021 at 6:04 pm
Can I also point out, that I'm trying to achieve the result without using LEFT JOIN
If you are referring to my code, that's called a SEMI JOIN and is...
January 3, 2021 at 3:08 pm
Untested, but should get you closer.
select c.FirstName
from dbo.customers c
where not exists (select 1 from dbo.orders o where o.cust_id = c.id and o.order_date BETWEEN '20190201' AND '20190301')
January 3, 2021 at 2:59 pm
Change your ORDER BY clause to use numeric (rather than alphabetic) ordering:
ORDER BY (x.ComToTal + y.Totals) DESC
January 3, 2021 at 11:41 am
Viewing 15 posts - 2,251 through 2,265 (of 13,870 total)