Project

General

Profile

Rashdan_tomorrow_task.txt

Muhammed Azhar Mohamed Maideen, 13/03/2024 05:33 PM

 
1
SELECT  
2

    
3
    b.customer_code, 
4

    
5
    b.customer_name, 
6

    
7
    *  
8

    
9
FROM  
10

    
11
    txn_invoice_history_header a 
12

    
13
INNER JOIN  
14

    
15
    customer b ON a.customer_id = b.customer_id 
16

    
17
WHERE  
18

    
19
    a.org_id ='goldcrest'  
20

    
21
    AND customer_code = '301P/036'
22

    
23
    AND invoice_no='INJNM000370-240216'  
24

    
25
    order by a.created_date desc 
26
	----------------------------------------------------------------------------------------------------------------------
27

    
28
	--d0113352-f17f-40e5-9dab-fa98ae102ebc invoice id
29
	    select * from txn_mobile_collection_invoice where col_id= 'e4353956-dfa8-4452-9309-ebc9d7ed4fbe'  
30

    
31
		  --select * from txn_mobile_collection_header where col_id in('e4353956-dfa8-4452-9309-ebc9d7ed4fbe','224702ac-4a6e-40e0-8d1d-5441408c177b', '0fac120e-37cf-4b47-959d-9065aec0908b') order by created_date desc
32
		  -- CCJNM000337-240216 this collection was cancelled 
33
		  select * from txn_invoice_history_header where invoice_id= 'eb727e42-0027-4ad9-80d3-5a16bd84285c';
34
		  
35
		  		  select * from txn_invoice_history_header where invoice_no= 'INJNM000370-240216';
36
				  select * from di_mobile_txn_collection_invoices where invoice_id = 'd0113352-f17f-40e5-9dab-fa98ae102ebc'
37
				  --db134f71-058f-41b8-a1a5-7b6b07959d0d This collection is missing in the Actual table 
38
				  -- processid = db134f71-058f-41b8-a1a5-7b6b07959d0d
39

    
40
				  select * from txn_mobile_collection_invoice where inv_id = 'd0113352-f17f-40e5-9dab-fa98ae102ebc'