is it always .doc or . followed by a 3 digit extension?
select * from foo
where fooid != substr(file, 1, length(file) - 4)
That works if so...

On 11/11/05, jonese <[EMAIL PROTECTED]> wrote:
> we have an upload system that stores an uploadid and then the filename
> of the file uploaded.
>
> the uploadid is just an int (100524) and filename is the uploadID plus
> the extention (100524.doc)
>
> I need a SQL script which will select those records where the uploadid
> doesn't equal the filename without the extension...
>
> anyone have any help / guidance?
>
> TIA jonese
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223973
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to