Journal: Current Traditional Medicine Volume: 9 Issue: 2 Year: 2023 Page: 75-81 Author(s): Mohammad Azad Manjiri,Amir Abbas Asadpour,Seyed Majid Ghazanfari
(select `user_id`, `to_ip`, `from_ip` from (select user_id, to_ip, from_ip FROM user_access_journal_volume_trail WHERE to_ip >=316440840ORDERBY to_ip ASC LIMIT 1) as `tjv` where `from_ip` <=316440840) union (select `user_id`, `to_ip`, `from_ip` from (select user_id, to_ip, from_ip FROM user_access_journal_volume_corporate WHERE to_ip >=316440840ORDERBY to_ip ASC LIMIT 1) as `tjv` where `from_ip` <=316440840) union (select `user_id`, `to_ip`, `from_ip` from (select user_id, to_ip, from_ip FROM user_access_journal_volume_token WHERE to_ip >=316440840ORDERBY to_ip ASC LIMIT 1) as `tjv` where `from_ip` <=316440840) union (select `user_id`, `to_ip`, `from_ip` from (select user_id, to_ip, from_ip FROM user_access_ebook_volume_trail WHERE to_ip >=316440840ORDERBY to_ip ASC LIMIT 1) as `tjv` where `from_ip` <=316440840) union (select `user_id`, `to_ip`, `from_ip` from (select user_id, to_ip, from_ip FROM user_access_ebook_volume_corporate WHERE to_ip >=316440840ORDERBY to_ip ASC LIMIT 1) as `tjv` where `from_ip` <=316440840) union (select `user_id`, `to_ip`, `from_ip` from (select user_id, to_ip, from_ip FROM user_access_ebook_volume_token WHERE to_ip >=316440840ORDERBY to_ip ASC LIMIT 1) as `tjv` where `from_ip` <=316440840) union (select `user_id`, `to_ip`, `from_ip` from (select user_id, to_ip, from_ip FROM user_access_issue_trail WHERE to_ip >=316440840ORDERBY to_ip ASC LIMIT 1) as `tjv` where `from_ip` <=316440840) union (select `user_id`, `to_ip`, `from_ip` from (select user_id, to_ip, from_ip FROM user_access_issue_corporate WHERE to_ip >=316440840ORDERBY to_ip ASC LIMIT 1) as `tjv` where `from_ip` <=316440840) union (select `user_id`, `to_ip`, `from_ip` from (select user_id, to_ip, from_ip FROM user_access_issue_token WHERE to_ip >=316440840ORDERBY to_ip ASC LIMIT 1) as `tjv` where `from_ip` <=316440840) union (select `user_id`, `to_ip`, `from_ip` from (select user_id, to_ip, from_ip FROM user_access_article_trail WHERE to_ip >=316440840ORDERBY to_ip ASC LIMIT 1) as `tjv` where `from_ip` <=316440840) union (select `user_id`, `to_ip`, `from_ip` from (select user_id, to_ip, from_ip FROM user_access_article_corporate WHERE to_ip >=316440840ORDERBY to_ip ASC LIMIT 1) as `tjv` where `from_ip` <=316440840) union (select `user_id`, `to_ip`, `from_ip` from (select user_id, to_ip, from_ip FROM user_access_article_token WHERE to_ip >=316440840ORDERBY to_ip ASC LIMIT 1) as `tjv` where `from_ip` <=316440840) union (select `user_id`, `to_ip`, `from_ip` from (select user_id, to_ip, from_ip FROM user_access_chapter_trail WHERE to_ip >=316440840ORDERBY to_ip ASC LIMIT 1) as `tjv` where `from_ip` <=316440840) union (select `user_id`, `to_ip`, `from_ip` from (select user_id, to_ip, from_ip FROM user_access_chapter_corporate WHERE to_ip >=316440840ORDERBY to_ip ASC LIMIT 1) as `tjv` where `from_ip` <=316440840) union (select `user_id`, `to_ip`, `from_ip` from (select user_id, to_ip, from_ip FROM user_access_chapter_token WHERE to_ip >=316440840ORDERBY to_ip ASC LIMIT 1) as `tjv` where `from_ip` <=316440840) union (select `user_id`, `to_ip`, `from_ip` from (select user_id, to_ip, from_ip FROM user_access_disease_corporate WHERE to_ip >=316440840ORDERBY to_ip ASC LIMIT 1) as `tjv` where `from_ip` <=316440840) limit 1
selectcount(*) as total_count, content_type_access_id as access_type from journal_access
where content_type_id ='100372'and content_type ='a'and
(
(from_date <= CURDATE() and to_date >= CURDATE() and perpetual=0) or
(from_date isnulland to_date isnulland perpetual=1)
)
selectcount(*) as total_count, content_type_access_id as access_type from journal_access
where content_type_id ='9962'and content_type ='i'and
(
(from_date <= CURDATE() and to_date >= CURDATE() and perpetual=0) or
(from_date isnulland to_date isnulland perpetual=1)
)
selectcount(*) as total_count, content_type_access_id as access_type from journal_access
where content_type_id ='2736'and content_type ='v'and
(
(from_date <= CURDATE() and to_date >= CURDATE() and perpetual=0) or
(from_date isnulland to_date isnulland perpetual=1)
)
(select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Trial Access" as access_base_text,
CASE j.type WHEN111THENtrueELSEfalseENDas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"volume" as access_level,"" as issue_id,"" as article_id from `user_access_journal_volume_trail` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775441and j.to_date >=1740775441and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.volume_id =2736) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Subscribed" as access_base_text,
falseas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"volume" as access_level,"" as issue_id,"" as article_id from `user_access_journal_volume_corporate` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775441and j.to_date >=1740775441and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.volume_id =2736) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Token Based Access" as access_base_text,
falseas terms_popup,
"R" as content_download_type,
j.uc_id as restricted_user_access_key,
"v" as restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"volume" as access_level,"" as issue_id,"" as article_id from `user_access_journal_volume_token` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775441and j.to_date >=1740775441and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.volume_id =2736)
(select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Trial Access" as access_base_text,
CASE j.type WHEN111THENtrueELSEfalseENDas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"issue" as access_level,j.issue_id,"" as article_id from `user_access_issue_trail` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775442and j.to_date >=1740775442and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.issue_id =9962) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Subscribed" as access_base_text,
falseas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"issue" as access_level,j.issue_id,"" as article_id from `user_access_issue_corporate` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775442and j.to_date >=1740775442and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.issue_id =9962) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Token Based Access" as access_base_text,
falseas terms_popup,
"R" as content_download_type,
j.uc_id as restricted_user_access_key,
"v" as restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"issue" as access_level,j.issue_id,"" as article_id from `user_access_issue_token` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775442and j.to_date >=1740775442and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.issue_id =9962)
(select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Trial Access" as access_base_text,
CASE j.type WHEN111THENtrueELSEfalseENDas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"article" as access_level, j.issue_id, j.article_id from `user_access_article_trail` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775442and j.to_date >=1740775442and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.article_id =100372) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Subscribed" as access_base_text,
falseas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"article" as access_level, j.issue_id, j.article_id from `user_access_article_corporate` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775442and j.to_date >=1740775442and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.article_id =100372) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Token Based Access" as access_base_text,
falseas terms_popup,
"R" as content_download_type,
j.uc_id as restricted_user_access_key,
"v" as restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"article" as access_level, j.issue_id, j.article_id from `user_access_article_token` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775442and j.to_date >=1740775442and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.article_id =100372)
selectcount(*) as total_count, content_type_access_id as access_type from journal_access
where content_type_id ='102708'and content_type ='a'and
(
(from_date <= CURDATE() and to_date >= CURDATE() and perpetual=0) or
(from_date isnulland to_date isnulland perpetual=1)
)
selectcount(*) as total_count, content_type_access_id as access_type from journal_access
where content_type_id ='9639'and content_type ='i'and
(
(from_date <= CURDATE() and to_date >= CURDATE() and perpetual=0) or
(from_date isnulland to_date isnulland perpetual=1)
)
selectcount(*) as total_count, content_type_access_id as access_type from journal_access
where content_type_id ='2682'and content_type ='v'and
(
(from_date <= CURDATE() and to_date >= CURDATE() and perpetual=0) or
(from_date isnulland to_date isnulland perpetual=1)
)
(select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Trial Access" as access_base_text,
CASE j.type WHEN111THENtrueELSEfalseENDas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"volume" as access_level,"" as issue_id,"" as article_id from `user_access_journal_volume_trail` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775442and j.to_date >=1740775442and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.volume_id =2682) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Subscribed" as access_base_text,
falseas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"volume" as access_level,"" as issue_id,"" as article_id from `user_access_journal_volume_corporate` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775442and j.to_date >=1740775442and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.volume_id =2682) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Token Based Access" as access_base_text,
falseas terms_popup,
"R" as content_download_type,
j.uc_id as restricted_user_access_key,
"v" as restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"volume" as access_level,"" as issue_id,"" as article_id from `user_access_journal_volume_token` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775442and j.to_date >=1740775442and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.volume_id =2682)
(select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Trial Access" as access_base_text,
CASE j.type WHEN111THENtrueELSEfalseENDas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"issue" as access_level,j.issue_id,"" as article_id from `user_access_issue_trail` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775442and j.to_date >=1740775442and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.issue_id =9639) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Subscribed" as access_base_text,
falseas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"issue" as access_level,j.issue_id,"" as article_id from `user_access_issue_corporate` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775442and j.to_date >=1740775442and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.issue_id =9639) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Token Based Access" as access_base_text,
falseas terms_popup,
"R" as content_download_type,
j.uc_id as restricted_user_access_key,
"v" as restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"issue" as access_level,j.issue_id,"" as article_id from `user_access_issue_token` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775442and j.to_date >=1740775442and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.issue_id =9639)
(select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Trial Access" as access_base_text,
CASE j.type WHEN111THENtrueELSEfalseENDas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"article" as access_level, j.issue_id, j.article_id from `user_access_article_trail` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775442and j.to_date >=1740775442and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.article_id =102708) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Subscribed" as access_base_text,
falseas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"article" as access_level, j.issue_id, j.article_id from `user_access_article_corporate` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775442and j.to_date >=1740775442and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.article_id =102708) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Token Based Access" as access_base_text,
falseas terms_popup,
"R" as content_download_type,
j.uc_id as restricted_user_access_key,
"v" as restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"article" as access_level, j.issue_id, j.article_id from `user_access_article_token` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775442and j.to_date >=1740775442and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.article_id =102708)
selectcount(*) as total_count, content_type_access_id as access_type from journal_access
where content_type_id ='109047'and content_type ='a'and
(
(from_date <= CURDATE() and to_date >= CURDATE() and perpetual=0) or
(from_date isnulland to_date isnulland perpetual=1)
)
selectcount(*) as total_count, content_type_access_id as access_type from journal_access
where content_type_id ='10624'and content_type ='i'and
(
(from_date <= CURDATE() and to_date >= CURDATE() and perpetual=0) or
(from_date isnulland to_date isnulland perpetual=1)
)
selectcount(*) as total_count, content_type_access_id as access_type from journal_access
where content_type_id ='2942'and content_type ='v'and
(
(from_date <= CURDATE() and to_date >= CURDATE() and perpetual=0) or
(from_date isnulland to_date isnulland perpetual=1)
)
(select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Trial Access" as access_base_text,
CASE j.type WHEN111THENtrueELSEfalseENDas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"volume" as access_level,"" as issue_id,"" as article_id from `user_access_journal_volume_trail` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775442and j.to_date >=1740775442and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.volume_id =2942) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Subscribed" as access_base_text,
falseas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"volume" as access_level,"" as issue_id,"" as article_id from `user_access_journal_volume_corporate` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775442and j.to_date >=1740775442and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.volume_id =2942) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Token Based Access" as access_base_text,
falseas terms_popup,
"R" as content_download_type,
j.uc_id as restricted_user_access_key,
"v" as restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"volume" as access_level,"" as issue_id,"" as article_id from `user_access_journal_volume_token` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775442and j.to_date >=1740775442and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.volume_id =2942)
(select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Trial Access" as access_base_text,
CASE j.type WHEN111THENtrueELSEfalseENDas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"issue" as access_level,j.issue_id,"" as article_id from `user_access_issue_trail` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775442and j.to_date >=1740775442and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.issue_id =10624) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Subscribed" as access_base_text,
falseas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"issue" as access_level,j.issue_id,"" as article_id from `user_access_issue_corporate` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775442and j.to_date >=1740775442and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.issue_id =10624) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Token Based Access" as access_base_text,
falseas terms_popup,
"R" as content_download_type,
j.uc_id as restricted_user_access_key,
"v" as restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"issue" as access_level,j.issue_id,"" as article_id from `user_access_issue_token` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775442and j.to_date >=1740775442and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.issue_id =10624)
(select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Trial Access" as access_base_text,
CASE j.type WHEN111THENtrueELSEfalseENDas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"article" as access_level, j.issue_id, j.article_id from `user_access_article_trail` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775442and j.to_date >=1740775442and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.article_id =109047) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Subscribed" as access_base_text,
falseas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"article" as access_level, j.issue_id, j.article_id from `user_access_article_corporate` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775442and j.to_date >=1740775442and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.article_id =109047) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Token Based Access" as access_base_text,
falseas terms_popup,
"R" as content_download_type,
j.uc_id as restricted_user_access_key,
"v" as restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"article" as access_level, j.issue_id, j.article_id from `user_access_article_token` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775442and j.to_date >=1740775442and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.article_id =109047)
selectcount(*) as total_count, content_type_access_id as access_type from journal_access
where content_type_id ='99000'and content_type ='a'and
(
(from_date <= CURDATE() and to_date >= CURDATE() and perpetual=0) or
(from_date isnulland to_date isnulland perpetual=1)
)
selectcount(*) as total_count, content_type_access_id as access_type from journal_access
where content_type_id ='9617'and content_type ='i'and
(
(from_date <= CURDATE() and to_date >= CURDATE() and perpetual=0) or
(from_date isnulland to_date isnulland perpetual=1)
)
selectcount(*) as total_count, content_type_access_id as access_type from journal_access
where content_type_id ='2697'and content_type ='v'and
(
(from_date <= CURDATE() and to_date >= CURDATE() and perpetual=0) or
(from_date isnulland to_date isnulland perpetual=1)
)
(select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Trial Access" as access_base_text,
CASE j.type WHEN111THENtrueELSEfalseENDas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"volume" as access_level,"" as issue_id,"" as article_id from `user_access_journal_volume_trail` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775442and j.to_date >=1740775442and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.volume_id =2697) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Subscribed" as access_base_text,
falseas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"volume" as access_level,"" as issue_id,"" as article_id from `user_access_journal_volume_corporate` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775442and j.to_date >=1740775442and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.volume_id =2697) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Token Based Access" as access_base_text,
falseas terms_popup,
"R" as content_download_type,
j.uc_id as restricted_user_access_key,
"v" as restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"volume" as access_level,"" as issue_id,"" as article_id from `user_access_journal_volume_token` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775442and j.to_date >=1740775442and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.volume_id =2697)
(select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Trial Access" as access_base_text,
CASE j.type WHEN111THENtrueELSEfalseENDas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"issue" as access_level,j.issue_id,"" as article_id from `user_access_issue_trail` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.issue_id =9617) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Subscribed" as access_base_text,
falseas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"issue" as access_level,j.issue_id,"" as article_id from `user_access_issue_corporate` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.issue_id =9617) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Token Based Access" as access_base_text,
falseas terms_popup,
"R" as content_download_type,
j.uc_id as restricted_user_access_key,
"v" as restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"issue" as access_level,j.issue_id,"" as article_id from `user_access_issue_token` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.issue_id =9617)
(select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Trial Access" as access_base_text,
CASE j.type WHEN111THENtrueELSEfalseENDas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"article" as access_level, j.issue_id, j.article_id from `user_access_article_trail` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.article_id =99000) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Subscribed" as access_base_text,
falseas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"article" as access_level, j.issue_id, j.article_id from `user_access_article_corporate` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.article_id =99000) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Token Based Access" as access_base_text,
falseas terms_popup,
"R" as content_download_type,
j.uc_id as restricted_user_access_key,
"v" as restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"article" as access_level, j.issue_id, j.article_id from `user_access_article_token` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.article_id =99000)
selectcount(*) as total_count, content_type_access_id as access_type from journal_access
where content_type_id ='112004'and content_type ='a'and
(
(from_date <= CURDATE() and to_date >= CURDATE() and perpetual=0) or
(from_date isnulland to_date isnulland perpetual=1)
)
selectcount(*) as total_count, content_type_access_id as access_type from journal_access
where content_type_id ='10760'and content_type ='i'and
(
(from_date <= CURDATE() and to_date >= CURDATE() and perpetual=0) or
(from_date isnulland to_date isnulland perpetual=1)
)
selectcount(*) as total_count, content_type_access_id as access_type from journal_access
where content_type_id ='2942'and content_type ='v'and
(
(from_date <= CURDATE() and to_date >= CURDATE() and perpetual=0) or
(from_date isnulland to_date isnulland perpetual=1)
)
(select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Trial Access" as access_base_text,
CASE j.type WHEN111THENtrueELSEfalseENDas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"volume" as access_level,"" as issue_id,"" as article_id from `user_access_journal_volume_trail` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.volume_id =2942) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Subscribed" as access_base_text,
falseas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"volume" as access_level,"" as issue_id,"" as article_id from `user_access_journal_volume_corporate` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.volume_id =2942) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Token Based Access" as access_base_text,
falseas terms_popup,
"R" as content_download_type,
j.uc_id as restricted_user_access_key,
"v" as restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"volume" as access_level,"" as issue_id,"" as article_id from `user_access_journal_volume_token` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.volume_id =2942)
(select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Trial Access" as access_base_text,
CASE j.type WHEN111THENtrueELSEfalseENDas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"issue" as access_level,j.issue_id,"" as article_id from `user_access_issue_trail` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.issue_id =10760) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Subscribed" as access_base_text,
falseas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"issue" as access_level,j.issue_id,"" as article_id from `user_access_issue_corporate` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.issue_id =10760) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Token Based Access" as access_base_text,
falseas terms_popup,
"R" as content_download_type,
j.uc_id as restricted_user_access_key,
"v" as restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"issue" as access_level,j.issue_id,"" as article_id from `user_access_issue_token` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.issue_id =10760)
(select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Trial Access" as access_base_text,
CASE j.type WHEN111THENtrueELSEfalseENDas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"article" as access_level, j.issue_id, j.article_id from `user_access_article_trail` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.article_id =112004) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Subscribed" as access_base_text,
falseas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"article" as access_level, j.issue_id, j.article_id from `user_access_article_corporate` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.article_id =112004) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Token Based Access" as access_base_text,
falseas terms_popup,
"R" as content_download_type,
j.uc_id as restricted_user_access_key,
"v" as restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"article" as access_level, j.issue_id, j.article_id from `user_access_article_token` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.article_id =112004)
selectcount(*) as total_count, content_type_access_id as access_type from journal_access
where content_type_id ='85237'and content_type ='a'and
(
(from_date <= CURDATE() and to_date >= CURDATE() and perpetual=0) or
(from_date isnulland to_date isnulland perpetual=1)
)
selectcount(*) as total_count, content_type_access_id as access_type from journal_access
where content_type_id ='8342'and content_type ='i'and
(
(from_date <= CURDATE() and to_date >= CURDATE() and perpetual=0) or
(from_date isnulland to_date isnulland perpetual=1)
)
selectcount(*) as total_count, content_type_access_id as access_type from journal_access
where content_type_id ='2291'and content_type ='v'and
(
(from_date <= CURDATE() and to_date >= CURDATE() and perpetual=0) or
(from_date isnulland to_date isnulland perpetual=1)
)
(select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Trial Access" as access_base_text,
CASE j.type WHEN111THENtrueELSEfalseENDas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"volume" as access_level,"" as issue_id,"" as article_id from `user_access_journal_volume_trail` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.volume_id =2291) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Subscribed" as access_base_text,
falseas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"volume" as access_level,"" as issue_id,"" as article_id from `user_access_journal_volume_corporate` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.volume_id =2291) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Token Based Access" as access_base_text,
falseas terms_popup,
"R" as content_download_type,
j.uc_id as restricted_user_access_key,
"v" as restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"volume" as access_level,"" as issue_id,"" as article_id from `user_access_journal_volume_token` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.volume_id =2291)
(select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Trial Access" as access_base_text,
CASE j.type WHEN111THENtrueELSEfalseENDas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"issue" as access_level,j.issue_id,"" as article_id from `user_access_issue_trail` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.issue_id =8342) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Subscribed" as access_base_text,
falseas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"issue" as access_level,j.issue_id,"" as article_id from `user_access_issue_corporate` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.issue_id =8342) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Token Based Access" as access_base_text,
falseas terms_popup,
"R" as content_download_type,
j.uc_id as restricted_user_access_key,
"v" as restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"issue" as access_level,j.issue_id,"" as article_id from `user_access_issue_token` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.issue_id =8342)
(select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Trial Access" as access_base_text,
CASE j.type WHEN111THENtrueELSEfalseENDas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"article" as access_level, j.issue_id, j.article_id from `user_access_article_trail` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.article_id =85237) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Subscribed" as access_base_text,
falseas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"article" as access_level, j.issue_id, j.article_id from `user_access_article_corporate` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.article_id =85237) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Token Based Access" as access_base_text,
falseas terms_popup,
"R" as content_download_type,
j.uc_id as restricted_user_access_key,
"v" as restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"article" as access_level, j.issue_id, j.article_id from `user_access_article_token` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.article_id =85237)
selectcount(*) as total_count, content_type_access_id as access_type from journal_access
where content_type_id ='126038'and content_type ='a'and
(
(from_date <= CURDATE() and to_date >= CURDATE() and perpetual=0) or
(from_date isnulland to_date isnulland perpetual=1)
)
selectcount(*) as total_count, content_type_access_id as access_type from ebook_access
where content_type_id ='22454'and content_type ='c'and
(
(from_date <= CURDATE() and to_date >= CURDATE() and perpetual=0) or
(from_date isnulland to_date isnulland perpetual=1)
)
selectcount(*) as total_count, content_type_access_id as access_type from ebook_access
where content_type_id ='3712'and content_type ='v'and
(
(from_date <= CURDATE() and to_date >= CURDATE() and perpetual=0) or
(from_date isnulland to_date isnulland perpetual=1)
)
(select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Trial Access" as access_base_text,
CASE j.type WHEN111THENtrueELSEfalseENDas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"ebook_volume" as access_level,"" as chapter_id from `user_access_ebook_volume_trail` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.volume_id =3712) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Subscribed" as access_base_text,
falseas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"ebook_volume" as access_level,"" as chapter_id from `user_access_ebook_volume_corporate` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.volume_id =3712) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Token Based Access" as access_base_text,
falseas terms_popup,
"R" as content_download_type,
j.uc_id as restricted_user_access_key,
"v" as restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"ebook_volume" as access_level,"" as chapter_id from `user_access_ebook_volume_token` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.volume_id =3712)
(select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Trial Access" as access_base_text,
CASE j.type WHEN111THENtrueELSEfalseENDas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"chapter" as access_level, j.chapter_id from `user_access_chapter_trail` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.chapter_id =22454) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Subscribed" as access_base_text,
falseas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"chapter" as access_level, j.chapter_id from `user_access_chapter_corporate` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.chapter_id =22454) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Token Based Access" as access_base_text,
falseas terms_popup,
"R" as content_download_type,
j.uc_id as restricted_user_access_key,
"v" as restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"chapter" as access_level, j.chapter_id from `user_access_chapter_token` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.chapter_id =22454)
selectcount(*) as total_count, content_type_access_id as access_type from journal_access
where content_type_id ='125349'and content_type ='a'and
(
(from_date <= CURDATE() and to_date >= CURDATE() and perpetual=0) or
(from_date isnulland to_date isnulland perpetual=1)
)
selectcount(*) as total_count, content_type_access_id as access_type from journal_access
where content_type_id ='127968'and content_type ='a'and
(
(from_date <= CURDATE() and to_date >= CURDATE() and perpetual=0) or
(from_date isnulland to_date isnulland perpetual=1)
)
selectcount(*) as total_count, content_type_access_id as access_type from journal_access
where content_type_id ='12145'and content_type ='i'and
(
(from_date <= CURDATE() and to_date >= CURDATE() and perpetual=0) or
(from_date isnulland to_date isnulland perpetual=1)
)
selectcount(*) as total_count, content_type_access_id as access_type from journal_access
where content_type_id ='3220'and content_type ='v'and
(
(from_date <= CURDATE() and to_date >= CURDATE() and perpetual=0) or
(from_date isnulland to_date isnulland perpetual=1)
)
(select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Trial Access" as access_base_text,
CASE j.type WHEN111THENtrueELSEfalseENDas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"volume" as access_level,"" as issue_id,"" as article_id from `user_access_journal_volume_trail` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.volume_id =3220) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Subscribed" as access_base_text,
falseas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"volume" as access_level,"" as issue_id,"" as article_id from `user_access_journal_volume_corporate` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.volume_id =3220) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Token Based Access" as access_base_text,
falseas terms_popup,
"R" as content_download_type,
j.uc_id as restricted_user_access_key,
"v" as restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"volume" as access_level,"" as issue_id,"" as article_id from `user_access_journal_volume_token` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.volume_id =3220)
(select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Trial Access" as access_base_text,
CASE j.type WHEN111THENtrueELSEfalseENDas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"issue" as access_level,j.issue_id,"" as article_id from `user_access_issue_trail` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.issue_id =12145) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Subscribed" as access_base_text,
falseas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"issue" as access_level,j.issue_id,"" as article_id from `user_access_issue_corporate` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.issue_id =12145) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Token Based Access" as access_base_text,
falseas terms_popup,
"R" as content_download_type,
j.uc_id as restricted_user_access_key,
"v" as restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"issue" as access_level,j.issue_id,"" as article_id from `user_access_issue_token` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.issue_id =12145)
(select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Trial Access" as access_base_text,
CASE j.type WHEN111THENtrueELSEfalseENDas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"article" as access_level, j.issue_id, j.article_id from `user_access_article_trail` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.article_id =127968) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Subscribed" as access_base_text,
falseas terms_popup,
"S" as content_download_type,
nullas restricted_user_access_key,
nullas restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"article" as access_level, j.issue_id, j.article_id from `user_access_article_corporate` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.article_id =127968) union (select j.user_access_id,j.volume_id,j.user_id,j.from_ip,j.to_ip,j.type,j.track,"Token Based Access" as access_base_text,
falseas terms_popup,
"R" as content_download_type,
j.uc_id as restricted_user_access_key,
"v" as restricted_user_access_type,
CASE j.track WHEN0THENfalseELSEtrueENDas tracksAccessByVolume,"article" as access_level, j.issue_id, j.article_id from `user_access_article_token` as `j` innerjoin `user_access_info` as `info` on `j`.`user_access_id` = `info`.`user_access_id` where ((j.from_ip <=316440840and j.to_ip >=316440840 )) and ((j.from_date <=1740775443and j.to_date >=1740775443and j.perpetual=0) or (j.from_date isnulland j.to_date isnulland j.perpetual=1)) and j.article_id =127968)