Hide database records instead of deleting them [closed]

0

Recently I had the need to do a car crud, using Rest, Java EE, Angular v.6 and the database in SQL server, but with the difference that instead of deleting the records, they only they are hidden from the user and kept in the database. I want to know if it is something that can be done with SQL or any idea to do it.

    
asked by Efam 14.11.2018 в 20:16
source

1 answer

2

In your car chart you can add a new boolean column which indicates whether it is deleted or not, by consulting, you can take based on that column.

When you delete, instead of deleting it from the table, you change the state of the boleada in false.

    
answered by 14.11.2018 / 20:26
source