Subject Re: [firebird-support] Select from a table and stored procedure
Author Martijn Tonies
Hi,

> Now the problem: I need to select some files and their full paths,
> preferably in one statement. That is, I need something like

select (select fullpath from getparents(folders.id) as fullpath,
filename from files ...

etc etc...

> select getparents(folders.id), filename from files inner join folders on
> folders.id=files.folderid where filename = 'A'
>
> Which obviously does not work. Please tell how can I do it correctly and
> with the best efficiency?

Martijn Tonies
Database Workbench - development tool for Firebird and more!
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com