Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Select query where codn

Former Member
0 Kudos

Hi in my requirement in a select query i have to place a where codn using asset value date.Actually the asset value date has from date and end date.The from date is present in a table and end date is present in another table so now how to put the where codn.Please give some suggestions.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi hema,

Use subquery as follows;

Select.....
.....Where asset_date BETWEEN (Select single asset_fromdate from fromdate_table where key_field = value) AND (Select single asset_todate from todate_table where key_field = value)

Hope this helps you...

Regards

Karthik D

1 REPLY 1

Former Member
0 Kudos

Hi hema,

Use subquery as follows;

Select.....
.....Where asset_date BETWEEN (Select single asset_fromdate from fromdate_table where key_field = value) AND (Select single asset_todate from todate_table where key_field = value)

Hope this helps you...

Regards

Karthik D