0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

TableauのカスタムSQLでエラーが出た話

Last updated at Posted at 2022-05-10

A5で動いたものがTableau Prep(2021-3)のカスタムSQLで動かなかったのでした。
なんでだろうね。

エラー版

SELECT
 h.hoge AS ほげ,
 g.huga AS ふが
FROM 
 SCH.HDATA  AS 'h',
 SCH.GDATA  AS 'g'
;

解消版

SELECT
 h.hoge  ほげ,
 g.huga  ふが
FROM 
 SCH.HDATA  h,
 SCH.GDATA  g

セミコロン抜かして、ASとクォーテーション抜かしました。
なぜクォーテーションつけてたのかは知らない。過去の自分のみぞ知る。
ちなみにFROM句のAS入れるとエラー出ますが、SELECT句の方は入れても問題なかったです。
なんで???

参考

https://oshiete.goo.ne.jp/qa/6024633.html
https://deamu.hatenablog.com/entry/20140908/1410163461

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?