Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- select cs_code
- ,cs_pkkey
- from tbl_costs
- where (
- (cs_date >= convert(datetime,'20111205') and cs_dateend <= convert(datetime,'20111205'))
- or (cs_date >= convert(datetime,'20111205') and cs_date <= convert(datetime,'20111205'))
- or (cs_dateend <= convert(datetime,'20111205') and cs_dateend >= convert(datetime,'20111205'))
- or (cs_date <= convert(datetime,'20111205') and cs_dateend >= convert(datetime,'20111205'))
- )
- and cs_pkkey = 3619
- and cs_prkey = 1051
Add Comment
Please, Sign In to add comment