@@ -203,8 +204,6 @@ AND cdli_db_tmp.inscriptions_credits_view3.author_id_3 IS NOT NULL;
```
## 1.3 update inscriptions
I have overwritten this comment with an earlier version and lost the queries I used for this section :-( We will have to re-prepare them at the end to get ready for the second phase update.
## 1.3.1 Set is_latest"
match fulltrans.wholetext with inscriptions.atf if match, then is_latest =1, then fill other fields (transliteration, transliteration_clean,transliteration_for_search) I had used grouping for this to select the latest date in the group. https://stackoverflow.com/questions/12102200/get-records-with-max-value-for-each-group-of-grouped-sql-results
...
...
@@ -212,7 +211,27 @@ match fulltrans.wholetext with inscriptions.atf if match, then is_latest =1, the
use the revhistories.id as inscriptions.id
get update_events_id by using revhistories.mod_date
use revhistories.new_text as inscriptions.atf & is_latest = 1