【问题标题】:How to select specified columns from a table如何从表中选择指定的列
【发布时间】:2021-09-29 09:28:37
【问题描述】:

我创建了一个带有时间戳、符号、askPrice1、askPrice2、AskQty1、AskQty2 的表... 我们需要输出到以下列,

select askPrice1*askQty1, askPrice2*askQty2 ... askPrice50*askQty50 from table

我们可以使用任何内置函数吗?在 dolphinDB 上计算的最佳方法是什么?

谢谢!

【问题讨论】:

  • 这就是为什么你应该垂直存储东西。

标签: sql quantitative-finance dolphindb


【解决方案1】:

可以在select语句中指定列,示例代码如下:

select askPrice1 *askQty1, askPrice2*askQty2 ... askPrice50*askQty50 from table. This is the optimal way.

【讨论】:

    猜你喜欢
    • 2013-02-20
    • 2011-11-25
    • 1970-01-01
    • 1970-01-01
    • 2021-06-10
    • 1970-01-01
    • 2014-03-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多