CodyMonster
Board Regular
- Joined
- Sep 28, 2009
- Messages
- 159
I'm trying to get my head around how to find a situation where I might have a field where two tables match, but, where another field might not.
I'll try and explain this the best I can.
Table 1:
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Lease ID[/TD]
[TD]Ticket Number[/TD]
[/TR]
[TR]
[TD]22045[/TD]
[TD]100542[/TD]
[/TR]
[TR]
[TD]22046[/TD]
[TD]100543[/TD]
[/TR]
[TR]
[TD]22047[/TD]
[TD]100544[/TD]
[/TR]
[TR]
[TD]22048[/TD]
[TD]100545[/TD]
[/TR]
</tbody>[/TABLE]
Table 2:
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Lease ID[/TD]
[TD]Ticket Number[/TD]
[/TR]
[TR]
[TD]22045[/TD]
[TD]100542[/TD]
[/TR]
[TR]
[TD]22046[/TD]
[TD]100544[/TD]
[/TR]
[TR]
[TD]22047[/TD]
[TD]100543[/TD]
[/TR]
[TR]
[TD]22048[/TD]
[TD]100545[/TD]
[/TR]
</tbody>[/TABLE]
I'm having a hard time thinking of a way a query would spit out that 22046 doesn't have matching ticket numbers.
Maybe this would be easy for someone else. But I'm having a difficult time understanding how to do this.
Thanks for all the help everyone.
I'll try and explain this the best I can.
Table 1:
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Lease ID[/TD]
[TD]Ticket Number[/TD]
[/TR]
[TR]
[TD]22045[/TD]
[TD]100542[/TD]
[/TR]
[TR]
[TD]22046[/TD]
[TD]100543[/TD]
[/TR]
[TR]
[TD]22047[/TD]
[TD]100544[/TD]
[/TR]
[TR]
[TD]22048[/TD]
[TD]100545[/TD]
[/TR]
</tbody>[/TABLE]
Table 2:
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Lease ID[/TD]
[TD]Ticket Number[/TD]
[/TR]
[TR]
[TD]22045[/TD]
[TD]100542[/TD]
[/TR]
[TR]
[TD]22046[/TD]
[TD]100544[/TD]
[/TR]
[TR]
[TD]22047[/TD]
[TD]100543[/TD]
[/TR]
[TR]
[TD]22048[/TD]
[TD]100545[/TD]
[/TR]
</tbody>[/TABLE]
I'm having a hard time thinking of a way a query would spit out that 22046 doesn't have matching ticket numbers.
Maybe this would be easy for someone else. But I'm having a difficult time understanding how to do this.
Thanks for all the help everyone.