1 Answer
- Newest
- Most votes
- Most comments
0
CREATE TABLE AS does not update the underlying data. https://docs.aws.amazon.com/athena/latest/ug/create-table-as.html
Instead try CREATE VIEW and the VIEW would be updated as the underlying data in the TABLE is updated. https://docs.aws.amazon.com/athena/latest/ug/create-view.html
answered a year ago
Relevant content
- Accepted Answerasked 5 years ago
- Accepted Answerasked 2 years ago
- Accepted Answerasked 2 months ago
- asked 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated a year ago
Thank you ananthtm!
For instance, to make my previous query work, I should replace "CREATE TABLE" with "CREATE OR REPLACE VIEW"?
yes, using "CREATE OR REPLACE VIEW" should address your question. Please upvote and/or accept answer so that it helps everyone in this forum