Viewing 10 posts - 1 through 10 (of 10 total)
Now i achieved by being very specifc in the query.
I want to do away with the below boxed and show the result based on the condition of Dailysales table.
Dailysales table...
July 30, 2020 at 7:18 am
I have just added an image to simplify the content of the 4 tables and what i'm trying to do, hopefully it's much clearer this way.
Thank you everyone.
July 30, 2020 at 2:53 am
DISCHDR is the discount header table which contains the discount description.
we have different type of discounts (Offer discount/sales discount/tender discount) stored in different columns, so i'm doing this code to...
July 30, 2020 at 12:33 am
Sorry, i edited the code. Now it's showing they are from DS table which is Dailysale.
Also my title is Joing 2 tables but i have total of 4 in my...
July 30, 2020 at 12:29 am
Thank you very much! it's working now.
I am able to show my report for those stocked but not show within a date range.
Really very very grateful for your kind help.
March 16, 2020 at 5:31 am
Hi Everyone!
I did a search and amend my code to
SUM([DBLSTOCKONHAND]) OVER(PARTITION BY STRSTORECODE,IT.STRFAMILYCODE) AS [Family Level Qty],
It's working now, thank you everyone and have a great day! Cheers to such...
March 3, 2020 at 1:34 am
Thank you Mark and everyone who replied, many thanks for all the help.
I am now using this code
select
STRSTORECODE as STORE,
IT.STRXREFCODE as ARTICLE,
IT.STRFAMILYCODE as FAMILY,
DBLSTOCKONHAND as [Article Level Qty],
SUM([DBLSTOCKONHAND]) OVER(PARTITION BY...
March 3, 2020 at 1:16 am
Sorry for the double post.
Gotten a timeout message and thought it didn't went through.
July 22, 2019 at 8:15 am
Thank you Jonathan, it works like a charm.
Am very greatful and thanks for sharing your knowledge.
I'll learn from this and hopefully can give back to the community as much as...
May 17, 2019 at 1:40 pm
select
CT.LINTCUSTOMERNUM as CUSTID,
SUM(ACD.CURAMOUNT) as [TOTAL AMOUNT],
CASE when ACD.DTMTRANS < '2018-12-31' and ACD.STRTYPE='SALE' then SUM(ACD.CURDEBIT) Else '0' END as EARNED,
CASE when ACD.DTMTRANS < '2018-12-31' and ACD.STRTYPE='PAY' then SUM(ACD.CURCREDIT) Else '0' END...
May 17, 2019 at 1:10 pm
Viewing 10 posts - 1 through 10 (of 10 total)