Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

query for a report . Pl Help

Status
Not open for further replies.

016

Programmer
May 8, 2000
17
0
0
US
select customer.name, case.caseid, case.customerid, case.status, case.datecreated from case, customer where CASE.CUSTOMERID = CUSTOMERR= customerid, and case.status = 'open' and ((dateDiff(&quot;d&quot;, [case.datecreted], now())&gt;15<br>(i have 2 tables : case and customer&nbsp;&nbsp;the commun fild for both is customerid).<br>HELP ME PLEASE. THANKS<br><br>(
 
if your above sql statement is written exactly as you have it in your program, there are some problems with it - BUT, I think you were in a bit of a hurry to convey the problem and overlooked QCing the statement - I do it myself.<br><br>all that to say - check the parens around your 'dateDiff' - they're not equal in number<br>hth..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top