在YQL中将两个查询转换为一个

时间:2015-06-30 20:08:00

标签: yql

我可以使用yql与两个查询进行JOIN,我有两个查询:

select * 
from yahoo.finance.historicaldata 
where symbol in ('YHOO') 
   and startDate='" + startDate + "' 
   and endDate='" + endDate + "'&format=json&diagnostics=true&env=store://datatables.org/alltableswithkeys&callback="

select symbol, 
       Earnings_per_Share, 
       Dividend_Yield, 
       week_Low, 
       Week_High, 
       Last_Trade_Date, 
       open, 
       low, 
       high, 
       volume, 
       Last_Trade 
from csv where url="http://download.finance.yahoo.com/d/quotes.csv?s=YHOO,GOOG&f=seyjkd1oghvl1&e=.csv" 
   and columns="symbol,Earnings_per_Share,Dividend_Yield,Last_Trade_Date,week_Low,Week_High,open,low,high,volume,Last_Trade"

我需要将这两个查询转换为一个。这该怎么做?

0 个答案:

没有答案