Here is my base table. I'm trying to add a column where I would see the approved date. date customer_id approved ...
Here is my base table. I'm trying to add a column where I would see the approved date. date customer_id approved ...
I have a varchar column How do I filter it to get only keys with values greater then 0? Expected output is ...
I want to get the second last key from my json , I have tried but it is giving the following error awsathena error: INVALID_FUNCTION_ARGUMENT: Inv ...
Below is the base table of data.. date customer_id score1 score2 01/01/22 a 1 ...
I have a column filled with dates in string format, e.g. 2023-01-31 11:21:33 GMT. I am trying to write a query that will select a year and a month an ...
What is the appropriate format for my datetime? I've tried several combinations and getting various errors. The data is a string and here is an exampl ...
I am trying to create a Hive table with partitions but getting the above error. What am I doing wrong? The code works without the partitioning clau ...
I have 2 columns of type int and I want to make a concat to two columns in presto syntax. it is possible? for example: id: 345 997 age: ...
I want a generic query to get fill rate of all columns in table .Query should work irrespective of the column number.I have to implement this using pr ...
I'm trying to merge the values of two rows based on the value of another row in a different column. Below is my based table Custome ...
I have a table like this which is a dim table (means all the records in ds are in ds+1 plus the new records added) partition by ds( date): ...
Does Projection pushdown work in this case? As you can see, In the CTE, I do a SELECT * from the table but then when I actually pull in the data, I ...
Using AWS Athena, I am running the query I am getting: 0, 0, 1, 1 I would expect to get: 0, 0, 0, 0 Is the expected behaviour of cast to round a ...
I want to convert datatype of string (eg : '2018-03-27T00:20:00.855556Z' ) into date (eg : '2018-03-27') problem is cast(substring(dt, 1, 10) as date ...
I am trying to find allocation percentage of assets, as to how much % of stocks, cash and bond, of a customer at account level. portfolio table: ...
I have a json saved in Athena table like I need to write a query in Athena to find, find all the FAILED=TRUE records like below output: I have ...
I have product data in my table which looks similar to this product_id user_id sales_start sales_end quantity ...
So far I have tried this code, the first part seems to work which seems to give me the innest JSON objects but can convert them to individual colu ...
This is my cust table: rn cust_id price street_id city_id 1 2468 100 1 ...
I have the data for requests sent to a server with the API endpoint name and the epoch at which the request was sent. There are many API endpoints (in ...