Does UniVerse have ASD( ... ) keyword?  That's what you would use in
UniData.

David A. Green
(480) 813-1725
DAG Consulting

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Adrian Halid
Sent: Tuesday, August 20, 2013 4:39 PM
To: [email protected]
Subject: [U2] What is the equivalent to UNNEST in Universe

Hi All,

How do you perform a LIST or SELECT in Universe which will unnest or explode
its Associated Multi Value Data before the query.

For example.

If I have a file called CUSTOMERS which has an association ORDERS.

The DICT on CUSTOMERS have the following.

A single value attribute called CUSTOMER.NAME.

And then a set of a multi value attributes below.
ORDER.DATE 
PRODUCT.KEY
AMOUNT

How to I perform a query to get all the records that have an ORDER.DATE >
"20/08/2013" and PRODUCT.KEY = "ABC" and AMOUNT = "100" when comparing
against the same multi value position.

I know I can use a Universe SQL query below with the UNNEST keyword to get
the data.

SELECT CUSTOMER.NAME, ORDER.DATE, PRODUCT.KEY, AMOUNT FROM UNNEST ON ORDERS
WHERE ORDER.DATE > '20/08/2013' AND PRODUCT.KEY = 'ABC' AND AMOUNT = '100';

How would you achieve the same result using a standard Universe LIST or
SELECT command. Not a Universe SQL command.



Regards

Adrian Halid

_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to