domo CLI の query-dataコマンドの使い方について
domoCLI の query-data コマンドを使用する場合に、--query と --queryfile のコマンドがあります。
それぞれで使用できるJSON形式のクエリの記述方法を知りたいのです。
例えば、下記の様なデータセットから 「Name」フィールドのみを取ってくる場合はどうすればいいでしょうか。
[データセットの例]
ID Name Address
1 田中 長野県
2 鈴木 岐阜県
3 佐藤 愛知県
4 山田 静岡県
5 伊藤 三重県
以上です、よろしくお願いいたします。
Comments
-
Just in case you haven't figured it out yet, in query-data you have two methods you can use to query the database, you can send a SQL query or you can specify a schema.
In this video I show you how to use get-schema to get the schema of a dataset.
https://www.youtube.com/watch?v=kHSeSbSFS1Q
But in this post we found the answer using SQL.
https://dojo.domo.com/t5/Domo-Developer/How-to-use-query-data-command-of-domo-CLI/td-p/49247
Jae Wilson
Check out my 🎥 Domo Training YouTube Channel 👨💻
**Say "Thanks" by clicking the ❤️ in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0 -
HAHAHA did you post the same question twice once in English?
sorry, usually I try to be good about translating non English Dojo posts
sorry so late.
Jae Wilson
Check out my 🎥 Domo Training YouTube Channel 👨💻
**Say "Thanks" by clicking the ❤️ in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0
Categories
- 7.7K All Categories
- 3 Connect
- 919 Connectors
- 244 Workbench
- 477 Transform
- 1.8K Magic ETL
- 60 SQL DataFlows
- 446 Datasets
- 37 Visualize
- 198 Beast Mode
- 2K Charting
- 8 Variables
- 1 Automate
- 348 APIs & Domo Developer
- 82 Apps
- Workflows
- 14 Predict
- 3 Jupyter Workspaces
- 11 R & Python Tiles
- 241 Distribute
- 59 Domo Everywhere
- 241 Scheduled Reports
- 15 Manage
- 36 Governance & Security
- 27 Product Ideas
- 1.1K Ideas Exchange
- Community Forums
- 14 Getting Started
- 1 Community Member Introductions
- 49 Community News
- 18 Event Recordings
- 579 日本支部