YQL - 查询错误

时间:2015-07-11 05:48:59

标签: csv yql

有人可以告诉我这个yql语句有什么问题:

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" 
    in(select * 
       from yahoo.finance.historicaldata 
       where symbol = "YHOO" 
         and startDate = "2009-09-11" 
         and endDate = "2010-03-10")

我想获得这些属性: http://www.electronics4design.com/wp-content/uploads/2015/07/priceTable.jpg

1 个答案:

答案 0 :(得分:0)

你想要得到什么? 如果你只需要获得 YHOO 数据,那就试试吧

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&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" 

我刚从 url = ...

中删除 GOOG