Zum Hauptinhalt gehen

Suche

Suche

Failed Inner Join Using Custom SQL

Kommentare

3 Kommentare

  • Avatar
    Harald Müller

    Hi Mario,

    i have the same problem like you described. May you have a solution for this? Thanks.

    0
  • Avatar
    Mario Gonzales

    Hi Harald,

    I had to ditch the attempt at using a custom SQL statement on one of the tables. 

    I was told, by Bartender Support, that it was probably best to create a SQL view, on the server side, from both tables, and connect it to the app. So, basically, instead of inner joining the tables within Bartender, they said it was best to create a SQL view from both tables on the server, with whatever fields I need; and then connect that view to the Bartender app, as if it were a single table.

    In my situation wasn't able to do that, for various reasons. So I had to bear down and further analyze the data (starting with 280,000 records), in an effort to further eliminate the duplicate field values, using the operator and criteria options within the Bartender Query tab. Took me a very long time to figure it out

    0
  • Avatar
    Travis Truax

    I would think this could also be circumvented by joining the tables in the query (although how you did that would depend on your database platform). The OP didn't list if the databases existed in different databases on the same server, or completely different systems. If on SQL Server for instance, this could be handled with a linked server if on multiple systems or different database instances, or by prefixing the database name to the database objects if on the same SQL Server instance. Other platforms would be similar...  Of course, if you don't have access to add a view, you may also not have linked-server access either. 

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.