Component Solution Services REC02F Uživatelský manuál Strana 18

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 78
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 17
Tips Recipes Brio 2002
Copyright © 2002, Brio Software Page 16
Section Type: Query section
Tip Name: “What’s Not” Query
Purpose / Use: To find out from the database what did not happen.
Sample File: Not sold.bqy
Steps to Produce: Add a limit based on a “not in” sub-query select.
1) Build a data model that includes one or more tables that would normally contain the absent
information.
2) Add a limit on the primary key join field by either double-clicking on the field, or dragging
it into the Limit Line.
3) In the Limit dialog box, click on the “Custom SQL” button.
4) Enter the SQL for a “not in” query that tells the database to fetch data from the primary
table where the linking field does not appear in the subordinate table. For example:
Products.Product_Id not in (select product_id from sales_fact)
You can even add a limiting WHERE clause to the not-in sub-select to constrain the results
further.
Zobrazit stránku 17
1 2 ... 13 14 15 16 17 18 19 20 21 22 23 ... 77 78

Komentáře k této Příručce

Žádné komentáře