Skip to content
Advertisement

Tag: athena

How to print the required output with the help of SQL

I have tables ‘users’ and ‘user_transactions’ in AWS Athena. The table has many columns but I am interested in 2 columns viz. user name and txn_type. The txn_type column has 3 possible values viz. FT, NFT, PT. For each user, I need to print the count of each transactions in the below format. The output should contain 4 columns with

Advertisement