SQL2GMS - GAMS
SQL2GMS - GAMS
SQL2GMS - GAMS
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
12<br />
<strong>SQL2GMS</strong><br />
An example of a more complex spreadsheet is:<br />
A DSN-less connection string would be: “DRIVER=Microsoft Excel Driver (*.xls);<br />
DBQ=d:\gams projects\sql2gms\ver2.0\profit.xls”. The browser will show:<br />
A possible query that maps the two value columns into a <strong>GAMS</strong> parameter is:<br />
SELECT year,loc,prod,'sales',sales<br />
FROM [profitdata$]<br />
UNION<br />
SELECT year,loc,prod,'profit',profit<br />
FROM [profitdata$]<br />
The result is:<br />
* -----------------------------------------------------<br />
© 2010 <strong>GAMS</strong> Development Coorporation