FN can identify a function, it looks to me like it is trying to run a function named max with the input of timestamp. Try changing both FN's to just F.
-SQLBill
The following is part of my signature block and is only intended to be informational.
Posting advice: FAQ481-4875
You're doing the join on a function not a field so as written it wont work. Here's what you need to do
Select n.* From lacalphoto.dojviews.dbo.dob n Left Join (Select Max(timestamp) as param From los_angeles_calphoto.dbo.dob_full) FN on n.timestamp > fn.param
Try something like that (depending on your purpose):
Code:
select * FROM LAcalphoto.DOJviews.dbo.DOB
where timestamp > (select Max(timestamp) from Los_Angeles_CALPHOTO.dbo.DOB_FULL)
or
Code:
select * FROM LAcalphoto.DOJviews.dbo.DOB N
LEFT JOIN Los_Angeles_CALPHOTO.dbo.DOB_FULL FN
on N.timestamp > (select Max(timestamp) from Los_Angeles_CALPHOTO.dbo.DOB_FULL)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.