How to query an ASE and IQ database at the same time

say i have a table named Item in ASE database.

Item table with the filelds itemID,itemName and so..

and a table named ItemDetails in IQ database.

ItemDetails with the fields itemID, itemdetail1, itemDetail2 and so..

i need to get the itemID,itemName from ASE and itemdetail1, itemDetail2 from IQ database.

How can i connect & query both the database at the same time..??