Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql statement problem?
Message
 
 
To
27/01/2011 11:31:43
General information
Forum:
ASP.NET
Category:
Databases
Environment versions
Environment:
VB 9.0
OS:
Windows XP
Database:
Jet/Access Engine
Miscellaneous
Thread ID:
01497544
Message ID:
01497561
Views:
56
>HI, ALL
> I don't konw my sql statement have what problem? And how do solve?
>i use Access, i check the problem is in sum(datediff('yyyy','01/01/' & w.from_year ,'01/01/' & w.to_year )) >= 1, but i don't know
>
>select distinct (c.candidate_no)  FROM ((candidate as c left JOIN education as e ON  c.candidate_no = e.candidate_no ) left Join working as w ON c.candidate_no = w.candidate_no )group by c.candidate_no,c.last_name ,c.nick_name, IIf( c.dob = '  /  /',0,DATEDIFF('yyyy',c.dob,now) ) , c.mobile,c.expect_salary,c.available_option,e.level,e.institute,w.Industry,w.work_position,w.place,w.employer,w.duty,w.Achievement having 1 = 1 and sum(datediff('yyyy','01/01/' & w.from_year ,'01/01/' & w.to_year )) >= 1
>
>
>
That's a mouthful, and I'm not sure, but the parentheses don't look right.
Previous
Reply
Map
View

Click here to load this message in the networking platform