anchor.diff:      <%-- Set select statement depending on the view table type --%>
       <c:choose>
         <c:when test="${viewTables == 'application'}">
  -        select TABLENAME from SYS.SYSTABLES where TABLETYPE='T'
  +        select s.schemaname, t.tablename from sys.sysschemas s join sys.systables t on s.schemaid = t.schemaid
  +          where TABLETYPE='T'
  +          order by s.schemaname, t.tablename
         </c:when>
         <c:when test="${viewTables == 'system'}">
  -        select TABLENAME from SYS.SYSTABLES where TABLETYPE='S' and TABLENAME!='SYSDUMMY1'
  +          select s.schemaname, t.tablename from sys.sysschemas s join sys.systables t on s.schemaid = t.schemaid
  +            where s.schemaname='SYS'
  +            order by s.schemaname, t.tablename
         </c:when>
       </c:choose>
     </sql:query>
  
positive.code: <center><b>DB: <c:out value="${db}" /></b></center>
  <table width="100%">
    <tr>
      <td class="DarkBackground" colspan="2" align="center">Tables</td>
    </tr>
    <%-- Check if there are tables to display  --%>
    <c:choose>
  
negative.code:       	    <c:set var="tdClass" scope="page" value="MediumBackground" />
        	  </c:otherwise>
        	</c:choose>
              <td class="<c:out value='${tdClass}' />"><c:out value="${row[0]}" /></td>
              <td class="<c:out value='${tdClass}' />"><c:out value="${row[1]}" /></td>
              <td class="<c:out value='${tdClass}' />" align="center">
                <a href="<portlet:actionURL portletMode="view">
                           <portlet:param name="action" value="viewTableContents" />
                           <portlet:param name="db" value="${db}" />
                           <portlet:param name="tbl" value="${row[0]}.${row[1]}" />
                           <portlet:param name="viewTables" value="${viewTables}" />
                         </portlet:actionURL>">View Contents</a>
              </td>
        </tr>
        </c:forEach>
      </c:otherwise>
  