Presentation is loading. Please wait.

Presentation is loading. Please wait.

Three file matching Please use speaker notes for additional information!

Similar presentations


Presentation on theme: "Three file matching Please use speaker notes for additional information!"— Presentation transcript:

1 Three file matching Please use speaker notes for additional information!

2 ID1 > ID2 ID2 > ID3 Process file 3 Read file 3 ID2 = ID3 Process file 2 Process file 3 Read file 2 Read file 3 Process file 2 Read file 2 ID1 = ID2 ID1 > ID3 Process file 3 Read file 3 ID1= ID3 Process file 1 Process file 2 Process file 3 Read file 1 Process file 1 Process file 2 Read file 2 Read file 3 Read file 1 Read file 2 3 file match/merge ID1 < ID2 next page

3 3 file match/merge ID1 < ID2 ID1 > ID3 Process file 3 Read file 3 ID1 = ID3 Process file 1 Process file 3 Read file 1 Read file 3 Process file 1 Read file 1

4 3 file match/merge file1sng 111100 222200 333300 444400 555500 666600 888800 file2sng 111010 222020 300030 333000 444040 666060 777070 file3sng 111001 222002 300003 333033 500005 666006 777007 880008 ID1 = ID2 ID1 > ID3 ID1= ID3 Process file 1 Process file 2 Process file 3 Read file 1 Read file 2 Read file 3 File123 111100 111010 111001

5 3 file match/merge file1sng 111100 222200 333300 444400 555500 666600 888800 file2sng 111010 222020 300030 333000 444040 666060 777070 file3sng 111001 222002 300003 333033 500005 666006 777007 880008 ID1 = ID2 ID1 > ID3 ID1= ID3 Process file 1 Process file 2 Process file 3 Read file 1 Read file 2 Read file 3 File123 111100 111010 111001 222200 222020 222002

6 3 file match/merge file1sng 111100 222200 333300 444400 555500 666600 888800 file2sng 111010 222020 300030 333000 444040 666060 777070 file3sng 111001 222002 300003 333033 500005 666006 777007 880008 File123 111100 111010 111001 222200 222020 222002 300030 300003 ID1 > ID2 ID2 > ID3 ID2 = ID3 Process file 2 Process file 3 Read file 2 Read file 3

7 3 file match/merge file1sng 111100 222200 333300 444400 555500 666600 888800 file2sng 111010 222020 300030 333000 444040 666060 777070 file3sng 111001 222002 300003 333033 500005 666006 777007 880008 File123 111100 111010 111001 222200 222020 222002 300030 300003 333300 333000 333033 ID1 = ID2 ID1 > ID3 ID1= ID3 Process file 1 Process file 2 Process file 3 Read file 1 Read file 2 Read file 3

8 3 file match/merge file1sng 111100 222200 333300 444400 555500 666600 888800 file2sng 111010 222020 300030 333000 444040 666060 777070 file3sng 111001 222002 300003 333033 500005 666006 777007 880008 File123 111100 111010 111001 222200 222020 222002 300030 300003 333300 333000 333033 444400 444040 ID1 = ID2 ID1 > ID3 ID1= ID3 Process file 1 Process file 2 Read file 1 Read file 2

9 3 file match/merge file1sng 111100 222200 333300 444400 555500 666600 888800 file2sng 111010 222020 300030 333000 444040 666060 777070 file3sng 111001 222002 300003 333033 500005 666006 777007 880008 File123 111100 111010 111001 222200 222020 222002 300030 300003 333300 333000 333033 444400 444040 500005 ID1 < ID2 ID1 > ID3 Process file 3 Read file 3

10 3 file match/merge file1sng 111100 222200 333300 444400 555500 666600 888800 file2sng 111010 222020 300030 333000 444040 666060 777070 file3sng 111001 222002 300003 333033 500005 666006 777007 880008 File123 111100 111010 111001 222200 222020 222002 300030 300003 333300 333000 333033 444400 444040 500005 555500 ID1 < ID2 ID1 > ID3 ID1 = ID3 Process file 1 Read file 1

11 3 file match/merge file1sng 111100 222200 333300 444400 555500 666600 888800 file2sng 111010 222020 300030 333000 444040 666060 777070 file3sng 111001 222002 300003 333033 500005 666006 777007 880008 File123 111100 111010 111001 222200 222020 222002 300030 300003 333300 333000 333033 444400 444040 500005 555500 666600 666060 666006 ID1 = ID2 ID1 > ID3 ID1= ID3 Process file 1 Process file 2 Process file 3 Read file 1 Read file 2 Read file 3

12 3 file match/merge file1sng 111100 222200 333300 444400 555500 666600 888800 file2sng 111010 222020 300030 333000 444040 666060 777070 file3sng 111001 222002 300003 333033 500005 666006 777007 880008 File123 111100 111010 111001 222200 222020 222002 300030 300003 333300 333000 333033 444400 444040 500005 555500 666600 666060 666006 777070 777007 ID1 > ID2 ID2 > ID3 ID2 = ID3 Process file 2 Process file 3 Read file 2 Read file 3 The read of file2sng is unsuccessful so 999 is moved to ID2

13 3 file match/merge file1sng 111100 222200 333300 444400 555500 666600 888800 file2sng 111010 222020 300030 333000 444040 666060 777070 file3sng 111001 222002 300003 333033 500005 666006 777007 880008 File123 111100 111010 111001 222200 222020 222002 300030 300003 333300 333000 333033 444400 444040 500005 555500 666600 666060 666006 777070 777008 888800 880008 The read of file3sng is unsuccessful so 999 is moved to ID3 ID1 < ID2 ID1 > ID3 ID1 = ID3 Process file 1 Process file 3 Read file 1 Read file 3 The read of file1sng is unsuccessful so 999 is moved to ID1 ID2 is 999

14 Read file 1 Read file 2 Read file 3 3 file with multiple per id ID1 > ID2 ID2 > ID3 Id3 -> holdid ID1 > ID3 Id1 -> holdidId3 -> holdid

15 3 file with multiple per id ID1 > ID2 ID2 > ID3 ID2 = ID3 ID2 = holdid Read file 3 Add amt3 to tot amt Set up rec write id3 ->holdid 0 -> tot amt Read file 3 Read file 3 Add amt3 to tot amt ID3 = holdid Read file 2 Add amt 2 & amt3 to tot amt Set up rec write id2 ->holdid 0 -> tot amt Read file 3 Read file 2 Add amt 2 & amt3 to tot amt ID2 = holdid Read file 2 Add amt 2 to tot amt Set up rec write id2 ->holdid 0 -> tot amt Read file 2 Add amt 2 to tot amt check ID1 = ID2 next page

16 ID1 = ID2 ID1> ID3 ID1 = holdid Read file 3 Add amt3 to tot amt Set up rec write id3 ->holdid 0 -> tot amt Read file 2 Read file 3 Add amt3 to tot amt ID3 = holdid Read file 1 Add amt1 & amt2 & amt3 to tot amt Set up rec write id1 ->holdid 0 -> tot amt Add amt1 & amt2 & amt3 to tot amt ID1 = ID3 Read file 3 Read file 2 Read file 1 Read file 3 ID1 = holdid Read file 2 Read file 1 Add amt1 & amt2 to tot amt Set up rec write id1 ->holdid 0 -> tot amt Read file 2 Read file 1 Add amt1 & amt2 to tot amt ID1 = ID2 ID1 { "@context": "http://schema.org", "@type": "ImageObject", "contentUrl": "http://images.slideplayer.com/12/3953920/slides/slide_16.jpg", "name": "ID1 = ID2 ID1> ID3 ID1 = holdid Read file 3 Add amt3 to tot amt Set up rec write id3 ->holdid 0 -> tot amt Read file 2 Read file 3 Add amt3 to tot amt ID3 = holdid Read file 1 Add amt1 & amt2 & amt3 to tot amt Set up rec write id1 ->holdid 0 -> tot amt Add amt1 & amt2 & amt3 to tot amt ID1 = ID3 Read file 3 Read file 2 Read file 1 Read file 3 ID1 = holdid Read file 2 Read file 1 Add amt1 & amt2 to tot amt Set up rec write id1 ->holdid 0 -> tot amt Read file 2 Read file 1 Add amt1 & amt2 to tot amt ID1 = ID2 ID1 ID3 ID1 = holdid Read file 3 Add amt3 to tot amt Set up rec write id3 ->holdid 0 -> tot amt Read file 2 Read file 3 Add amt3 to tot amt ID3 = holdid Read file 1 Add amt1 & amt2 & amt3 to tot amt Set up rec write id1 ->holdid 0 -> tot amt Add amt1 & amt2 & amt3 to tot amt ID1 = ID3 Read file 3 Read file 2 Read file 1 Read file 3 ID1 = holdid Read file 2 Read file 1 Add amt1 & amt2 to tot amt Set up rec write id1 ->holdid 0 -> tot amt Read file 2 Read file 1 Add amt1 & amt2 to tot amt ID1 = ID2 ID1

17 ID1 < ID2 ID1> ID3 Read file 3 Add amt3 to tot amt Set up rec write id3 ->holdid 0 -> tot amt Read file 3 Add amt3 to tot amt ID3 = holdid ID1 < ID2 ID1 = holdid Read file 3 Read file 1 Add amt1 & amt3 to tot amt Set up rec write id1 ->holdid 0 -> tot amt Add amt1 & amt3 to tot amt ID1 = ID3 Read file 3 Read file 1 Read file 1 Add amt1 to tot amt Set up rec write id1 ->holdid 0 -> tot amt Read file 1 Add amt1 to tot amt ID1= holdid

18 file1mul ID1|amt1 111011 111001 111010 222002 333003 333033 444004 555055 600006 666600 666060 666006 file2mul ID2|amt2 111001 111010 222022 222222 300003 444004 444040 444444 555006 666006 666060 777007 file3mul ID3|amt3 111110 111011 112012 222022 333033 333303 444404 666606 666060 3 file (0 - multiple per id) ID1 = ID2 ID1> ID3 ID1 = holdid Read file 2 Read file 1 Add amt1 & amt2 & amt3 to tot amt ID1 = ID3 Read file 3 holdid 111 total amount 11 12 22

19 file1mul ID1|amt1 111011 111001 111010 222002 333003 333033 444004 555055 600006 666600 666060 666006 file2mul ID2|amt2 111001 111010 222022 222222 300003 444004 444040 444444 555006 666006 666060 777007 file3mul ID3|amt3 111110 111011 112012 222022 333033 333303 444404 666606 666060 3 file (0 - multiple per id) ID1 = ID2 ID1> ID3 ID1 = holdid Read file 2 Read file 1 Add amt1 & amt2 & amt3 to tot amt ID1 = ID3 Read file 3 holdid 111 total amount 11 12 22 23 33 44

20 file1mul ID1|amt1 111011 111001 111010 222002 333003 333033 444004 555055 600006 666600 666060 666006 file2mul ID2|amt2 111001 111010 222022 222222 300003 444004 444040 444444 555006 666006 666060 777007 file3mul ID3|amt3 111110 111011 112012 222022 333033 333303 444404 666606 666060 3 file (0 - multiple per id) holdid 111 total amount 11 12 22 23 33 44 54 ID1> ID3 ID1 < ID2 ID1 = ID3 Read file 1 Add amt1 to tot amt ID1= holdid

21 file1mul ID1|amt1 111011 111001 111010 222002 333003 333033 444004 555055 600006 666600 666060 666006 file2mul ID2|amt2 111001 111010 222022 222222 300003 444004 444040 444444 555006 666006 666060 777007 file3mul ID3|amt3 111110 111011 112012 222022 333033 333303 444404 666606 666060 3 file (0 - multiple per id) holdid 111 total amount 11 12 22 23 33 44 54 ID1 = ID2 ID1> ID3 Set up rec write id3 ->holdid 0 -> tot amt Read file 3 Add amt3 to tot amt ID3 = holdid 1110054 holdid 112 total amount 0 12

22 file1mul ID1|amt1 111011 111001 111010 222002 333003 333033 444004 555055 600006 666600 666060 666006 file2mul ID2|amt2 111001 111010 222022 222222 300003 444004 444040 444444 555006 666006 666060 777007 file3mul ID3|amt3 111110 111011 112012 222022 333033 333303 444404 666606 666060 3 file (0 - multiple per id) holdid 112 1110054 1120012 total amount 0 12 ID1 = ID2 ID1> ID3 ID1 = holdid ID1 = ID3 Set up rec write id1 ->holdid 0 -> tot amt Add amt1 & amt2 & amt3 to tot amt Read file 2 Read file 1 holdid 222 total amount 0 2 24 46 Read file 3

23 file1mul ID1|amt1 111011 111001 111010 222002 333003 333033 444004 555055 600006 666600 666060 666006 file2mul ID2|amt2 111001 111010 222022 222222 300003 444004 444040 444444 555006 666006 666060 777007 file3mul ID3|amt3 111110 111011 112012 222022 333033 333303 444404 666606 666060 3 file (0 - multiple per id) holdid 222 ID1 > ID2 ID2 > ID3 ID2 = ID3 ID2 = holdid Read file 2 Add amt 2 to tot amt total amount 0 2 24 46 68

24 ID1 > ID2 ID2 > ID3 ID2 = ID3 ID2 = holdid Set up rec write id2 ->holdid 0 -> tot amt Read file 2 Add amt 2 to tot amt file1mul ID1|amt1 111011 111001 111010 222002 333003 333033 444004 555055 600006 666600 666060 666006 file2mul ID2|amt2 111001 111010 222022 222222 300003 444004 444040 444444 555006 666006 666060 777007 file3mul ID3|amt3 111110 111011 112012 222022 333033 333303 444404 666606 666060 3 file (0 - multiple per id) holdid 222 1110054 1120012 2220068 total amount 0 2 24 46 68 holdid 300 total amount 0 3

25 file1mul ID1|amt1 111011 111001 111010 222002 333003 333033 444004 555055 600006 666600 666060 666006 file2mul ID2|amt2 111001 111010 222022 222222 300003 444004 444040 444444 555006 666006 666060 777007 file3mul ID3|amt3 111110 111011 112012 222022 333033 333303 444404 666606 666060 3 file (0 - multiple per id) holdid 300 ID1> ID3 ID1 < ID2 ID1 = holdid Set up rec write id1 ->holdid 0 -> tot amt Add amt1 & amt3 to tot amt ID1 = ID3 Read file 3 Read file 1 1110054 1120012 2220068 3000003 total amount 3 holdid 333 total amount 0 3 36

26 file1mul ID1|amt1 111011 111001 111010 222002 333003 333033 444004 555055 600006 666600 666060 666006 file2mul ID2|amt2 111001 111010 222022 222222 300003 444004 444040 444444 555006 666006 666060 777007 file3mul ID3|amt3 111110 111011 112012 222022 333033 333303 444404 666606 666060 3 file (0 - multiple per id) holdid 333 ID1> ID3 ID1 < ID2 ID1 = holdid ID1 = ID3 total amount 0 3 36 69 72 Read file 3 Read file 1 Add amt1 & amt3 to tot amt


Download ppt "Three file matching Please use speaker notes for additional information!"

Similar presentations


Ads by Google