Well I mean, I have a database in SQL SERVER called SIELAB and another database in PostgreSQL called reservations , I managed to make the connection correctly and I have already managed to execute a SELECT query from a stored procedure in SQL SERVER to a table I have in PostgreSQL . I did the consultation in the following way:
SELECT *
FROM OPENQUERY(MYLINKEDSERVER,
'SELECT usu_id_pk AS Id_usuario, usu_nombre_completo AS Nombre_usuario FROM reservas.usuario')
Now in my bd of SQL SERVER I have a table that has a usu_id_pk field as in the bd table of the PostgreSQL server, I need to make an INNER JOIN between these two tables in order to bring the data I need from the table in POSTGRESQL .
I hope you can help me, thanks!