Need to exclude 0 results

I have an access database. I have a separate cross tab for every variable in the database. The answers to each variable can be 0,1,2,3,4,5.
0 is actually meant to be "missing". I need to totally exclude 0 from even being read in because the the crosstab is being used to show the % of responses that were 1,2,3,4,5 so we do not want 0 skewing the results.
So if question 1 has 400 respondants, and 10 of them give a 0(missing) for it, then the 1,2,3,4,5 results % will be based off a count of 390. So basically just need to exclude any 0 results showing up or being used in results for the crosstab.

thanks but not exactly the response I was looking for. Searching of isnull brings up many results that are completely different to my situation.
Do I need to create an sql field for each question where I tell it to exclude 0's? and then use the sql expression in my crosstabs?
Also I am familiar with oracle sql, but in working with an access database could you give me an quick example of what my sql expression would be to make it work?
database name: responses.mdb
tablename: responsetable
column(variable): rsq1
values: 0-5, but want to select all but 0
thanks.

Similar Messages

  • Need to exclude the empty elements after mapping in xslt.

    Hi Team,
    I have a requirement. I need to invoke a wsdl which will have some po details. I'm using transformation to map the value from my local bpel variable to invoke variable. It is mostly a one-one mapping. no functions no looping and no complex transformation. Now the requirement is that I need to only send the elements which has the value also to add, there is no particular element which can be empty. There can be three elements empty or four or any. I need to map all and then I need to send only the elements those has values. Below is my mapping.
    <?xml version="1.0" encoding="UTF-8" ?>
    <?oracle-xsl-mapper <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
      <mapSources>
        <source type="XSD">
          <schema location="POTest.xsd"/>
          <rootElement name="POTestProcessResponse" namespace="http://xmlns.oracle.com/POTest"/>
        </source>
      </mapSources>
      <mapTargets>
        <target type="XSD">
          <schema location="POTest.xsd"/>
          <rootElement name="POTestProcessResponse" namespace="http://xmlns.oracle.com/POTest"/>
        </target>
      </mapTargets>
      <!-- GENERATED BY ORACLE XSL MAPPER 10.1.3.3.0(build 070615.0525) AT [THU OCT 17 10:53:26 GMT 2013]. -->
    ?>
    <xsl:stylesheet version="1.0"
                    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
                    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
                    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
                    xmlns:ns1="http://xmlns.oracle.com/POTest"
                    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                    xmlns:ora="http://schemas.oracle.com/xpath/extension"
                    xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"
                    xmlns:ns0="http://www.w3.org/2001/XMLSchema"
                    xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
                    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
                    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
                    exclude-result-prefixes="xsl ns1 ns0 xref xp20 bpws ora ehdr orcl ids hwf">
      <xsl:template match="/">
        <ns1:POTestProcessResponse>
          <xsl:attribute name="OrderDate">
            <xsl:value-of select="/ns1:POTestProcessResponse/@OrderDate"/>
          </xsl:attribute>
          <ns1:name>
            <xsl:value-of select="/ns1:POTestProcessResponse/ns1:name"/>
          </ns1:name>
          <ns1:street>
            <xsl:value-of select="/ns1:POTestProcessResponse/ns1:street"/>
          </ns1:street>
          <ns1:city>
            <xsl:value-of select="/ns1:POTestProcessResponse/ns1:city"/>
          </ns1:city>
          <ns1:state>
            <xsl:value-of select="/ns1:POTestProcessResponse/ns1:state"/>
          </ns1:state>
          <ns1:zip>
            <xsl:value-of select="/ns1:POTestProcessResponse/ns1:zip"/>
          </ns1:zip>
        </ns1:POTestProcessResponse>
      </xsl:template>
      </xsl:stylesheet>
    Here I just mentioned only some elements but there are lot of other elements which can also be empty. If I keep on putting an if condition for each and every element it will messup the code. which I don't want to do due to lot of elements that needs to be checked. I tried with following templates.
    1)
    <xsl:template match="*[not(child::node())]"/>
      <xsl:template match="@*|node()">
    <xsl:if test=". != '' or ./@* != ''">
       <xsl:copy>
         <xsl:apply-templates select="@*|node()" />
       </xsl:copy>
    </xsl:if>
    </xsl:template>
    2)
    <xsl:output omit-xml-declaration="yes" indent="yes"/>
      <xsl:strip-space elements="*"/>
      <xsl:template match="node()|@*">
        <xsl:copy>
          <xsl:apply-templates select="node()|@*"/>
        </xsl:copy>
      </xsl:template>
      <xsl:template match="*[not(node())]
      |
       *[not(node()[2])
       and
         node()/self::text()
       and
         not(normalize-space())
      "/>
    3)
    <xsl:template match="/">
        <xsl:apply-templates select="*"/>
      </xsl:template>
      <xsl:template match="*">
        <xsl:if test=". != ''">
          <xsl:copy>
            <xsl:element name="name()">
              <xsl:copy-of select="@*"/>
              <xsl:apply-templates/>
            </xsl:element>
          </xsl:copy>
        </xsl:if>
      </xsl:template>
    But none of them is working. Kindly help. It is the only issue which is blocking.
    Help is greatly appreciated.
    Regards,
    Venkatesh.

    I received the following errors:
      Line Number:(55) : Error: "xsl:strip-space" XSL Element Currently not Supported
      Line Number:(31) : Error: <xsl:template match="/"> and <xsl:template name="..."> are the only permitted <template> elements in the XSL
      Line Number:(53) : Error: <xsl:template match="/"> and <xsl:template name="..."> are the only permitted <template> elements in the XSL
      Line Number:(56) : Error: <xsl:template match="/"> and <xsl:template name="..."> are the only permitted <template> elements in the XSL
    Below is the complete transformation code.:
    <?xml version="1.0" encoding="UTF-8" ?>
    <?oracle-xsl-mapper
      <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
      <mapSources>
        <source type="XSD">
          <schema location="POTest.xsd"/>
          <rootElement name="POTestProcessRequest" namespace="http://xmlns.oracle.com/POTest"/>
        </source>
      </mapSources>
      <mapTargets>
        <target type="XSD">
          <schema location="POTest.xsd"/>
          <rootElement name="POTestProcessResponse" namespace="http://xmlns.oracle.com/POTest"/>
        </target>
      </mapTargets>
      <!-- GENERATED BY ORACLE XSL MAPPER 10.1.3.3.0(build 070615.0525) AT [THU OCT 17 10:20:35 GMT 2013]. -->
    ?>
    <xsl:stylesheet version="1.0"
                    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
                    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
                    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
                    xmlns:ns1="http://xmlns.oracle.com/POTest"
                    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                    xmlns:ora="http://schemas.oracle.com/xpath/extension"
                    xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"
                    xmlns:ns0="http://www.w3.org/2001/XMLSchema"
                    xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
                    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
                    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
                    exclude-result-prefixes="xsl ns1 ns0 xref xp20 bpws ora ehdr orcl ids hwf">
      <xsl:template match="/">
          <ns1:POTestProcessResponse>
          <xsl:attribute name="OrderDate">
            <xsl:value-of select="/ns1:POTestProcessRequest/@OrderDate"/>
          </xsl:attribute>
          <ns1:name>
            <xsl:value-of select="/ns1:POTestProcessRequest/ns1:name"/>
          </ns1:name>
          <ns1:street>
            <xsl:value-of select="/ns1:POTestProcessRequest/ns1:street"/>
          </ns1:street>
          <ns1:city>
            <xsl:value-of select="/ns1:POTestProcessRequest/ns1:city"/>
          </ns1:city>
          <ns1:state>
            <xsl:value-of select="/ns1:POTestProcessRequest/ns1:state"/>
          </ns1:state>
          <ns1:zip>
            <xsl:value-of select="/ns1:POTestProcessRequest/ns1:zip"/>
          </ns1:zip>
        </ns1:POTestProcessResponse>
      </xsl:template>
        <xsl:strip-space elements="*" />
    <xsl:template match="*">
    <xsl:if test=".!='' or count(@*)!=0">
      <xsl:copy>
       <xsl:apply-templates select="*|@*|text()" />
      </xsl:copy>
    </xsl:if>
    </xsl:template>
    <xsl:template match="@*">
    <xsl:copy-of select="." />
    </xsl:template>
    <xsl:template match="text()">
    <xsl:value-of select="." />
    </xsl:template>
    </xsl:stylesheet>

  • What is the best alternative to exclude results from a specific site collection

    Hi,
    We want to exclude results from a specific site collection (for example http://server/sites/demo").
    A few ways are being considered:
    1. Copy the Local SharePoint Results Result Source and edit it not to include results from that site collection and then set the new custom result source as default.
    2. Edit the Search Results WP in the "Everything" tab to exclude those results (edit the query there)
    3. Set a query rule on "Local SharePoint Results" to exclude the results from the Demo Site Collection
    What is the best?
    keren tsur

    Hi Keren,
    Modifying the Local result  xlt will give you the most granularity but it is also arguably more challenging because of the "editing code" portion
    On your search page you could append a query string via the search webpart but that may not get granular enough.
    In the past I have used search scopes to exclude items in search results. Depending on the specific requirement it may be a quick and easy way to accomplish your task. it really depends on how ganular you need to get with excluding items from results.
    A search scope can be setup be going to:
    1. Site Actions (of the site collection you want to apply this to)
    2. Click on Site Settings
    3. Under site Collection Administration ( you have to be a site collection admin or farm admin to be able to see this section)
    4. click on "Search Scopes"
    5. Click on New Scope
    6. Name it, fill out any other options you want and click "ok"
    7. Click on your newly created search scope.
    8. click on "new rule"
    9. Fill out the fields based on your requirements and then click "OK"
    10. I believe you will want to wait for a search to index to run before this scope will return any results.
    Please let me know if you have any other questions.
    Good Luck!
    Alex

  • How to Use COLUMN NOPRINT - need to exclude one column from Select *

    Dear Friends,
    I need to exclude one column from a SELECT * query. Everytime the column data type is BLOB, I dont' want it to be part of my SELECT. After googling I found some info about NOPRINT but it doesn't seem to be working in my case. May be I am using it incorreclty.
    COLUMN FILE_DESC NOPRINT
    SELECT * FROM FILES;
    Where FILE_DESC is of BLOB datatype.Can I use it in my SELECT or it has to be used in Dynamic SQL? Is there any other option to achieve this?
    Thanks in advance.

    Hi,
    COLUMN FILE_DESC NOPRINT
    affects all queries in the same SQL*Plus session (unless you cancel it with a COLUMN FILE_DESC PRINT command.)  It doesn't matter if those queries are static or dynamic.  As mentioned before, COLUMN is a SQL*Plus command.  If you using a different front end, then it may have a different way to hide specific output columns.
    Did you have a poroblem when you tried it?  Post a complete test script that the people who want to help you can use to re-create the problem and test their ideas.
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • Under F110 t-code, I need to exclude certain vendor #'s in this range. How

    Hi,
        Under F110 t-code I generally pull in a range of vendor #'s (ex: 850000-999999) and have come across a situation where I need to exclude certain vendor #'s in this range.  Need to know if we can get get an exclusion parameter.
    Pls let me know what could be the procedure to come out from this type of situation.
    Please let me know what can be done or if there is currently a way within F110 to do this without skipping vendor on proposals.

    hi,
    After entering the company code and Vendor number Execute it and u can see all the vendor balance Invoices and select the Invoices which u want to clear the amount.After this u run the APP, the only opn invoices can be cleared......
    OR
    In F110 while running the Payment Proposal click on that and u can see the list of the invoices Or to which Vendor u want to clear the amount and Double click on it. Again get back to the previious page and press enter .
    Hope this solution is enough.....
    Ranjit

  • Need to exclude certain risks in Risk Analysis and Remediation (5.2)

    Hello Experts,
    My requirement is I need to exclude certain unwanted risks whenever I execute the simulation for a user or an SAP role. We had this provision in the ABAP version of compliance calibrator 4.0. But we are not able to do the same in the upgraded 5.2 risk analysis and remediation.
    Can anyone please provide a solution to this problem or some workaround. Thanks in advance.
    Best Regds,
    Suyog Chakot...

    Hi,
    there are several options:
    - you can disable single risks in rule architect.
    - you can create a seond rule set that only checks the roles you want to check on
    - you can mitigate certain roles or users to exclude them from analysis
    The options are all there - depends on what exactly you want to do.
    Frank.

  • Why to need close the result set and statement

    why to need close the result set and statement

    It's best to explicitly close every ResultSet, Statement, and Connection in the narrowest scope possible.
    These should be closed in a finally block.
    Since each close() method throws SQLException, each one should be in an individual try/catch block to ensure that a failure to close one won't ruin the chances for all the others.
    You can capture this in one nice utility class, like this:
    package db;
    import java.sql.*;
    import java.util.ArrayList;
    import java.util.Map;
    import java.util.LinkedHashMap;
    import java.util.List;
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    * Created by IntelliJ IDEA.
    * User: MD87020
    * Date: Feb 16, 2005
    * Time: 8:42:19 PM
    * To change this template use File | Settings | File Templates.
    public class DatabaseUtils
         * Logger for DatabaseUtils
        private static final Log logger = LogFactory.getLog(DatabaseUtils.class);
        /** Private default ctor to prevent subclassing and instantiation */
        private DatabaseUtils() {}
         * Close a connection
         * @param connection to close
        public static void close(Connection connection)
            try
                if ((connection != null) && !connection.isClosed())
                    connection.close();
            catch (SQLException e)
                logger.error("Could not close connection", e);
         * Close a statement
         * @param statement to close
        public static void close(Statement statement)
            try
                if (statement != null)
                    statement.close();
            catch (SQLException e)
                logger.error("Could not close statement", e);
         * Close a result set
         * @param rs to close
        public static void close(ResultSet rs)
            try
                if (rs != null)
                    rs.close();
            catch (SQLException e)
                logger.error("Could not close result set", e);
         * Close both a connection and statement
         * @param connection to close
         * @param statement to close
        public static void close(Connection connection, Statement statement)
            close(statement);
            close(connection);
         * Close a connection, statement, and result set
         * @param connection to close
         * @param statement to close
         * @param rs to close
        public static void close(Connection connection,
                                 Statement statement,
                                 ResultSet rs)
            close(rs);
            close(statement);
            close(connection);
         * Helper method that maps a ResultSet into a map of columns
         * @param rs ResultSet
         * @return map of lists, one per column, with column name as the key
         * @throws SQLException if the connection fails
        public static final Map toMap(ResultSet rs) throws SQLException
            List wantedColumnNames = getColumnNames(rs);
            return toMap(rs, wantedColumnNames);
         * Helper method that maps a ResultSet into a map of column lists
         * @param rs ResultSet
         * @param wantedColumnNames of columns names to include in the result map
         * @return map of lists, one per column, with column name as the key
         * @throws SQLException if the connection fails
        public static final Map toMap(ResultSet rs, List wantedColumnNames)
            throws SQLException
            // Set up the map of columns
            int numWantedColumns    = wantedColumnNames.size();
            Map columns             = new LinkedHashMap(numWantedColumns);
            for (int i = 0; i < numWantedColumns; ++i)
                List columnValues   = new ArrayList();
                columns.put(wantedColumnNames.get(i), columnValues);
            while (rs.next())
                for (int i = 0; i < numWantedColumns; ++i)
                    String columnName   = (String)wantedColumnNames.get(i);
                    Object value        = rs.getObject(columnName);
                    List columnValues   = (List)columns.get(columnName);
                    columnValues.add(value);
                    columns.put(columnName, columnValues);
            return columns;
         * Helper method that converts a ResultSet into a list of maps, one per row
         * @param rs ResultSet
         * @return list of maps, one per row, with column name as the key
         * @throws SQLException if the connection fails
        public static final List toList(ResultSet rs) throws SQLException
            List wantedColumnNames  = getColumnNames(rs);
            return toList(rs, wantedColumnNames);
         * Helper method that maps a ResultSet into a list of maps, one per row
         * @param rs ResultSet
         * @param wantedColumnNames of columns names to include in the result map
         * @return list of maps, one per column row, with column names as keys
         * @throws SQLException if the connection fails
        public static final List toList(ResultSet rs, List wantedColumnNames)
            throws SQLException
            List rows = new ArrayList();
            int numWantedColumns = wantedColumnNames.size();
            while (rs.next())
                Map row = new LinkedHashMap();
                for (int i = 0; i < numWantedColumns; ++i)
                    String columnName   = (String)wantedColumnNames.get(i);
                    Object value = rs.getObject(columnName);
                    row.put(columnName, value);
                rows.add(row);
            return rows;
          * Return all column names as a list of strings
          * @param rs query result set
          * @return list of column name strings
          * @throws SQLException if the query fails
        public static final List getColumnNames(ResultSet rs) throws SQLException
            ResultSetMetaData meta  = rs.getMetaData();
            int numColumns = meta.getColumnCount();
            List columnNames = new ArrayList(numColumns);
            for (int i = 1; i <= numColumns; ++i)
                columnNames.add(meta.getColumnName(i));
            return columnNames;
    }Anybody who lets the GC or timeouts or sheer luck handle their resource recovery for them is a hack and gets what they deserve.
    Do a search on problems with Oracle cursors being exhausted and learn what the root cause is. That should convince you.
    scsi-boy is 100% correct.
    %

  • Syntax of a query rule to exclude results from site collection

    Hi,
    I'm trying to edit a query rule to exclude results from a site collection.
    I'm coping the "Local SharePoint Results" and want to add something like -path=http://server/sites/demo/*
    but somehow it doesn't work. can someone help with the exact syntax (should to write http, "", to write with {} etc.)
    keren tsur

    -SiteId:<guid>
    should work. Or:
    -path:http://server/sites/sitecollection
    Thanks,
    Mikael Svenson
    Search Enthusiast - SharePoint MVP/MCT/MCPD - If you find an answer useful, please up-vote it.
    http://techmikael.blogspot.com/
    Author of Working with FAST Search Server 2010 for SharePoint

  • Need to exclude Sat and Sun from Leave Apply

    Hi,
    Need to exclude Sat and Sun from Leave Apply, the requirement is when user apply for leave and when he enter days like 1 to 10 the system should exclude sat and sun in this duration and Calculate Duration Button should show the remaining days in Total Field. In which formula or PL/SQL script should open to amend this. Currently system is only excluding Sunday.
    Regards,

    Hi,
    Need to exclude Sat and Sun from Leave Apply, the requirement is when user apply for leave and when he enter days like 1 to 10 the system should exclude sat and sun in this duration and Calculate Duration Button should show the remaining days in Total Field. In which formula or PL/SQL script should open to amend this. Currently system is only excluding Sunday.
    Regards,

  • Need to exclude project from summarization.

    Hi All
    I have a query on Project summarization.
    I need to exclude project from project summarization as soon as its status gets TECHO or CLOSED.
    If we canu2019t do it on status then just any one help me out how to exclude it from hierarchy.
    Regards
    Gaurav Verma

    Create a summarisation hierarchy using a seperate status selection profile which excludes the TECO
    and CLSD projects.
    Create status selection profile and use it in KKR0 for projects.
    Regards
    Sreenivas

  • I need return the result of a query on a stored procedure

    I need return the result of a query on a stored procedure, I mean when I execute a stored procedure it returns a result set as a select query.
    Best regards...

    If you want some pl/sql code that can be used in a query as it were a table you may be interested in table functions:
    SQL> create or replace type
      2  t_emp is object (
      3  name            varchar2(30),
      4  hire_date date,
      5  salary       number);
      6  /
    Tipo creato.
    SQL> create or replace type
      2  t_emptab is table of t_emp;
      3  /
    Tipo creato.
    SQL> create or replace function tab_fun(p_dept in number)
      2  return t_emptab is
      3  e t_emptab;
      4  begin
      5    select t_emp(ename,hiredate,sal)
      6      bulk collect into e
      7      from emp
      8     where deptno=p_dept;
      9
    10    return dip;
    11  end;
    12  /
    Funzione creata.
    SQL> select *
      2  from table(tab_fun(20));
    NAME                           HIRE_DATE  SALARY
    SMITH                          17-DIC-80        800
    JONES                          02-APR-81       2975
    SCOTT                          09-DIC-82       3000
    ADAMS                          12-GEN-83       1100
    FORD                           03-DIC-81       3000A procedure cannot be used in a select statement.
    Max
    http://oracleitalia.wordpress.com

  • SLA Calculation needed to exclude Holidays, Weekends and Off business hours

    Hello all,
    I am to create a function that will calculate the minutes between two dates for company work hours, excluding the weekends. 
    The function here from RSingh() is ideal for this purpose; however I am now asked to excluded company holidays also.
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/de4f7661-c702-4a10-ad06-3e28e4e0a83c/sla-calculation-help-needed-in-excluding-weekends-and-off-business-hours-for-calculation?forum=transactsql
    With a table called 'holidays' that contains holiday dates. I would hope to modify the function to exclude these.
    Please, how can this be accomplished? 

    My approach would be something like this
    Populate a calendar table that includes a work start and work end time for each day (none for weekends and holidays)
    SELECT *
    INTO #cal
    FROM (
        SELECT CAST('20140117' AS DATE) AS CalendarDate
            , CAST('20140117 09:00' AS DATETIME) WorkStart
            , CAST('20140117 17:00' AS DATETIME) AS WorkEnd
        UNION ALL
        SELECT CAST('20140118' AS DATE) AS CalendarDate
            , CAST(NULL AS DATETIME) WorkStart
            , CAST(NULL AS TIME) AS WorkEnd
        UNION ALL
        SELECT CAST('20140119' AS DATE) AS CalendarDate
            , CAST('20140119 09:00' AS DATETIME) WorkStart
            , CAST('20140119 17:00' AS DATETIME) AS WorkEnd
        UNION ALL
        SELECT CAST('20140120' AS DATE) AS CalendarDate
            , CAST(NULL AS DATETIME) WorkStart
            , CAST(NULL AS TIME) AS WorkEnd
        UNION ALL
        SELECT CAST('20140121' AS DATE) AS CalendarDate
            , CAST(NULL AS DATETIME) WorkStart
            , CAST(NULL AS TIME) AS WorkEnd
        UNION ALL
        SELECT CAST('20140122' AS DATE) AS CalendarDate
            , CAST('20140122 09:00' AS DATETIME) WorkStart
            , CAST('20140122 17:00' AS DATETIME) AS WorkEnd
        ) X
    Use a query something like the following to work out the number of minutes
    DECLARE @Start DATETIME = '20140117 13:00'
    DECLARE @End DATETIME = '20140122 17:00'
    SELECT SUM(diff)
    FROM (
    SELECT DATEDIFF(MINUTE, CASE WHEN CAST(@Start AS DATE) = CalendarDate
    AND @Start > WorkStart THEN @Start ELSE WorkStart END, CASE WHEN CAST(@End AS DATE) = CalendarDate
    AND @End < WorkEnd THEN @End ELSE WorkEnd END) AS diff
    FROM #cal
    WHERE CalendarDate BETWEEN CAST(@Start AS DATE)
    AND CAST(@End AS DATE)
    ) X
    Edit: Totally mucked up the example calendar table so I've changed it

  • Transformation - exclude-result-prefixes   doesn't prevent prefix 'xsl'

    Hi all fellow sufferers.
    I am generating an xsl document (yes, xsl) and to do that I do the following create element :
    <xsl:element name="xsl:value-of">
            <xsl:attribute name="select"><xsl:value-of select="$varval"/></xsl:attribute>
    </xsl:element>which basically works, however it does leave behind this damn prefix all through the generated xsl code, eg
    <p class="P1">
        <xsl:value-of xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="/PatientRecord/Demographics/name/@label"/>
    </p>Thing is, I am using the exclude-result-prefixes directive in the stylesheet tag, .... (although, to be honest, I was surprised I would have this problem in just creating an xsl:value-of node!!)
    Is there something else I should be doing to prevent this? Why is the annoying prefix being generated anyway! ?
    please? someone?
    thanks!

    Hi,
    Yes, I agree that my knowledge is probably inadequate. However, I can't help but wonder if I am not being misunderstood!
    Let me explain one more time... (before I go off and by a good book.).
    First, in the XSL document DOING the transformation, I had this tag at the root.
    <xsl:stylesheet version="1.0"      xmlns:xsl="http://www.w3.org/1999/XSL/Transform">As you can see, this is correctly declaring the namespace, xsl.
    If then I try to generate a xsl tag using this XSL document, I get what I have previously shown you.
    <xsl:value-of xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="/PatientRecord/Demographics/insurance"/>It was only when I first tried this and got those annoying (though perfectly legal) xmlns:xsl="http://www.w3.org/1999/XSL/Transform" attributes in the end result of my xsl:value-of tags, that I started playing around with the exclude-result-prefixes directive.
    Now, I agree that I am getting well-formed XML, but yes, I don't want the bulk of the extra redundant attributes in my end result.
    Surely there must be a way to generate XSL tags without them including these xmlns:xsl attributes? As the end document WILL have the xsl namespace declared!
    Is there a way to declare a namespace for the result document perhaps?
    The transforming XSL document already has one.
    Thanks for your help.

  • Need to fetch results as the output from QGA2

    Hi Gurus,
    My scenario is that i need to develop an interface in which I would send Material,Plant,MIC and Period from one system to SAP R/3 and I need to fetch the output as I get the output from QGA2 while i enter the above mentioned fields.
    Input: Material,Plant,MIC and Period
    Output:
    1) Inspection Start Date
    2) Inspection Lot number
    3) Material
    4) Material Description
    5) UD code and code group
    6) Quality Score( at inspection lot level)
    7) UD code text
    8) Valuation of characterstic
    9) System Status of lot
    10) Characterstcic description
    11) Operation Number at which charaterstic was inspected
    12) Characterstic Number inspected
    Please let me know any BADI or FM which could help me in fetching out these values as standard QGA2 transaction does fetch out these values.
    Thanks

    hi
    Please check
    BAPI_INSPCHAR_GETREQUIREMENTS
    BAPI_INSPCHAR_GETRESULT
    BAPI Modify result lot inspection
    Regards
    Sujit

  • Need to exclude a period in query but should be able to add after execution

    Hi all,
    I have to exclude a period (say 016) in the query by default. This I can do by just making 016 as "Exclude from selection" but the problem is user should be able to add if he wants.
    In simple, By default 016 shold be excluded but user should be able to add.
    Please let me know if u have solution.

    Hi,
    In the 'default values' section of the query designer restrict to exclude period 16.
    Ensure period is available in 'free characteristics'.
    Once report is executed user can see exclude 16 in filter;he can remove it if needed.
    Regards,
    Sunith

Maybe you are looking for

  • Save and close popup window

    I have a typical popup window launched using the builtin javascript:popupURL(). I would like a Save and Close button on this popup window that does 1. Submits the popup page so that changes are saved into session state 2. Close the popup window 3. Re

  • Need some advise and help Transferring files one mac to other

    I have created quite a problem for my self and can not seem to get out of it. I transferred my system from the G4 to the new Intel IMAC. Ended up with two accounts on the new Intel IMac. Was told to go to user/ and transfer files from one account to

  • Tax category DE 2 is not defined for country 1

    Hi to all, We are in retail project while changing the article master following data is coming automatically to tax data in general data DE Germany MWST Output Tax O Unbranded Other. When I save the article master, i am getting following error. Tax c

  • DataGrid, selecting, highlighting, navigating to a row

    In Flash MX 2004 I would like to have a row selected after the DataGrid has been populated. Much like a list box <select> in html, I would like to make one row "selected". It must be navigated to and highlighted to visually indicate the selection. Ho

  • Het startscherm is waarschijnlijk niet van Firefox the opening window is probably not from firefox is my computer hacked?

    ik heb gisteren het programma zoomit geïnstalleerd (vergrootglas). Ondertussen heb ik alles zo goed mogelijk weer verwijderd maar volgens mij heb ik het originele firefox-startscherm niet meer waar vroeger Google stond staat nu Google default. Ik heb