sql - ignore column in minus statement -
I am unable to find a solution to this problem.
There are two tables from zero to each other.
Select Table A Minus from Table A, Column B, Column C, Select Column A, Column B, Column Select from C Table B. The tableA.columnC is required, though this table will not match B.columnC, so the minus statement will return both records.
Is the column a way to ignore C's minus statement but still return the result?
- Thank you
PS A small background on this problem I have a transaction table, the date of purchase, the amount billed, the item purchased (sometimes listed) Is, sometimes not), is a unique identifier for the buyer's account number and purchase.
This table contains both purchases and reversals. Therefore, if a person has bought an item for 10.00 and then returns that item then it is -10.00. In some cases a person purchases the same day, will return and buy the item again. This data is from third parties.
Unfortunately, no amount works in this case, I need to line up all the purchases in line detail which has not been reversed.
I was able to advise and use this post to get the right information:
However, from this table, I need more information than this information Which I am using to give a discount from returns.
This is the reason why I want to help with the above details.
Some of these rows should work:
column A , Select column A from column B, from column C where it is not present (Select 1 from table B, where a.columnA = b.columnA and a.columnB = b.columnB), select < / Div>
Comments
Post a Comment