Forum Discussion

silly_bird's avatar
silly_bird
Regular Visitor
1 year ago
Solved

Cannot implement delta updates from upstream Postgres server behind gateway

Hi all   I got stuck with a simple task I need to read from PostgresSQL that sits on prem behind gateways. The gateway works for workflow and copy activity, but is not available in the notebook. ...
  • FabianSchut's avatar
    1 year ago

    Hi silly_bird,

     

    To get the MAX value of a column, you could use the lookup activity in combination with a sql server connection. As I can see in your screenshots, you have a lakehouse connection defined. Instead of defining a lakehouse connection, you should set up a sql server connection and use the sql endpoint from the lakehouse in the settings. If you have a sql server connection, you are able to query the table in the lookup activity. In that query, you can directly take the MAX value within your select statement. In the next steps of the data pipeline, you can use the queried max value.