Skip to content

Commit

Permalink
vocab order
Browse files Browse the repository at this point in the history
  • Loading branch information
Denubis committed Oct 24, 2014
1 parent 73e1bf5 commit 4d8b22d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions formatter/test.format
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ create view if not exists latestNonDeletedArchEntFormattedIdentifiers as

select uuid, aenttypeid, aenttypename, group_concat(response, ' ') as response, null as deleted, aentcountorder
from (
select uuid, aenttypeid, aenttypename, group_concat(format(formatstring, vocabname, measure, freetext, certainty), appendcharacterstring) as response, null as deleted, aentcountorder
from latestNonDeletedArchent
select uuid, aenttypeid, aenttypename, group_concat(format(formatstring, vocabname, measure, freetext, certainty), appendcharacterstring) as response, null as deleted, aentcountorder, group_concat(vocabcountorder)
from latestNonDeletedArchent
JOIN aenttype using (aenttypeid)
JOIN idealaent using (aenttypeid)
join attributekey using (attributeid)
join latestNonDeletedAentValue using (uuid, attributeid)
left outer join vocabulary using (attributeid, vocabid)
join (select * from latestNonDeletedAentValue
left outer join vocabulary using (attributeid, vocabid) order by vocabcountorder) using (uuid, attributeid)
WHERE isIdentifier = 'true'
group by uuid, attributeid
having response is not null
Expand All @@ -68,8 +68,8 @@ from (
JOIN aenttype using (aenttypeid)
JOIN idealaent using (aenttypeid)
join attributekey using (attributeid)
join latestnondeletedaentvalue using (uuid, attributeid)
left outer join vocabulary using (attributeid, vocabid)
join (select * from latestNonDeletedAentValue
left outer join vocabulary using (attributeid, vocabid) order by vocabcountorder) using (uuid, attributeid)
WHERE isIdentifier = 'true'
group by uuid, attributeid
having response is not null
Expand Down

0 comments on commit 4d8b22d

Please sign in to comment.