13.07.2015 Views

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

324 DISTRIBUTE_ON= Data Set Option 4 Chapter 11ExampleThis example shows how to create a table by specifying a distribution key.libname x sasiogpl user=myuser password=mypwd dsn=Greenplum;data x.sales (dbtype=(id=int qty=int amt=int) distributed_by=’distributed by (id)’);id = 1;qty = 100;sales_date = ’27Aug2009’d;amt = 20000;run;It creates the SALES table.CREATE TABLE SALES(id int,qty int,sales_date double precision,amt int) distributed by (id)DISTRIBUTE_ON= Data Set OptionSpecifies a column name to use in the DISTRIBUTE ON clause of the CREATE TABLE statement.Alias: DISTRIBUTE= [Netezza]Default value: noneValid in: DATA and PROC steps (when accessing DBMS data using <strong>SAS</strong>/<strong>ACCESS</strong>software)DBMS support: Aster nCluster, NetezzaSyntaxDISTRIBUTE_ON=’column-1 ’ | RANDOMSyntax Descriptioncolumn-namespecifies a DBMS column name.RANDOMspecifies that data is distributed evenly. For Netezza, the Netezza Per<strong>for</strong>manceServer does this across all SPUs. This is known as round-robin distribution.DetailsYou can use this option to specify a column name to use in the DISTRIBUTE ON=clause of the CREATE TABLE statement. Each table in the database must have a

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!