Delete them all

Report a typo

Imagine you are working for a company, and this company uses an SQL Alchemy library.
Your boss gives you a crucial task — you have to delete all rows from the table that are older than 5 years.
"Easy task", you think, and end up with the following code:

query = session.query(SomeTable)

query.filter(SomeTable.creation_date <= 5).delete()

You hit the run button. What is going to happen?

Select one option from the list
___

Create a free account to access the full topic