My query as follows
select * from [transact].[transaction_item] where transactee_id = '1111290'
displayid transaction_id transaction_item_ transaction_item product_grade_id unit_id
TXN-1111290 8 2 28 NULL 3
TXN-1111290 13 2 26 NULL 3
TXN-1111290 15 2 28 NULL 3
i have below inner query as follows
locati transaction_idfarmerscode slipdate transaction_item_type product_grade_id
1001 8 1111290 2018-01-06 2 28 NULL
1001 8 1111290 2018-01-06 2 28 NULL
1001 8 1111290 2018-01-06 2 28 NULL
3031 13 1111290 2018-01-06 2 26 NULL
3031 13 1111290 2018-01-06 2 26 NULL
3031 13 1111290 2018-01-06 2 26 NULL
1001 15 1111290 2018-06-27 2 28 NULL
1001 15 1111290 2018-06-27 2 28 NULL
1001 15 1111290 2018-06-27 2 28 NULL
when i run the it shows the 9 records. but in the
[transact].[transaction_item]
table 3 records for the transactee_id '1111290'
but when i run the above inner join query for the id 1111290 the result i get 9 records. what is the mistake in my above inner join query.
please let me know.
What I have tried:
My query as follows
select * from [transact].[transaction_item] where transactee_id = '1111290'
displayid transaction_id transaction_item_ transaction_item product_grade_id unit_id
TXN-1111290 8 2 28 NULL 3
TXN-1111290 13 2 26 NULL 3
TXN-1111290 15 2 28 NULL 3
i have below inner query as follows
locati transaction_idfarmerscode slipdate transaction_item_type product_grade_id
1001 8 1111290 2018-01-06 2 28 NULL
1001 8 1111290 2018-01-06 2 28 NULL
1001 8 1111290 2018-01-06 2 28 NULL
3031 13 1111290 2018-01-06 2 26 NULL
3031 13 1111290 2018-01-06 2 26 NULL
3031 13 1111290 2018-01-06 2 26 NULL
1001 15 1111290 2018-06-27 2 28 NULL
1001 15 1111290 2018-06-27 2 28 NULL
1001 15 1111290 2018-06-27 2 28 NULL
when i run the it shows the 9 records. but in the <pre>[transact].[transaction_item]
table 3 records for the transactee_id '1111290'
but when i run the above inner join query for the id 1111290 the result i get 9 records. what is the mistake in my above inner join query.
please let me know.