Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi Terence,
I made a pull request for the fixes I in the character table as per the email I sent you.
email was
I discovered a total of 5 incorrect works field in the character table these were
blunt is henry4p1,henry4p2 Should be henry4p1
EdmundMortimer is henry6p1,henry6p3 Should be henry6p1
falstaff is henry4p1,henry4p2,henry5,merrywives Should be henry4p1,henry4p2,merrywives
SirWilliamStanley is henry6p3,richard3 Should be richard3
westmoreland is henry4p1,henry4p2,henry5,henry6p3 Should be henry4p1,henry4p2,henry5
I found this out by creating these views
Create or Replace view charidworkid as (select distinct CharID, WorkID from Paragraphs order by CharID, WorkID);
Create or Replace view charidworkidgroup as (select CharID, REGEXP_REPLACE(REPLACE(GROUP_CONCAT(WorkID,','),',,',','),',$','') Works from charidworkid group by CharID);
and then running the following script
select c.CharID , c.Works, g.Works, IF(c.Works = g.Works,'Match','Might Match') 'Match' , IF(LENGTH(c.Works) = LENGTH(g.Works),'Match Length','NO Match') 'LengthMatch' from Characters c, charidworkidgroup g where c.CharID = g.CharID and c.CharID <> 'xxx' order by IF(c.Works = g.Works,'Match','No Match'), IF(LENGTH(c.Works) = LENGTH(g.Works),'Match Length','NO Match');