|
Hi, I just went through a situation where there are 2 tables and I need a select rows from first table based on the key column of second table incremented by 1. For example: Table1: 1 hari 123 2 hari2 321 3 hari3 432 4 hari4 234 5 hari5 543 Table2: 1 hari 123 4 hari4 234 The result selection must display 2 and 5 i.e.. 2 hari2 321 5 hari5 543 Please share your answers. Thanks, Ram
(comments are locked)
|
|
You can just put that right into the JOIN criteria: Now, that does act as a function on the column, so it may result in scans. Test it to be sure. Thanks for your response Fritchey. My expectation is it should pick 1 nd 4 key values from table 1 and display 2 and 5 from first table.
Aug 16 '12 at 03:51 PM
2ramgopal
It worked. Did some minor changes based on my data and got it.Thanks Fritchey.
Aug 16 '12 at 06:24 PM
2ramgopal
(comments are locked)
|

