Group by cluase

hi , i had requirement something like printing employee id in first row and in next row should print the employee details. like this for employee say as eg:
employee id   || employee name || employee addr.
100
  -                    frank                    xyx
101
-                     mike                     xxxx- using oracle db 10g is this possible by using group by...

IF this requirement is to just print the values from table, you can simply use:
SELECT    a.empid
       || CHR (10)
       || '-'
       || LPAD (a.empname || '     ' || a.sal, 30, ' ')
          paddedoutput
  FROM t a;Output:
PADDEDOUTPUT
123
-                Manik1     100
1234
-                Manik2     100
12345
-                Manik3     100
123456
-                Manik4     100Cheers,
Manik.

Similar Messages

  • Allias Name to be used in Group By cluase

    I have a table trxndet (bankcommdisc,bankadhocdisc,trxnamt) number fields .My query is like this select (t.bankcommdisc+t.bankadhocdisc) as bankrebate ,(select sum(A.trxnamt) from trxndet A
    where (A.bankcommdisc+A.bankadhocdisc)= (t.bankcommdisc+t.bankadhocdisc) )as Cash
    from Trxndet
    group by (t.bankcommdisc+t.bankadhocdisc)
    for the above query I am getting not a group by expression ,Kindly reply how to overcome this
    Regards
    Jailani

    group by t.bankcommdisc, t.bankadhocdisc

  • Aggregation content Group by

    Can someone explain to me the use of the aggregation content group by tab.
    when we set up the aggregation content group by tab say for a fact logical table source ( Revenue fact LTS1 ) what does it actually imply..
    in the sales sample example that ships with the Oracle BI
    In the Revenue facts table source , we do the following in the aggregation content group by
    logical dimension logical level
    H1 Time Time Detail
    H2 Product Product detail
    H3 Customer Customer detail
    and in the respective logical sources of time, product & customer we set up aggregation content which corresponds to the level we set up in the revenue fact table logical source.
    I fail to understand what is the implied meaning of this aggregation content setting ?? Can someone please help me understand.

    The content tab plays major role for BI server about the physical sources. Based on the columns select in Answers criteira tab BI server uses its inteligence to pick table(or list) to fetch records from db.
    We can go by logical level (using dimension hierarchies) and column level (use table columns when we not using dimensions).
    Be default these are at the lowest level to the fact.
    When a logical (fact)table have multiple sources we set content tab equalent to the level of information is contented.
    Ex: Fact table and its Aggregate table; for fact we set (generally) lowest level and for Aggregate some where mid level or based on its definition wrt dimension tables.
    The level represents group by cluase in the physical query.
    These level can go for measures(Level base measure), when set the specific level to the metric, that metric will execute as indipendent query(with group by clause) and sites with other columns. These will not come under influence of drill down at any cost.
    If you read Administrator help for both logical tables and dimension hierarchies you can get complete piture.
    If helps pls mark

  • How to satisfy GROUP BY

    first view  :B2BFEB11_TEST
    second view : B2BFEB11_TEST2
    can any one tell me how do i make these two views into one. in B2BFEB11_TEST i can take send_date as timestamp but should be included in group by.
    My condition is i should use send_date as timestamp but i should not use them in group by cluase.
    My group by CLAUSE should consists of only below mentioned fields.
                A.STO_NO,
                A.CUR_CODE,
                A.RECEIPT_NO,
                A.CASH_NO,
                A.SALES_DATE
    can you help me how to implement this timestamp in my view .... because i need to use this timestamp column  in another table.CREATE OR REPLACE FORCE VIEW B2BFEB11_TEST
    SEND_DATE,
    BU_CODE,
    BU_TYPE,
    CUST_NO,
    CUR_CODE,
    SALES_DATE,
    RECEIPT_NO,
    TILL_NO,
    CARD_NO,
    INVOICE_TOTAL,
    AMOUNT_OF_GOODS,
    AMOUNT_NON_GOODS,
    AMOUNT_ADVANCE_PAY,
    AMOUNT_DISCOUNTS,
    ON_HOLD_FLAG,
    IDRS_NAME,
    RUN_DATE,
    FIX_DATE,
    RUN_DATE_PREV
    AS
    SELECT DISTINCT
    NULL AS TIME_STAMP,
    CAST (A.STO_NO AS VARCHAR2 (5 CHAR)) AS BU_CODE,
    CAST ('STO' AS VARCHAR2 (3 CHAR)) AS BU_TYPE,
    CAST (NULL AS VARCHAR2 (7 BYTE)) AS CUST_NO,
    CAST (A.CUR_CODE AS VARCHAR2 (3 BYTE)) AS CUR_CODE,
    TO_DATE (A.SALES_DATE, 'YYMMDD'),
    CAST (A.RECEIPT_NO AS VARCHAR2 (10 BYTE)),
    CAST (A.CASH_NO AS VARCHAR2 (5 BYTE)) AS TILL_NO,
    CAST (NULL AS VARCHAR2 (2 BYTE)) AS CARD_NO,
    CASE
    WHEN A.cur_code IN ('JPY', 'HUF')
    THEN
    CAST (SUM (sold_amount) AS NUMBER (11, 2)) * 1
    ELSE
    CAST (SUM (sold_amount) AS NUMBER (11, 2)) / 100
    END
    AS invoice_total,
    CAST (NULL AS NUMBER (11, 2)) AS AMOUNT_ADVANCE_PAY,
    CAST (NULL AS NUMBER (11, 2)) AS AMOUNT_OF_GOODS,
    CAST (NULL AS NUMBER (11, 2)) AS AMOUNT_NON_GOODS,
    CAST (NULL AS NUMBER (11, 2)) AS AMOUNT_DISCOUNTS,
    'N' AS ON_HOLD_FLAG,
    'F6581001' AS IDRS_NAME,
    NULL AS RUN_DATE,
    NULL AS FIX_DATE,
    NULL AS RUN_DATE_PREV
    FROM I_0470002_LOG_T A
    WHERE A.SALES_DATE IN
    ('121115',
    '121116',
    '121117',
    '121118',
    '121119',
    '121120',
    '130130',
    '130131')
    AND A.SOLD_AMOUNT != 0
    GROUP BY A.STO_NO,
    A.CUR_CODE,
    A.RECEIPT_NO,
    A.CASH_NO,
    A.SALES_DATE
    CREATE OR REPLACE FORCE VIEW B2BFEB11_TEST2
    SEND_DATE,
    BU_CODE,
    BU_TYPE,
    CUST_NO,
    CUR_CODE,
    SALES_DATE,
    RECEIPT_NO,
    TILL_NO,
    CARD_NO,
    INVOICE_TOTAL,
    AMOUNT_OF_GOODS,
    AMOUNT_NON_GOODS,
    AMOUNT_ADVANCE_PAY,
    AMOUNT_DISCOUNTS,
    ON_HOLD_FLAG,
    IDRS_NAME,
    RUN_DATE,
    FIX_DATE,
    RUN_DATE_PREV)
    AS
    SELECT DISTINCT
    timestamp AS TIME_STAMP, ---------------------------------------------------------i want timestamp as one column
    CAST (null AS VARCHAR2 (5 CHAR)) AS BU_CODE,
    CAST ('STO' AS VARCHAR2 (3 CHAR)) AS BU_TYPE,
    CAST (NULL AS VARCHAR2 (7 BYTE)) AS CUST_NO,
    CAST (null AS VARCHAR2 (3 BYTE)) AS CUR_CODE,
    null as sales_date,
    CAST (null AS VARCHAR2 (10 BYTE)),
    CAST (null AS VARCHAR2 (5 BYTE)) AS TILL_NO,
    CAST (NULL AS VARCHAR2 (2 BYTE)) AS CARD_NO,
    null as invoice_total,
    CAST (NULL AS NUMBER (11, 2)) AS AMOUNT_ADVANCE_PAY,
    CAST (NULL AS NUMBER (11, 2)) AS AMOUNT_OF_GOODS,
    CAST (NULL AS NUMBER (11, 2)) AS AMOUNT_NON_GOODS,
    CAST (NULL AS NUMBER (11, 2)) AS AMOUNT_DISCOUNTS,
    'N' AS ON_HOLD_FLAG,
    'F6581001' AS IDRS_NAME,
    SYSDATE AS RUN_DATE,
    SYSDATE AS FIX_DATE,
    SYSDATE AS RUN_DATE_PREV
    FROM I_0470002_LOG_T A
    Edited by: 891933 on 12-Feb-2013 22:18
    Edited by: 891933 on 12-Feb-2013 22:43
    Edited by: 891933 on 12-Feb-2013 22:52

    I think that the min(time_stamp) will be sufficient:
    SELECT MIN(time_stamp)               AS TIME_STAMP,
      CAST(A.STO_NO AS   VARCHAR2(5 CHAR)) AS BU_CODE,
      CAST('STO' AS      VARCHAR2(3 CHAR)) AS BU_TYPE,
      CAST(NULL AS       VARCHAR2(7 BYTE)) AS CUST_NO,
      CAST(A.CUR_CODE AS VARCHAR2(3 BYTE)) AS CUR_CODE,
      TO_DATE(A.SALES_DATE, 'YYMMDD'),
      CAST(A.RECEIPT_NO AS VARCHAR2(10 BYTE)),
      CAST(A.CASH_NO AS    VARCHAR2(5 BYTE)) AS TILL_NO,
      CAST(NULL AS         VARCHAR2(2 BYTE)) AS CARD_NO,
      CASE
        WHEN A.cur_code IN('JPY', 'HUF')
        THEN CAST(SUM(sold_amount) AS NUMBER(11, 2)) * 1
        ELSE CAST(SUM(sold_amount) AS NUMBER(11, 2)) / 100
      END                         AS invoice_total,
      CAST(NULL AS NUMBER(11, 2)) AS AMOUNT_ADVANCE_PAY,
      CAST(NULL AS NUMBER(11, 2)) AS AMOUNT_OF_GOODS,
      CAST(NULL AS NUMBER(11, 2)) AS AMOUNT_NON_GOODS,
      CAST(NULL AS NUMBER(11, 2)) AS AMOUNT_DISCOUNTS,
      'N'                         AS ON_HOLD_FLAG,
      'F6581001'                  AS IDRS_NAME,
      NULL                        AS RUN_DATE,
      NULL                        AS FIX_DATE,
      NULL                        AS RUN_DATE_PREV
    FROM I_0470002_LOG_T A
    WHERE A.SALES_DATE IN('121115', '121116', '121117', '121118', '121119', '121120', '130130', '130131')
    AND A.SOLD_AMOUNT != 0
    GROUP BY A.STO_NO,
      A.CUR_CODE,
      A.RECEIPT_NO,
      A.CASH_NO

  • Report Print Order

    Post Author: gsrk
    CA Forum: General
    I am creating a Pack Slip using a crystal repot and i am running in to a problem in the Print Order.  I've created a simple report to show a carton items for a shipment and the report is grouped by carton ID (datatype uniqueidentifier) to keep all the carton items together in a report. New reports are created for each carton.  I've another column(sortkey) in the report or for each carton and i should print the report in that order only. 
    How can i print the report in the sortkey order?  I can't simply add the sortkey to the record sort expression becuase of group by clause. Group by cluase is automatically becoming the top level sort.
    Is there a way to sort the report(based on the sortkey column on the report) just before printing.

    Post Author: V361
    CA Forum: General
    Group sort expert may help, give it a look, you will need to have a sum (which you can suppress) but if you did (Max item number) or something, you can then sort off the sum in Group sort expert.....

  • Error occuring in SELECT statement FOR UPDATE when using WITH cluase

    Hi,
    Iam using oracle 11g version
    Iam having a query with fetch records for update insid with cluase as
    cursor c1 is
    With abc as (
    SELECT col1,col2 from table1, table2 where < condition>
    for update of <col1> skip locked
    select * from abc,table3 where <condition>
    union all
    select * from table4 where id not in (select * from abc)
    if i add "for update of <col1> skip locked" this cluase
    iam getting error ORA-00907: missing right parenthesis
    when i remove "for update of <col1> skip locked" the block is working fine..
    can i know why error is occuring i

    Hi, first of all, your placing of "for update" clause is wrong. It should be at the end like:
    With abc as (
    SELECT col1,col2 from table1, table2 where < condition>
    select * from abc,table3 where <condition>
    union all
    select * from table4 where id not in (select * from abc)
    for update of <col1> skip locked;Second, if you try to compile it with this syntax then you will get a new error.
    ORA-01786:     FOR UPDATE of this query expression is not allowed
    Cause:     An attempt was made to use a FOR UPDATE clause on the result of a set expression involving GROUP BY, DISTINCT, UNION, INTERSECT, or MINUS.
    Action:     Check the syntax, remove the FOR UPDATE clause, and retry the statement.So, you will not be successful with the union clause in your query.

  • Need to take rownum highest value without using grouping functions

    Hi
    I want to display highest value in the rownum column and customer details without using grouping functions like max or count
    this below query gives me all rownum values and customer details
    SELECT ROWNUM ROWNUM_1, CUSTOMER_NO, CUSTOMER_NAME, CUSTOMER_DOJ, CUSTOMER_MOBILENO FROM CUSTOMER;
    can any one help me.

    The above query won't work as it's missing "from" cluase in the inner select statement.
    And even if corrected it willl print rownum values thrice: value "1",max_rownum, max_rownum followed by customer details.
    Below is the simple query to retrieve max row_num along with the corresponding customer details.
    select * from (SELECT ROWNUM ROWNUM_1, CUSTOMER_NO, CUSTOMER_NAME, CUSTOMER_DOJ, CUSTOMER_MOBILENO FROM CUSTOMER order by rownum_1 desc) where rownum<=1 ;

  • SPGridView group duplication issue

    Hi all,
    i am facing the issue while developing the webpart. i am using SPGridview and creating groups in spgridview. as shown below in the image. 2 group showing with same name. could any buddy tell me what is the issue with this code.
    <SharePoint:SPGridView runat="server" ID="grdSearchResults" width="50%" AutoGenerateColumns="False" EnableViewState="false" AllowSorting="true" AllowGrouping="true" GroupField="ApplicationStatus"
    AllowGroupCollapse="true" AllowFiltering="true" FilterDataFields="ApplicationStatus"
                    PageSize="15"  AllowPaging="True" CellPadding="4" CellSpacing="0" OnPageIndexChanging="grdSearchResults_PageIndexChanging" OnSorting="grdSearchResults_Sorting"
    OnRowDataBound="grdSearchResults_RowDataBound" OnRowCreated="grdSearchResults_RowCreated" OnSelectedIndexChanged="grdSearchResults_SelectedIndexChanged"> 
                    <HeaderStyle Wrap="false" />
                    <AlternatingRowStyle CssClass="GridAlternativeStyle" />
                        <Columns>
                        <asp:TemplateField HeaderText="Details">
                        <ItemTemplate>
                        <asp:HyperLink ID="hypDetailLink" onclick=<%# "javascript:openDialog('" + Eval("TrackNo") + "')" %> runat="server"><div
    class="comntImgStyleDetails"></div></asp:HyperLink>
                        </ItemTemplate>
                        </asp:TemplateField>                   
                        <asp:BoundField DataField="Title" HeaderText="Name"></asp:BoundField>
                        <asp:BoundField DataField="TrackNo" HeaderText="Track No"  />
                        <asp:BoundField DataField="Gender" HeaderText="Gender"  />
                        <asp:BoundField DataField="DateOfBirth" HeaderText="Date Of Birth" />
                        <asp:BoundField DataField="Qualification" HeaderText="Qualification"  SortExpression="Qualification"  />
                        <asp:BoundField DataField="Major" HeaderText="Major" SortExpression="Major" />
                        <asp:BoundField DataField="Minor" HeaderText="Minor" SortExpression="Minor" />
                        <asp:BoundField DataField="Nationality" HeaderText="Nationality" SortExpression="Nationality" />
                        <asp:BoundField DataField="ExpectedSalary" HeaderText="From Salary" SortExpression="ExpectedSalary" />
                        <asp:BoundField DataField="ToSalary" HeaderText="To Salary" SortExpression="ToSalary" />
                        <asp:BoundField DataField="ApplicationStatus" HeaderText="Application Status" SortExpression="ApplicationStatus" />
                        </Columns> 
                    <EmptyDataRowStyle CssClass="GridViewItem" />
                    <EmptyDataTemplate>
                    <asp:Label ID="lblNoRecordsFound" runat="Server" Text="No Records Found"></asp:Label>
                    </EmptyDataTemplate>
                    <HeaderStyle CssClass="GridHeader" />
                    <PagerSettings FirstPageText="First" LastPageText="Last" />
                    <PagerStyle CssClass="PagerStyle"/>
                    <RowStyle CssClass="RowStyle" />
                    </SharePoint:SPGridView>
    BestRegards|SharePoint Techies

    Hello Briji,
    Thank you very much for your reply, basically I am using search API and ApplicationStatus is a manage property. Here is the sample code that I have used. But I have also tried caml query using groupby clause
    and it's working fine. Is there any way to use groupby clause in keywordquery. Because if use groupby cluase in this code so that can resolve the issue.
    var kwq = new KeywordQuery(Site);
    kwq.QueryText = string.Format("Title:\"{0}\"", keywords); kwq.ResultTypes = ResultType.RelevantResults; kwq.RowLimit = pageSize;
    kwq.StartRow = startRow;
    kwq.TrimDuplicates = true;
    kwq.HiddenConstraints = "path:\"*/User Docs*\" AND IsDocument:true";
    kwq.KeywordInclusion = KeywordInclusion.AllKeywords;
    kwq.SelectProperties.Add("ApplicationStatus");
    kwq.SelectProperties.Add("ContentClass");
    kwq.SelectProperties.Add("IsDocument");
    // Custom (they come back blank even when set as managed properties) kwq.SelectProperties.Add("IntroText");
    kwq.SelectProperties.Add("Date");
    Thanks Regards Wasi
    BestRegards|SharePoint Techies

  • Cannot send email from an iPhone to a Outlook group.

    Hi,
    My question is simple and I'd like an exactly same answer : Can iPhone users send emails from their iPhone's to one or more groups created in Outlook?
    This is my situation: our organization is using iPhone to provide email, calendar, contact, task etc. to some of their employees. We are using Airwatch MDM Agent on user's iPhone because we have an Airwatch server in place. I have an user and she has an iPhone 5 and she has created some groups in Outlook but these groups are not reflected in her Contacts in the iPhone. I have update her phone with the latest update, although I was almost sure that this was not the issue, then I've found some interesting posts on internet saying that this was a known problem for the users with the previous iOS but I thought this might has been corrected with the iOS, apparently not.
    Also I've tried ''the trick'' that is posted on several forums with the iCloud but neither so it's working. I am looking for a straight answer, if this works or not on iPhone's?
    Thanks,
    Sebastian.

    There indeed ARE apps in the app store that will do what you want.  Just search and find the one that best fits your needs.

  • Grouping and Decimal characters in rtf templates.

    Hi guys and girls,
    I’m really struggling with a problem here regarding the decimal characters for the prices in my output.
    I'm using XML Publisher 5.6.3.
    My goal is to control the grouping and decimal character from my template.
    The numbers in the XML data file can either be 10.000,00 or 10,000.00. The format is handled by the users nls_numeric_characters profile option.
    The output of the template shall be based on the locale and not the data generated by Oracle Reports. For example: Reports to US customers shall show the numbers in the following format 10,000.00. Reports to our European customers shall show the numbers in this format 10.000,00.
    How can I achieve this in my templates? Can it be achieved at all?
    Thank you in advance.
    Kenneth Kristoffersen
    Edited by: Kenneth_ on May 19, 2009 1:30 AM

    Hi,
    Thank you for your reply.
    The problem is that the report is generating the output based on the users profile option nls_numeric_characters.
    I have tried to override the users profile option in the before report trigger without any luck. I can alter selects so the query gets the numbers in the right format but then I would have to go through all queryes and reports which seem a bit wrong? Especially for the standard Oracle reports.
    BR Kenneth

  • How do I use Panorama / Tab Groups with the keyboard?

    Yes I know that CTRL-SHIFT-E opens the panorama window, and then I can use the mouse to organize my tabs into groups.
    But how do I do this with the keyboard?
    I've [http://lifehacker.com/#!5719596/switch-between-tab-groups-in-firefox-with-a-keyboard-shortcut read] [http://ubuntuforums.org/showthread.php?t=1705714 that] Ctrl-`should move me through tab groups. That doesn't work for me on my Danish keyboard. (Where the ' and ` chars are weird. But is how they are on a valid standard Danish keyboard) I've tried changing the keyboard to USA and then moving through tab groups works fine.
    In short: Pretend I don't have a mouse. How do I use Panorama / Tab Groups?

    Sorry. These are both known bugs:
    [https://bugzilla.mozilla.org/show_bug.cgi?id=587010 Bug 587010] - Add keyboard UI for manipulated groups and tabs in Tab Candy
    and
    [https://bugzilla.mozilla.org/show_bug.cgi?id=626594 Bug 626594] - shortcut for switching tab groups is badly accessible on many non-US keyboard layouts

  • Issue With Page Break When Sorting is also applied on group

    Hi
    I am facing an issue with Page break only when I have sorting applied on the grouping that I have in the template.
    The following is the sample XML
    <ROWSET>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Accounts</ORGANIZATION>
    <FULL_NAME>test1,</FULL_NAME>
    <ELEMENT_NAME>TEST BONUS</ELEMENT_NAME>
    <CLASSIFICATION>Supplemental Earnings</CLASSIFICATION>
    <RUN_VALUE>250</RUN_VALUE>
    <MONTH_VALUE>500</MONTH_VALUE>
    <QUARTER_VALUE>500</QUARTER_VALUE>
    <YEAR_VALUE>500</YEAR_VALUE>
    </ROW>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Finance</ORGANIZATION>
    <FULL_NAME>test2</FULL_NAME>
    <ELEMENT_NAME>VOLUNTARY AD AND D</ELEMENT_NAME>
    <CLASSIFICATION>Voluntary Deductions</CLASSIFICATION>
    <RUN_VALUE>5.19</RUN_VALUE>
    <MONTH_VALUE>10.38</MONTH_VALUE>
    <QUARTER_VALUE>10.38</QUARTER_VALUE>
    <YEAR_VALUE>10.38</YEAR_VALUE>
    </ROW>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Finance</ORGANIZATION>
    <FULL_NAME>test3</FULL_NAME>
    <ELEMENT_NAME>HMO MEDICAL</ELEMENT_NAME>
    <CLASSIFICATION>Pre-Tax Deductions</CLASSIFICATION>
    <RUN_VALUE>19.67</RUN_VALUE>
    <MONTH_VALUE>39.34</MONTH_VALUE>
    <QUARTER_VALUE>39.34</QUARTER_VALUE>
    <YEAR_VALUE>39.34</YEAR_VALUE>
    </ROW>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Finance</ORGANIZATION>
    <FULL_NAME>test4</FULL_NAME>
    <ELEMENT_NAME>PENSION NR DC</ELEMENT_NAME>
    <CLASSIFICATION>Pre-Tax Deductions</CLASSIFICATION>
    <RUN_VALUE>0</RUN_VALUE>
    <MONTH_VALUE>360</MONTH_VALUE>
    <QUARTER_VALUE>360</QUARTER_VALUE>
    <YEAR_VALUE>360</YEAR_VALUE>
    </ROW>
    </ROWSET>
    In the template I group the data based on CLASSIFICATION and then sort on the same column CLASSIFICATION. I have a page-break applied for every group.
    When I generate the PDF, I am not getting the page-breaks for every group. Instead some of them are displayed in the same page.
    But when I remove the sorting that I had in the template on the column CLASSIFICATION, I am getting the output in the desired way but not in a sorted order.
    kumar

    Hi All,
    I am using MS-WORD 2007 and BI Publisher desktop 10.1.3.3.3.
    When I use split-by-page-break, splitting is performed for every line .. but not for group of lines.
    Can anybody throw some light on this?
    FYI...
    I am using this code:
    ?if: position() mod 6= 0?
    ?split-by-page-break:?
    ?end if?
    (Of course with in tags)
    in G_LINES loop.
    Can anybody help me out :-(
    --Saritha                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Repeating a group element on each page of a report.

    I have a report where I need to repeat a group element on each page. The element is from the first group in the data. It is in the center group. Currently, the values from this group only print when the group changes. Everything I try does not work. Does anyone have any ideas. I am attaching a sample of the data. Along with the rtf document. I am using the BI Publisher plug in in Word to create the template.
    Data
    <?xml version="1.0" encoding="UTF-8"?>
    <POLLEDTICKETRPT>
    <USERCD>klockhar</USERCD><POLLDATE>03/24/2009</POLLDATE>
    <LIST_CENTER>
    <CENTER>
    <CENTER_CD>0039</CENTER_CD>
    <CENTER_NAME>CROSS PLAINS QUARRY</CENTER_NAME>
    <LIST_TRANSDATE>
    <TRANSDATE>
    <TRANS_DATE>03/11/2009</TRANS_DATE>
    <LIST_CUSTOMER>
    <CUSTOMER>
    <CUSTOMER_NBR>33221477</CUSTOMER_NBR>
    <CUST_NAME>TDOT DISTRICT 32-GALLATIN</CUST_NAME>
    <LIST_JOB>
    <JOB>
    <JOB_CUST>33221477</JOB_CUST>
    <JOB_CUST_NAME>TDOT DISTRICT 32-GALLATIN</JOB_CUST_NAME>
    <RGI_JOB_NBR>2008</RGI_JOB_NBR>
    <QUOTE_ID>0</QUOTE_ID>
    <LIST_COSTCODE>
    <COSTCODE>
    <COSTCODING/>
    <COST_CNTR/>
    <COST_ACCT/>
    <PROJECT_NBR/>
    <PROJECT_TASK/>
    <LIST_TICKET>
    <TICKET>
    <TICKET_NBR>5000021</TICKET_NBR>
    <ORIGIN_CD>TSCC</ORIGIN_CD>
    <REFERENCE_NBR>254510</REFERENCE_NBR>
    <VOID_IND>N</VOID_IND>
    <STATE_CD>TN</STATE_CD>
    <MEASURE_SYSTEM>S</MEASURE_SYSTEM>
    <LOCATION>THANK YOU</LOCATION>
    <PO_NBR>POS-254510-C</PO_NBR>
    <TAX_CODE>4</TAX_CODE>
    <PRODUCT_CD>000003</PRODUCT_CD>
    <HAUL_ZONE_CD/>
    <INVENTORY_STATUS>PR</INVENTORY_STATUS>
    <HAULER_NBR/>
    <RGI_TRANSPORT_CD>FU96</RGI_TRANSPORT_CD>
    <HAUL_RATE> .00</HAUL_RATE>
    <MAT_RATE> 8.50</MAT_RATE>
    <NET_TONS> -7.96</NET_TONS>
    <MAT_SALES_AMT> -67.66</MAT_SALES_AMT>
    <HAUL_AMT>0</HAUL_AMT>
    <TAX_AMT>0</TAX_AMT>
    <SEV_TAX_AMT>0</SEV_TAX_AMT>
    <SEV_TAX_IND>N</SEV_TAX_IND>
    <VALID_NET_TONS> -7.96</VALID_NET_TONS>
    <VALID_SALES_AMT> -67.66</VALID_SALES_AMT>
    <VALID_HAUL_AMT> .00</VALID_HAUL_AMT>
    <VALID_TAX_AMT> .00</VALID_TAX_AMT>
    <VALID_SEV_TAX_AMT> .00</VALID_SEV_TAX_AMT>
    <CASH_TONS> .00</CASH_TONS>
    <CASH_SALES_AMT> .00</CASH_SALES_AMT>
    <CASH_TAX_AMT> .00</CASH_TAX_AMT>
    <CASH_SEVTAX_AMT> .00</CASH_SEVTAX_AMT>
    <CASH_HAUL_AMT> .00</CASH_HAUL_AMT>
    <TRADE_TONS> -7.96</TRADE_TONS>
    <TRADE_SALES_AMT> -67.66</TRADE_SALES_AMT>
    <TRADE_TAX_AMT> .00</TRADE_TAX_AMT>
    <TRADE_SEVTAX_AMT> .00</TRADE_SEVTAX_AMT>
    <TRADE_HAUL_AMT> .00</TRADE_HAUL_AMT>
    <INTRA_TONS> .00</INTRA_TONS>
    <INTRA_SALES_AMT> .00</INTRA_SALES_AMT>
    <INTRA_TAX_AMT> .00</INTRA_TAX_AMT>
    <INTRA_SEVTAX_AMT> .00</INTRA_SEVTAX_AMT>
    <INTRA_HAUL_AMT> .00</INTRA_HAUL_AMT>
    <INTER_TONS> .00</INTER_TONS>
    <INTER_SALES_AMT> .00</INTER_SALES_AMT>
    <INTER_TAX_AMT> .00</INTER_TAX_AMT>
    <INTER_SEVTAX_AMT> .00</INTER_SEVTAX_AMT>
    <INTER_HAUL_AMT> .00</INTER_HAUL_AMT>
    <CASH_PR_TONS> .00</CASH_PR_TONS>
    <CASH_NP_TONS> .00</CASH_NP_TONS>
    <CASH_MI_TONS> .00</CASH_MI_TONS>
    <TRADE_PR_TONS> -7.96</TRADE_PR_TONS>
    <TRADE_NP_TONS> .00</TRADE_NP_TONS>
    <TRADE_MI_TONS> .00</TRADE_MI_TONS>
    <INTER_PR_TONS> .00</INTER_PR_TONS>
    <INTER_NP_TONS> .00</INTER_NP_TONS>
    <INTER_MI_TONS> .00</INTER_MI_TONS>
    <INTRA_PR_TONS> .00</INTRA_PR_TONS>
    <INTRA_NP_TONS> .00</INTRA_NP_TONS>
    <INTRA_MI_TONS> .00</INTRA_MI_TONS>
    </TICKET>
    </LIST_TICKET>
    </COSTCODE>
    </LIST_COSTCODE>
    </JOB>
    </LIST_JOB>
    </CUSTOMER>
    </LIST_CUSTOMER>
    </TRANSDATE>
    RTF Template
    DISPLAY CENTER
    S M
    FOR EACH CENTER
    SET CENTER
    CENTER: CENTER_CD CENTER_NAME
    FOR EACH TRANSDATE
    TRANSACTION DATE: TRANS_DATE
    FOR EACH CUSTOMER
    FOR EACH JOB
    Customer: JOB_CUST JOB_CUST_NAME
    Job: RGI_JOB_NBR Quote Id: QUOTE_ID
    FCC
    group COSTCODE by COSTCODING
    Cost Center: COST_CNTR Cost Acct: COST_ACCT Project: PROJECT_NBR Task: PROJECT_TASK
    Ticket Nbr     ORGCD     OrigTck     V     ST     Location     Po Nbr     Tax Cd     Prod Code     ZN     Hauler      Truck     Haul Rate     UnitPrice     Tons     SalesAmount
    F TCK#M     CODE     OTCK#     V     ST     LOCATION     PO_NBR      TC     PROD     HZ     HAULER     TRUCK     0.00     0.00     0.00 *      0.00 E

    Post Author: Guy
    CA Forum: General
    Hi,
    You should add a first level of grouping in your subreport on a fake formula field with a constant value.  Put your header and footer information in this group header and footer.  In the group option make sure to check the "repeat group header on each page option".
    This group will act as a page header + footer within your subreport.
    good luck!
    Guy

  • Sum of LineCount Including Groups and Detail Data On Each Page Used To Generate New Page If TotalPageLineCount 28

    Post Author: tadj188#
    CA Forum: Formula
    Needed: Sum of LineCount Including Groups and Detail Data On Each Page Used To Generate New Page If TotalPageLineCount > 28
    Background:
    1) Report SQL is created with unions to have detail lines continue on a page, until it reaches page footer or report footer, rather than using  subreports.    A subreport report is now essentially a group1a, group1b, etc. (containing column headers and other data within the the report    with their respective detail lines).  I had multiple subreports and each subreport became one union.
    Created and tested, already:
    1) I have calculated @TotalLineForEachOfTheSameGroup, now I need to sum of the individual same group totals to get the total line count on a page.
    Issue:
    1) I need this to create break on a certain line before, it dribbles in to a pre-printed area.
    Other Ideas Appreciated:
    1) Groups/detail lines break inconveniently(dribble) into the pre-printed area, looking for alternatives for above situation.
    Thank you.
    Tadj

    export all image of each page try like this
    var myDoc = app.activeDocument;
    var myFolder = myDoc.filePath;
    var myImage = myDoc.allGraphics;
    for (var i=0; myImage.length>i; i++){
        app.select(myImage[i]);
        var MyImageNmae  = myImage[i].itemLink.name;
        app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.high;
        app.jpegExportPreferences.exportResolution = 300;
           app.selection[0].exportFile(ExportFormat.JPG, File(myFolder+"/"+MyImageNmae+".JPEG"), false);
        alert(myImage[i].itemLink.name)

  • How do you add an iTunes Gift Card so that all purchases of any members of a Family Sharing Group can use the credit?

    How can all family members of a Family Sharing Group use a gift card that has been been applied to the iTunes master account? I added a gift card to our master iTunes account for my grandson, and even though he's a family sharing group member, none of the purchases I have approved from his requests have used the gift card credit. A search of the iTunes support site failed to turn up anything that even remotely addresses this topic. It would seem reasonable to assume that any purchase made by any family member should be able to use the gift card credit since all purchases go through the master account, but this does not appear to be the case.

    Regarding your statement about the gift card balance being used if redeemed to the organizers account - http://www.apple.com/feedback.
    Regarding redeeming the gift card to the child's account, it is the same as redeeming to yours.  You have to be signed in to the iTunes store using the child's apple ID, then redeem the gift card there.  If you already redeemed the card on your ID, you won't be able to redeem it again.
    Redeem and use iTunes Gift Cards and content codes - Apple Support

Maybe you are looking for

  • Whether Workflow Program Exit works in ABAP WebDynpro

    Hi, I have the custom  workflow in which in each task i have given a program exit to update the status into my custom tables. Now i'm in doing the change in workflow, that it should call the abap webdynpro screen, where the user decisions has to be m

  • Sql Server 2014 - Error message: Failed to read BLOB column

    Hi all,   Am experiencing this error in Microsoft SQL Server 2014 - 12.0.2000.8 (X64) Enterprise Edition (Build 7601: Service Pack 1). Error messages: Message: Failed to read BLOB column Stack:    at Microsoft.SqlServer.Replication.Snapshot.SqlServer

  • Regarding deletion of data  in Table

    hi how to delete the values in a particular record from the Database table. thanks, Sivagopal R

  • JNDI lookup for weblogic.management.MBeanHome

    Tried to do JNDI lookup for MBeanHome. It could resolve weblogic.management, but not MBeanHome. Any idea? Thank you T. Pei PS The statement and the error message: MBeanHome mBeanHome = (MBeanHome) initialContext.lookup ("weblogic.management.MBeanHome

  • Transferred old mac to new mac and now some applications not opening

    Just bought a new mac pro and transferred from my old mac pro via time machine back-up/migration assistant when setting new computer. Both old and new running snow leopard and had issues with opening imovie, etc. but has since been resolved. I am try