Viewing 15 posts - 2,236 through 2,250 (of 13,850 total)
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
What sort of 'updates' do you need to look for? INSERTS, UPDATES and/or DELETES?
Do your tables have DateCreated and DateModified columns? If they do, this exercise probably becomes easier and...
January 3, 2021 at 10:17 am
Any suggestions pls.
Thanks.
Yes. You've been here long enough to know this.
Please provide sample DDL, INSERT statements with test data and desired output based on the data provided.
January 2, 2021 at 10:50 am
Just extend what you are already doing
Select * from
(
SELECT Stuff.Example1
Stuff.Example2
Stuff.Example3
Stuff.Example4
FROM Table1) As FirstSet
INNER JOIN
(
SELECT This.Example5
This.Example6
This.Example7
This.Example8
FROM...
December 31, 2020 at 1:30 pm
SELECT TOP (1) DateTime,
TOC = value
FROM runtime.dbo.History
WHERE TagName = 'WFI_LP01_TOC.PV'
AND DateTime >= '2018-01-01'
AND DateTime <= '2018-01-08'
AND wwRetrievalMode = 'Cyclic'
ORDER BY value desc
December 30, 2020 at 7:02 pm
So you want the TOC column to show the same value for all the rows within the selected range?
December 30, 2020 at 6:48 pm
Viewing 15 posts - 2,236 through 2,250 (of 13,850 total)