" /> Brio "unmatched" Query? - Genesys CTI User Forum

Author Topic: Brio "unmatched" Query?  (Read 9321 times)

tony

  • Guest
Brio "unmatched" Query?
« on: April 13, 2010, 01:04:24 PM »
Advertisement
Hai guys! :)

I'm perplexed by something which just does not seem possible in Brio;

I have 2 Table results which I am using in a new Query (as Local Tables).  The Query does not have an .oce associated, since the tables it uses are locally available.  Anyway - what I have is a single row of data on each Table and I want to find out which entries from one Table are NOT in the other Table.  It's called an "unmatched" Query.

Problem is, if I use the built in JOIN Type (of "not equal") it returns millions of rows, since it is comparing the first row of data with every row of data in the other Table, and so on....

What I would like it to return is a list of entries which are present in one Table - but not in the other.  "Unmatched".

I can do this in SQL>PL SQL, MSAccess, etc. but I need to create the same thing in Brio and, because these are Local Tables, I cannot use the majority of the tools that are normally available to Queries ("Return Unique Records", "Return first 100 Results, etc.)

Has anyone managed to do this, before?  Any pointers much appreciated - I've scoured the web and found some references over at the ITToolbox, but it doesn't cover this particular scenario... and I thought it would be easy! :/

Thanks guys!

Tony

Offline ecki

  • Sr. Member
  • ****
  • Posts: 329
  • Karma: 8
Re: Brio "unmatched" Query?
« Reply #1 on: April 13, 2010, 01:40:35 PM »
  • Best Answer
  • Hi Tony,

    The best way would be to put the logic in to view.

    cheers,

    e.

    tony

    • Guest
    Re: Brio "unmatched" Query?
    « Reply #2 on: April 13, 2010, 02:00:25 PM »
  • Best Answer
  • Hmmm... can't upload graphics... :(

    I wanted to achieve an unmatched result from 2 similar tables where only some entries are the same - a bit like this:

    Select TABLE_001.NUMBER, TABLE_002.NUMBER Into TABLE_003
    From TABLE_001 Left Join TABLE_002 On TABLE_001.NUMBER =
    TABLE_003.NUMBER
    Where (((TABLE_003.NUMBER) Is Null));

    ...but in Brio....

    Any ideas...?

    Thanks!

    Tony

    tony

    • Guest
    Re: Brio "unmatched" Query?
    « Reply #3 on: April 13, 2010, 03:22:47 PM »
  • Best Answer
  • I *think* I have a workaround - but a bit messy...

    Create a Query (Query1) for all of the Values in Table 1 (the Full Table)
    Create a Query (Query2) for all of the values in Table 2 (the Partial Table)
    Create a Script to export all of the Values from Table 2, to an external .txt file (Table2.txt)
    Update Query1 by applying a Limit on the Results, which uses the Operator "Not Equal" to the Values from Table2.txt, as a Loaded External File.

    Create a script that runs an Export of Query2 and overwrites Table2.txt each time you open the document.  After that, each time you run Query1, it will use the updated values as an unmatched Query and return the results required.

    As a little furry rodent currently advertising cheap car insurance says; "Simples!" <squeak!>

    I have a feeling that this will make no sense to anyone but me - but I am happy I found an answer - as complex as it may seem.... lol

    Tony

    Offline cavagnaro

    • Administrator
    • Hero Member
    • *****
    • Posts: 7641
    • Karma: 56330
    Re: Brio "unmatched" Query?
    « Reply #4 on: April 13, 2010, 04:59:10 PM »
  • Best Answer
  • Giac!

    tony

    • Guest
    Re: Brio "unmatched" Query?
    « Reply #5 on: April 14, 2010, 10:07:35 AM »
  • Best Answer
  • No idea what that means cav, but....  :D

    :)

    T


    [quote author=cavagnaro link=topic=5470.msg23830#msg23830 date=1271177950]
    Giac!
    [/quote]

    Offline cavagnaro

    • Administrator
    • Hero Member
    • *****
    • Posts: 7641
    • Karma: 56330
    Re: Brio "unmatched" Query?
    « Reply #6 on: April 15, 2010, 02:25:30 AM »
  • Best Answer
  • [quote author=Tony Tillyer link=topic=5470.msg23837#msg23837 date=1271239655]
    No idea what that means cav, but....  :D

    :)

    T


    [quote author=cavagnaro link=topic=5470.msg23830#msg23830 date=1271177950]
    Giac!
    [/quote]
    [/quote]

    puaj, ew, agh!

    tony

    • Guest
    Re: Brio "unmatched" Query?
    « Reply #7 on: April 15, 2010, 12:58:25 PM »
  • Best Answer
  • u no like solution..? :)

    Offline cavagnaro

    • Administrator
    • Hero Member
    • *****
    • Posts: 7641
    • Karma: 56330
    Re: Brio "unmatched" Query?
    « Reply #8 on: April 16, 2010, 05:11:28 AM »
  • Best Answer
  • I do like the fact that you solved the issue in a very challenging way, I don't like why Brio has to be so complex for "easy" tasks

    tony

    • Guest
    Re: Brio "unmatched" Query?
    « Reply #9 on: April 16, 2010, 01:34:02 PM »
  • Best Answer
  • True - it can't do a simple "unmatched" query.... :(

    T

    Offline cavagnaro

    • Administrator
    • Hero Member
    • *****
    • Posts: 7641
    • Karma: 56330
    Re: Brio "unmatched" Query?
    « Reply #10 on: April 16, 2010, 01:50:56 PM »
  • Best Answer
  • In general managing SQL is a hell in Brio...I'm already looking for some alternative to it

    Offline Fra

    • Hero Member
    • *****
    • Posts: 856
    • Karma: -3
    Re: Brio "unmatched" Query?
    « Reply #11 on: April 16, 2010, 02:17:06 PM »
  • Best Answer
  • Brio? I associate this word with 'feeling sick' !  :-X

    Fra

    tony

    • Guest
    Re: Brio "unmatched" Query?
    « Reply #12 on: April 16, 2010, 02:32:04 PM »
  • Best Answer
  • Not much different in Hyperion... But it comes "free" with Routing so it's no wonder there are a lot of customized reports out there... lol

    T

    Offline cavagnaro

    • Administrator
    • Hero Member
    • *****
    • Posts: 7641
    • Karma: 56330
    Re: Brio "unmatched" Query?
    « Reply #13 on: April 16, 2010, 03:45:31 PM »
  • Best Answer
  • Yes, I'm looking for a solution also free to replace that headache...

    tony

    • Guest
    Re: Brio "unmatched" Query?
    « Reply #14 on: April 16, 2010, 03:57:32 PM »
  • Best Answer
  • Jasper...?