The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 can Origin perform SQL-style inner joins?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
snpmonger Posted - 08/04/2005 : 7:09:30 PM
Origin Version (7.5)
Operating System:Win2K

I have a dataset of 1 million objects to analyze by property and frequency. The data are organized as a master worksheet that records object id and properties, and a satellite set of worksheets that contain frequency data for various subsets of the objects.

My question is how to associate the correct object properties with the frequency data for graph construction. I have tried to use the wks.join method to construct a new worksheet that merges the frequency and property data for the object id's common to both worksheets on a single row in the new worksheet (i.e. a SQL inner join on 2 tables), but cannot figure out the correct syntax.

win -a IndexList; // Index list of object ids (X) & attributes (YYY)
%I=%H; // store name of index worksheet
win -a Frequency1;// now get frequency data (Y) with ids (X)
worksheet -d Joined;
%H!wks.joinmode=0; // Set to append mode
%H!wks.join(%I); // Add data to worksheet

Worksheet Joined will have id's in (X) and (X2), but out of sync, since the set of (X) is a subset of (X2).


Can anybody suggest a better approach?

Thanks in advance!


1   L A T E S T    R E P L I E S    (Newest First)
easwar Posted - 08/05/2005 : 12:08:50 PM
Hi,

Is the raw data of 1 million objects located in some database that you are now all reading into Origin?

If in database, and if you have OriginPro 7.5 you can use COM client programming to access ADO object and then specify search string with inner joins etc to bring in just the right data you want into Origin and then plot etc?

In Pro, there is an example showing how to do this:
\Samples\COM Client\ADOSample.c

Easwar
OriginLab


The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000