D
D
David Fokin2020-12-24 11:28:30
SQL
David Fokin, 2020-12-24 11:28:30

How to overlay a table on an existing one and enable the repetition counter?

I have a script that receives data in csv format every day, then, based on this csv, a table in the database is filled, since this happens every day, you need to implement the overlay of new data on old ones, and if some rows are repeated day by day, then the counter is turned on repetitions.
As an example, there is a table of cars, a number, and the parameter "did not go on a flight", "leaving" do not fall at all.
and if, for example, we see that the same car did not leave for 3 days and appeared in the unloading, counter 3 was put next to it in the database

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question