Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2004-06-08 : 08:03:19
|
| latha prabhu writes "How do I incorporate the where clause between two dates through a dynamic sql. i.e, Suppose I want to pass the where clause through a procedure in to the query in a report created through report builder how do I concatenate the dates in to the query.I have passed the parametered date into a variable say v_whereclause. My two parameterd dates are :sel_blk.first_date and :sel_blk.second_date.I saidv_whereclause:= 'AND date between to_date('||''''||:sel_blk.first_date||''''||','||''''dd/mm/yyyy''''||') and to_date'(||''''||:sel_blk.last_date||''''||','||''''dd/mm/yyyy''''||')'But it is giving me some error,please tell me how to do it" |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
|
|
|