# Rules on 2 or more tables

**URL:** <https://community.easymorph.com/t/rules-on-2-or-more-tables/952>\
**Category:** General Q&A\
**Created:** [February 26, 2019, 6:17am UTC](https://community.easymorph.com/t/rules-on-2-or-more-tables/952 "2019-02-26T06:17:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaykay](https://community.easymorph.com/user_avatar/community.easymorph.com/aaykay/32/752_2.png) [@aaykay](https://community.easymorph.com/u/aaykay)\
**Post date:** [February 26, 2019, 6:17am UTC](https://community.easymorph.com/t/rules-on-2-or-more-tables/952/1 "2019-02-26T06:17:47Z")

</div>

Hi,

Sorry if my question was already asked here in the community, but I didn’t find the solution I needed  
.  
Is there a way to apply rules on 2 or more pages?

I have 2 tables. Say  
ClaimTable: Claim ID, Name, Job, Due Date, Date Paid.  
Job Table: Job ID, Name, Job, Job Start, Job End

I need to link the claim with the job where Name=Name and Job = Job and Job Start\<DueDate\<Job End + 3 months.

I can do it with Rule action but not sure how to apply rules on 2 tables.

Any help would be much appreciated.

Regards,  
AK

---

<div class="post-metadata">

**Author:** ![dgudkov](https://community.easymorph.com/user_avatar/community.easymorph.com/dgudkov/32/5_2.png) [@dgudkov](https://community.easymorph.com/u/dgudkov)\
**Post date:** [February 26, 2019, 9:51pm UTC](https://community.easymorph.com/t/rules-on-2-or-more-tables/952/2 "2019-02-26T21:51:14Z")

</div>

The ["Interval merge"](http://help.easymorph.com/doku.php?id=transformations:intervalmerge) action does exactly that kind of merging.

See the example below:

[interval-merge.morph](https://community.easymorph.com/uploads/default/original/1X/a08862dde2b6f7158e9e7e0dd395b3fbae802d44.morph) (3.8 KB)  
[Book1.xlsx](https://community.easymorph.com/uploads/default/original/1X/45a377ef61e2e52829d4a6e7629faefdc02f3247.xlsx) (9.2 KB)

 ![image](https://community.easymorph.com/uploads/default/original/1X/ee4cc30d84440dbfdff3ea28af30e5a44090d531.png)
