Dear Daniel,<br><br>I applied the SQL query in Tools > Reports > Guided Reports Wizard > Create from SQL.<br>I saved the csv file.<br>But CSV file contain the following message,<br><br><br>
        
        <meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8">
        <title></title>
        <meta name="GENERATOR" content="OpenOffice.org 3.0 (Linux)">
        <style>
                <!--
                BODY,DIV,TABLE,THEAD,TBODY,TFOOT,TR,TH,TD,P { font-family:"Arial"; font-size:x-small }
                 -->
        </style>
        
<table rules="none" border="0" cellspacing="0" cols="1" frame="void">
        <colgroup><col width="923"></colgroup>
        <tbody>
                <tr>
                        <td width="923" align="left" height="17">                                                <h1>Koha error</h1></td>
                </tr>
                <tr>
                        <td align="left" height="17">                                                <p>The following fatal error has occurred:</p> </td>
                </tr>
                <tr>
                        <td align="left" height="17"> <pre><code>Can't use an undefined value as an ARRAY reference at /usr/share/koha/intranet/cgi-bin/reports/<a href="http://guided_reports.pl">guided_reports.pl</a> line 461.</td>
                </tr>
                <tr>
                        <td align="left" height="17"></code></pre></td>
                </tr>
                <tr>
                        <td align="left" height="17">                                                <table><br><br></td>
                </tr>
        </tbody>
</table>
<br clear="all">Can you check what the problem happened while generating report?<br><br>Following is the SQL query for the reference of other community members who have interest in this topic,<br><br>SELECT<br>
extractValue(marcxml,"<div id=":8x" class="ii gt">collection/record/datafield[@tag='952'][1]/subfield[@code='p']"),<br>
<br>
extractValue(marcxml,"collection/record/datafield[@tag='024'][1]/subfield[@code='a']"),<br>
<br>
extractValue(marcxml,"collection/record/datafield[@tag='020'][1]/subfield[@code='a']"),<br>
<br>
extractValue(marcxml,"collection/record/datafield[@tag='100'][1]/subfield[@code='a']"),<br>
<br>
extractValue(marcxml,"collection/record/datafield[@tag='245'][1]/subfield[@code='a']"),<br>
<br>
extractValue(marcxml,"collection/record/datafield[@tag='650'][1]/subfield[@code='a']"),<br>
<br>
extractValue(marcxml,"collection/record/datafield[@tag='500'][1]/subfield[@code='a]"),<br>
<br>
extractValue(marcxml,"collection/record/datafield[@tag='520'][1]/subfield[@code='a']"),<br>
<br>
extractValue(marcxml,"collection/record/datafield[@tag='650'][1]/subfield[@code='a']")<br>
FROM biblioitems</div><br><br>I request other community members attention to this topic.<br><br>Regards<br>-- <br>Vimal Kumar V.<br>Asst. Librarian<br>Asian School of Business<br>Technopark, Trivandrum-695 581<br>Web: <a href="http://www.vimalkumar.co.nr">www.vimalkumar.co.nr</a><br>
Blog: <a href="http://vimalkumar.oksociety.in">http://vimalkumar.oksociety.in</a><br><br>OK Society Volunteer. <a href="http://oksociety.in">http://oksociety.in</a><br>---------------------------------------------------------------------------<br>
"I forget what I was taught. I only remember what I have learnt"<br>-Patrick White<br>