Not sure, and my experience of is not necessarily definitive. My SQL guru
colleague has gone, so I can't check with her.
Run your proc SQL with the _tree option set in the options. You'll see the
decision matrix then.
I believe it is an undocumented feature!
Regards
David.
04/08/2000 16:45
___________________________________________________________________________
cc:
Subject: proc sql and cartesian product
"THIS MESSAGE ORIGINATED ON THE INTERNET - Please read the detailed
disclaimer below"
----------------------------------------------------------------------
is it the case that the cartesian product must always be the
first results dataset in proc sql before the impact of the variable
select and where clauses take effect ?
----------------------------------------------------------------------
The following message has been automatically added by the mail gateway
to comply with a Royal & Sun Alliance IT Security requirement:
"As this email arrived via the Internet you should be cautious about
its origin and content. Replies which contain sensitive
information or legal/contractual obligations are particularly
vulnerable. In these cases you should not reply unless you are
authorised to do so, and adequate encryption is employed.
If you have any questions, please speak to your local desktop
support team or IT security contact".
----------------------------------------------------------------------
1. Problem with a Cartesian merge (PROC SQL)
Hi SAS-lers,
I am trying to learn and use PROC SQL more - - this is the code I wrote
this morning...I was trying to get a complete Cartesian merge between
two data sets.
Data_Set1 had 47K records
Data_Set2 had 180K records
The resulting data set only had 50K records - I was expecting 180K+...so
either I still don't understand Cartesian merges, or I wrote the SQL
poorly. Could anyone let me know where I am messing up????
TIA everyone!
Dave
Example:
PROC SQL ;
CREATE table WORK.Merge AS SELECT
Data_Set1.eFullNam
, Data_Set1.eSiteNum
, Data_Set1.eSiteNam
, Data_Set1.eInsCo
, Data_Set2.eMembNam
, Data_Set2.eMembDOB
, Data_Set2.eGender
, Data_Set2.eMemb_SS
, Data_Set2.MembNum
FROM WORK.Data_Set1, WORK.Data_Set2
WHERE Data_Set1.MembNum = Data_Set2.MembNum
;
QUIT ;
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
3. memory merge and sql cartesian product
4. HELP: Internet mail via Notes for small company??
5. Cartesian Products Web Site
6. Dealing with Empty Elements
7. Representing unions of Cartesian products
10. Interview Question cartesian product w/SET
12. optimal partition into cartesian products?
13. Representing unions of Cartesian products