G
Guest
Dear All,
I want to perform a query on my database where I want to select the returns
of all shares for a certain period that have a rating at a specific month. So
far I have the following query:
SELECT kr_oper.FUNDNAME, kr_star_l.month, kr_star_l.rating,
kr_star_l.category, kr_star_l.catcode, kr_ret_l.RETURN
FROM (kr_oper INNER JOIN kr_ret_l ON kr_oper.SECID = kr_ret_l.SECID) INNER
JOIN kr_star_l ON (kr_ret_l.MONTH = kr_star_l.month) AND (kr_ret_l.SECID =
kr_star_l.secid)
The variable describing the months is "kr_star_l.month" and the variable
describing the rating is "kr_star_l.rating"
kr_star_l.month should be > 199502
kr_star_l.rating should be > 0
What WHERE statement should I use to select all monthly data (from 199503 to
200509) on those shares that have a rating at 199503 (March 1995)
Thank you for your help!
I want to perform a query on my database where I want to select the returns
of all shares for a certain period that have a rating at a specific month. So
far I have the following query:
SELECT kr_oper.FUNDNAME, kr_star_l.month, kr_star_l.rating,
kr_star_l.category, kr_star_l.catcode, kr_ret_l.RETURN
FROM (kr_oper INNER JOIN kr_ret_l ON kr_oper.SECID = kr_ret_l.SECID) INNER
JOIN kr_star_l ON (kr_ret_l.MONTH = kr_star_l.month) AND (kr_ret_l.SECID =
kr_star_l.secid)
The variable describing the months is "kr_star_l.month" and the variable
describing the rating is "kr_star_l.rating"
kr_star_l.month should be > 199502
kr_star_l.rating should be > 0
What WHERE statement should I use to select all monthly data (from 199503 to
200509) on those shares that have a rating at 199503 (March 1995)
Thank you for your help!