This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
select distinct MODEL
where MAKE = 'Ford'
and VEH_YEAR = YEAR(CURRENT DATE)
I want to get the current year but VEH_YEAR is data type char (string) so the result errors because the data types are incompatible. How do you convert/cast YEAR(CURRENT DATE) to char? I tried, doesn't work cause incorrect?
and VEHICLE_YEAR = CAST (YEAR(CURRENT DATE) CHAR(4))