Guest User

Untitled

a guest
Apr 20th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.45 KB | None | 0 0
  1. select cs_code, cs_pkkey from tbl_costs
  2.     where (cs_date >= convert(datetime,'20111205') and cs_dateend <= convert(datetime,'20111205'))
  3.      or (cs_date >= convert(datetime,'20111205') and cs_date <= convert(datetime,'20111205'))
  4.      or (cs_dateend <= convert(datetime,'20111205') and cs_dateend >= convert(datetime,'20111205'))
  5.      or (cs_date <= convert(datetime,'20111205') and cs_dateend >= convert(datetime,'20111205'))
  6.      and cs_pkkey = 3619 and cs_prkey = 1051
Add Comment
Please, Sign In to add comment