How to use datasets like tables with complex where condition?

I have a dataset with two related tables in it. What I want to do is create a collection of rows (either table or dataview) to match the following in sql

select a.w, a.x, b.z
from a
inner join b on a.w = b.w
where a.x = 'xxx'
and b.y = 'yyy'

I can create a dataview using rowfilters on one table, and I know I can just use the sql to create the data, but how to do it on two related tables




Answer this question

How to use datasets like tables with complex where condition?

  • r2d2

    rvghst,

    Add a column to your "a" table and name it "bz".

    Set the "bz" expression to: parent('ab').z .

    Use the select statement x = 'xxx' and bz = 'yyy' on your altered table.



  • kstephan

    The dataset doesn't support this. You would have to write the code to query each table seperately.

  • How to use datasets like tables with complex where condition?