Addition to Query

Hi Guys,
Gordon very kindly helped another user with the query below last year, I would like to be able to add CRD1, Country to the query but am unsure of the join required in this structure, if possible I would also like to be able to make the year as a select-able parameter, does anyone have any clues or pointers to put me in the right direction.
Help as always gratefully appreciated, have had a bash myself but epically failed !
SELECT P.[CardCode],P.[CardName],
(SELECT SUM(Debit) - sum(Credit) FROM JDT1 WHERE ShortName= P.CardCode AND Year(DueDate) = 2011 AND TransType IN ('13','14')) '2011 Sales',
[1] as [Jan],
[2] as [Feb],
[3] as [Mar],
[4] as [Apr],
[5] as [May],
[6] as [Jun],
[7] as [Jul],
[8] as [Aug],
[9] as [Sep],
[10] as [Oct],
[11] as [Nov],
[12] as [Dec]
FROM (SELECT T0.CARDCODE, T0.CARDNAME, (T1.Debit - T1.Credit) AS [BAL],
MONTH(T1.Duedate) as [month]
FROM dbo.OCRD T0
LEFT JOIN dbo.JDT1 T1 ON T1.ShortName = T0.CardCode AND Year(T1.Duedate) = 2011 AND T1.TransType in ('13','14')) S
PIVOT  (SUM(S.[BAL]) FOR [month] IN
([1],[2],[3],[4],[5],[6],[7],[8],[9],[10],[11],[12])) P
Kind regards
Sean Martin

Hi Gordon,
Is it possible to get all three of these queries into one query ? I am using this for an Xcelcius Dashboard
Sales YTD by Country
Select distinct Country,sum(SalesYTD) from
(SELECT distinct T2.Country, SUM(T1.Debit) - sum(T1.Credit) as SalesYTD,T1.Shortname FROM JDT1 T1 INNER JOIN OCRD T2 ON T1.ShortName = T2.CardCode
WHERE Year(T1.RefDate) = 2011 AND T1.TransType IN ('13','14') and T2.CardType = 'C'
group by T2.Country,T1.Shortname) sYTD
group by Country
Sales MTD by Country
Select distinct Country,sum(SalesYTD) from
(SELECT distinct T2.Country, SUM(T1.Debit) - sum(T1.Credit) as SalesYTD,T1.Shortname FROM JDT1 T1 INNER JOIN OCRD T2 ON T1.ShortName = T2.CardCode
WHERE Year(T1.RefDate) = 2011
AND MONTH(T1.Refdate) = MONTH(GETDATE())
AND T1.TransType IN ('13','14')
AND T2.CardType = 'C'
group by T2.Country,T1.Shortname) sMTD
group by Country
SELECT P.[CardCode],P.[CardName], P.[Country],
(SELECT SUM(Debit) - sum(Credit) FROM JDT1 WHERE ShortName= P.CardCode AND Year(DueDate) = 2011 AND TransType IN ('13','14')) '2011 Sales',
[1] as [Jan],
[2] as [Feb],
[3] as [Mar],
[4] as [Apr],
[5] as [May],
[6] as [Jun],
[7] as [Jul],
[8] as [Aug],
[9] as [Sep],
[10] as [Oct],
[11] as [Nov],
[12] as [Dec]
FROM (SELECT T0.CARDCODE, T0.CARDNAME, T0.Country, (T1.Debit - T1.Credit) AS [BAL],
MONTH(T1.RefDate) as [month]
FROM dbo.OCRD T0
LEFT JOIN dbo.JDT1 T1 ON T1.ShortName = T0.CardCode AND Year(T1.RefDate) = 2011 AND T1.TransType in ('13','14')) S
PIVOT  (SUM(S.[BAL]) FOR [month] IN
([1],[2],[3],[4],[5],[6],[7],[8],[9],[10],[11],[12])) P
Kind r egards
Sean

Similar Messages

  • Problem text additional fields Query ad-hoc

    Dear All,
    We created a query using an additional field in the structure created P0001_AF. The fact is that our field has an associated text, which indicates how the output of our query, but the text always appears empty.
    The field has duly informed the function that is responsible for recovering the text and it works well.
    Running the standard report is generated with the query (AQA0HCM ========= XXX ....) we realized that fields of the table P0001 read well , then read it the text associated with our field of P0001_AF, the problem is that after reading this right will find again our field Z in Table P0001, and as there is, delete the recovered value above.
    This code is standard and can not be changed. We also found no customizing to generate the program otherwise.
    Do you know any solution? Is it a standard problem?
    Thanks & Regards

    hi ,
    this field might not be running in std reports but you can do below
    did you created a local field in sq02  , and add custom coding at that field according to correspondig field text.

  • Onhand materials with additional cost query

    Hello!
    I'm stuck with a query and i need help.
    The query needs to show the current onhand quantity of the material with costs , expire dates , lot numbers , warehouse codes , expire dates , arrival dates.
    The actual query is :
    SELECT
    OOD.ORGANIZATION_NAME "ORG_NAME",
    MOQD.SUBINVENTORY_CODE "WHS_CODE",
    MSI.SEGMENT1 "Item Code",
    MSI.DESCRIPTION "Item Name",
    MSI.PRIMARY_UOM_CODE "ME",
    SUM(MOQD.TRANSACTION_QUANTITY) "On Hand",
    MTLN.LOT_NUMBER "LOT",
    mln.expiration_date "Exp. date",
    mln.attribute1 "PO number",
    MAX(mmt.transaction_date) "Arrival date",
    SUM( MMT.ACTUAL_COST) "Item cost"
    --,SUM ( occe.cost_base_amount) "Etc. cost",
    --oct.trx_quantity "Quantity"
    FROM
    MTL_SYSTEM_ITEMS_B MSI
    --, oaes_cogs_cost_elements occe
    --, oaes_cogs_transactions oct
    ,ORG_ORGANIZATION_DEFINITIONS OOD
    , MTL_ONHAND_QUANTITIES_DETAIL MOQD
    ,mtl_material_transactions MMT
    ,mtl_transaction_lot_numbers mtln
    ,mtl_LOT_NUMBERS MLN
    WHERE
    MSI.ORGANIZATION_ID=OOD.ORGANIZATION_ID
    --and oct.cost_key = mln.attribute1
    --and occe.element_type = 'INVOICE'
    --and occe.cost_key = oct.cost_key
    --and mmt.transaction_id = oct.trx_id 
    --and oct.trx_type = 'RECEIPT'
    and mtln.inventory_item_id = mln.inventory_item_id
    and mtln.lot_number = mln.lot_number
    and mtln.organization_id = mln.organization_id
    AND MSI.INVENTORY_ITEM_ID=MOQD.INVENTORY_ITEM_ID
    AND MMT.TRANSACTION_ID = MTLN.TRANSACTION_ID
    AND MSI.ORGANIZATION_ID=MOQD.ORGANIZATION_ID
    AND MSI.ORGANIZATION_ID=MMT.ORGANIZATION_ID
    AND MSI.INVENTORY_ITEM_ID=MMT.INVENTORY_ITEM_ID
    AND MOQD.INVENTORY_ITEM_ID = MMT.INVENTORY_ITEM_ID
    AND MOQD.ORGANIZATION_ID = MMT.ORGANIZATION_ID
    AND  MOQD.create_transaction_id=MMT.transaction_id
    AND OOD.ORGANIZATION_ID = MMT.ORGANIZATION_ID
    AND OOD.ORGANIZATION_ID = MOQD.ORGANIZATION_ID
    GROUP BY      
    MSI.ORGANIZATION_ID,
    OOD.ORGANIZATION_NAME,
    MOQD.SUBINVENTORY_CODE,
    MSI.SEGMENT1,
    MSI.DESCRIPTION,
    MSI.PRIMARY_UOM_CODE,
    MTLN.LOT_NUMBER,   
    mln.expiration_date,
    mln.attribute1
    --,oct.trx_quantity
    ORDER BY 1, 3, 4
    If i connect oct and octe it will only show a few lines not all
    Thank you for your help in advanced ,
    Zsolt

    I tried. And here is the result :
    It seems that there is no record in table mtl_cst_actual_cost_details with the same transaction_id as in mtl_material_transactions table, but i found something strange.
    I found a data where the actual cost transaction id is equal to material transaction transfer transaction id. the date is equal also the item id BUT with the same wrong price
    I got this query from an oracle report the following queries which actually shows the correct price but only for thoose items which has got some extra cost on it :
    select teny_s6 ,
      bev_egys t1,
      bev_egys + sum(teny_ktg)/menny t_onk,
      bev_egys * menny tm1,
      bev_egys * menny + sum(teny_ktg) tm_onk
    from
    select e.cost_key        teny_s6,
      substr(g.segment2,6,1) ktg_tip,
      t.trx_quantity         menny,
      t.bev_egys             bev_egys,
      sum(e.cost_base_amount) teny_ktg
    from
      oaes_cogs_cost_elements   e,
      gl_code_combinations      g,
      (select distinct tc.cost_key, tc.trx_quantity, mmt.actual_cost bev_egys
       from oaes_cogs_transactions tc,
            mtl_material_transactions mmt
       where
         tc.trx_id = mmt.transaction_id
         and tc.trx_type = 'RECEIPT') t
    where e.cost_ccid = g.code_combination_id
      and e.element_type = 'INVOICE'
      and t.cost_key = e.cost_key
      and substr(g.segment2, 1, 5) = '26211'
    group by e.cost_key, substr(g.segment2,6,1), t.trx_quantity, t.bev_egys
    group by teny_s6, bev_egys, menny
    This query shows the right costs but only shows the netto price :
    select
      nvl(t.cost_key, ln.attribute1)      s6,
      To_Char(nvl(MAX(t.trx_date), MAX(mmt.transaction_date)), 'DD-MON-YYYY') bev_datum,
      nvl(MAX(t.trx_quantity), SUM(mmt.primary_quantity)) menny,
      mmt.transaction_uom   me,
      mmt.currency_code     devn,
      mmt.currency_conversion_rate arfolyam,
      mmt.actual_cost       bev_egys,
      mmt.actual_cost /  decode(nvl(mmt.currency_conversion_rate, 0), 0, 1,
          mmt.currency_conversion_rate) elk_dev_egys,
      mmt.actual_cost * nvl(MAX(t.trx_quantity), SUM(mmt.primary_quantity)) bem
    from
      mtl_material_transactions mmt,
      mtl_transaction_lot_numbers tln,
      mtl_lot_numbers ln,
      oaes_cogs_transactions t
    where mmt.transaction_id = tln.transaction_id
      and mmt.organization_id = tln.organization_id
      and tln.organization_id = ln.organization_id
      and mmt.inventory_item_id = tln.inventory_item_id
      and tln.inventory_item_id = ln.inventory_item_id
      and tln.lot_number = ln.lot_number
      and mmt.transaction_type_id in (18, 41)
      and nvl(ln.attribute1, '?') = t.cost_key
      and t.trx_id(+) = mmt.transaction_id
    -- AND t.cost_key(+) = :P_KALK_EGYSEG
      AND t.trx_type(+) = 'RECEIPT'
      AND t.inventory_item_id = mmt.inventory_item_id
    -- and ln.attribute1 = '9529_120-0011-1_9398'
    and ln.attribute1 = '9581_120-0164-3_9446'
    GROUP BY t.cost_key, mmt.actual_cost, -- mmt.transaction_date, t.trx_date,  
      ln.attribute1, mmt.transaction_uom, mmt.currency_code,
      mmt.currency_conversion_rate, mmt.actual_cost

  • Addition of Query to favorites in User Profile

    Hi Gurus,
    One user has asked us to Add some Queries to his Favorites in BW from Favorites of some other persons BW id.
    Is there any way to do this?
    Any quick help will be highly Appreciated !!!
    Thanks
    Nilesh Pathak

    Hi Rahul,
    So u mean to say that first we will have to confirm whether those two users have same Authorization roles or not then only by Copying Favorites will also be copied?
    Also who is Supposed to do this activity- BASIS/SECURITY?
    Thanks
    Nilesh

  • Query to find all standard invoices applied against pre-payment invoices

    Dear All,
    Please help me with the query which would list all the standard invoices applied against pre-payment invoices.
    Additionally they query show display the pre-payment invoices which are not yet applied.
    Example :
    Rec # Pre-payment inv # Inv-amount Standard Inv No. Amount Applied
    1 P001 100.00 S001 100.00
    2. P002 200.00 NULL NULL
    In the above example in record no. 1 for the pre payment invoice number P001 a standard invoice S001 is applied with same amount of 100.
    In the second record the pre payment invoice P002 is not yet applied and hence standard invoice number and amount applied are NULL.
    I need the output of the query in the above format.
    Please help me in this regard.

    Hi:
                Clearing document (AUGBL) generated against invoice with document type AB will be an option to use for reporting purpose. No matter invoice is partially cleared or fully exhausted system generates a clearing document against it. It stores the payment usage. System should check in BSID table with reference to AUGBL if there is anything left against invoice that is to be paid or if it is fully exhausted it will be present it BSAD along with it payment usage data. I hope this will help you in developing your report.
    Regards

  • Form query too long running

    I am dealing with an issue that I believe I have boiled it down to being a Forms issue. One of my developers has a form that is taking 40+ minutes to run a pretty complicated query. At first I believed that it was a query or development issue, however the same query can be ran from Toad or from SQLPlus in under a few seconds. I have even ran the query from SQLPlus on the forms server with the same speedy performance. The only environment in which this query takes almost an hour to run is if it is ran from her .FMX ... I am soooooo at a loss right now as to what I could do to fix this. Has anyone experienced something of this nature?
    Additionally the query returns ZERO results and this is an expected outcome so I don't believe it has to do with Toad buffering or SQLPlus return the rows as they are fetched. Anyway I'm at a loss and any help what-so-ever will be greatly appreciated.

    To show what can go wrong look at this simple example.
    HR@> CREATE TABLE a (ID VARCHAR2(10) PRIMARY KEY);
    Table created.
    HR@>
    HR@> insert into a select rownum from dual connect by rownum <= 1e6;
    1000000 rows created.
    HR@>
    HR@> set timing on
    HR@>
    HR@> select * from a where id = 100;
    ID
    100
    Elapsed: 00:00:00.34
    HR@>
    HR@> select * from a where id = '100';
    ID
    100
    Elapsed: 00:00:00.00
    HR@> explain plan for
      2* select * from a where id = 100
    HR@>
    HR@> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    Plan hash value: 2248738933
    | Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT  |      |     1 |     7 |   522  (12)| 00:00:07 |
    |*  1 |  TABLE ACCESS FULL| A    |     1 |     7 |   522  (12)| 00:00:07 |
    Predicate Information (identified by operation id):
    PLAN_TABLE_OUTPUT
       1 - filter(TO_NUMBER("ID")=100)Because of implicit conversion (as explain plan shows) select * from a where id = 100 takes longer than select * from a where id = '100'.

  • Media Query not working...

    My media query for screen size of a minimum of 480 px is not working.  The Global CSS takes over.  I can't find the reason why.
    It seems the brackets are in place correctly.  Can anyone see where the problem might be?  All the other queries work.
    thanks
    ____________________  sorry, it is a long CSS file
    @charset "UTF-8";
    /* Simple fluid media
       Note: Fluid media requires that you remove the media's height and width attributes from the HTML
       http://www.alistapart.com/articles/fluid-images/
    img, object, embed, video {
    /* IE 6 does not support max-width so default to width 100% */
    .ie6 img {
        width:100%;
        Dreamweaver Fluid Grid Properties
        dw-num-cols-mobile:        5;
        dw-num-cols-tablet:        9;
        dw-num-cols-desktop:    13;
        dw-gutter-percentage:    20;
        Inspiration from "Responsive Web Design" by Ethan Marcotte
        http://www.alistapart.com/articles/responsive-web-design
        and Golden Grid System by Joni Korpi
        http://goldengridsystem.com/
    .fluid {
        position: relative;
    .fluidList {
        list-style: none;
        list-style-image: none;
        margin-bottom: 0;
        margin-left: 0;
        margin-right: 0;
        padding-bottom: 0;
        padding-left: 0;
        padding-right: 0;
    /* Mobile Layout: 480px and below. */
    .gridContainer {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        clear: none;
        float: none;
    #top {
        float: left;
        text-align: left;
    .tagline {
        width: 100%;
        clear: both;
        margin-left: 0;
        /* [disabled]margin-top: 50px; */
        /* [disabled]top: 50px; */
        position: static;
        display: block;
        float: left;
        text-align: left;
        font-family: Impact, Haettenschweiler, "Franklin Gothic Bold", "Arial Black", sans-serif;
        font-style: italic;
    #mainNav {
        width: 100%;
        float: left;
        display: block;
        background-color: #30434D;
    #navMenu {
        clear: none;
        margin-left: 0;
        position: static;
        background-color: #30434D;
        font-style: normal;
        font-weight: 400;
        font-family: questrial;
        font-size: 18px;
    #menuChoices {
    .menuItem {
        color: #FFFFFF;
        font-family: questrial;
        font-size: 24px;
        font-weight: 400;
        padding-top: 0px;
        padding-bottom: 0px;
        width: 100%;
        clear: both;
        margin-left: 0;
        display: block;
        font-style: normal;
        height: 40px;
        line-height: 40px;
        float: left;
    #SEHCMbutton a:link {
        background-color: #FC6719;
        color: #FFFFFF;
        font-family: questrial;
        font-style: normal;
        font-weight: 400;
        text-align: center;
        text-decoration: none;
    #SEHCMbutton {
        float: left;
        background-color: #FC6719;
        color: #FFFFFF;
        font-family: questrial;
        font-style: normal;
        font-weight: 400;
        font-size: 18px;
        line-height: 30px;
        text-align: center;
        margin-bottom: 30px;
        display: block;
        width: 95%;
    #SEHCMbutton a:visited {
        background-color: #FC6719;
        color: #FFFFFF;
        font-family: questrial;
        font-style: normal;
        font-weight: 400;
        text-align: center;
        text-decoration: none;
    #SCVHpdfList {
        float: none;
    .fluid.SCVHsubMenuItems a:link {
        color: #303E48;
        background-color: #CED1D3;
        display: block;
        height: 30px;
        line-height: 30px;
        text-decoration: none;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 400;
    .fluid.SCVHsubMenuItems a:hover {
        color: #FFFFFF;
        background-color: #303E48;
        display: block;
        height: 30px;
        line-height: 30px;
        text-decoration: none;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    #div2 {
        display: block;
        clear: both;
        position: relative;
        float: left;
        width: 100%;
        background-color: #FC6719;
    #SubHead {
        clear: both;
        float: left;
        position: relative;
        width: 100%;
        background-repeat: repeat-x;
        background-color: #FC6719;
        text-align: center;
    #mainSubHead {
        text-align: center;
        width: 100%;
        clear: none;
        margin-left: 0;
        position: static;
        color: #FFFFFF;
        font-style: normal;
        font-weight: 400;
        font-family: questrial;
        font-size: 25px;
    #div3 {
    width: 100%;
    #div4 {
    clear: both;
    margin-left: 0;
    width: 100%;
    #mainContent {
        color: #303E48;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 200;
        font-size: 15px;
        text-align: left;
        width: 65%;
        float: left;
        clear: both;
        padding-left: 25px;
        padding-right: 0px;
        padding-bottom: 0px;
        margin-bottom: 25px;
        margin-top: 0px;
        padding-top: 25px;
    .content {
    .contentStyle {
        padding-left: 30px;
        width: 85%;
        padding-right: 20px;
        margin-left: 0;
    #mainAside {
        clear: none;
        position: static;
        height: auto;
        margin-left: auto;
        float: none;
        margin-right: auto;
    #mainFooter {
        float: left;
        clear: both;
        background-color: #06A7E2;
        display: block;
        position: relative;
        width: 100%;
    #footerLogo {
        padding-top: 15px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    #footerInfo {
        float: none;
        clear: none;
        color: #FFFFFF;
        font-style: normal;
        font-weight: 200;
        font-family: source-sans-pro;
        margin-left: auto;
        margin-right: auto;
        padding-top: 15px;
        text-align: center;
        font-size: 12px;
    #asideBrochure {
        width: 100%;
        margin-left: 0;
        clear: both;
        text-align: center;
    #asideVideo {
        width: 100%;
        margin-left: 0;
        text-align: center;
    .lightLinks {
        color: #FFFFFF;
        font-style: normal;
        font-weight: 400;
        font-family: questrial;
        font-size: 18px;
        text-align: center;
        text-decoration: none;
    .lightLinks a:link{
        color: #FFFFFF;
        font-style: normal;
        font-weight: 400;
        font-family: questrial;
        font-size: 18px;
        text-decoration: none;
    .lightLinks a:hover{
        color: #3192D8;
        font-style: normal;
        font-weight: 400;
        font-family: questrial;
        font-size: 18px;
        text-decoration: none;
        text-align: center;
    #thermalDiffLabel {
    #thermDiffLabel {
        color: #30434D;
        font-style: normal;
        font-weight: 400;
        font-family: source-sans-pro;
        padding-top: 10px;
        padding-bottom: 0px;
        font-size: 16px;
    #thermDiffPict {
    #atuLabel {
        color: #30434D;
        font-style: normal;
        font-weight: 400;
        font-family: source-sans-pro;
        font-size: 16px;
        padding-top: 10px;
    #atuPict {
    #digitalLabel {
        color: #30434D;
        font-style: normal;
        font-weight: 400;
        font-family: source-sans-pro;
        font-size: 16px;
        padding-top: 10px;
    #digitalPict {
    #navChoices {
    #navList {
        float: left;
        clear: both;
    #PAnav {
        background-color: #30434D;
        width: 100%;
        display: block;
        clear: none;
    #PAchoices {
    #PAList {
        float: left;
        background-color: #30434D;
        color: #FFFFFF;
        font-style: normal;
        font-weight: 400;
        font-family: questrial;
        font-size: 18px;
        text-align: center;
        position: relative;
        width: 100%;
    .PAmenuItem {
        display: block;
        height: 35px;
        line-height: 35px;
        letter-spacing: 0.3px;
    .PAmenuItem a:link {
        display: block;
        height: 35px;
        line-height: 35px;
        color: #FFFFFF;
        text-decoration: none;
    .PAmenuItem a:visited {
        display: block;
        height: 35px;
        line-height: 35px;
        color: #FFFFFF;
        text-decoration: none;
    .PAmenuItem a:hover {
        display: block;
        height: 35px;
        line-height: 35px;
        color: #FFFFFF;
        text-decoration: none;
        background-color: #06A7E2;
    .PAmenuItem a:active {
        display: block;
        height: 35px;
        line-height: 35px;
        color: #FFFFFF;
        text-decoration: none;
        background-color: #06A7E2;
    .SubPageContentArea {
        color: #FFFFFF;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 200;
        font-size: 14px;
        text-align: left;
        letter-spacing: 0.06em;
    #topContent {
        width: 100%;
        color: #30434D;
        font-style: normal;
        font-weight: 200;
        font-family: source-sans-pro;
        font-size: 14px;
    #pageContent {
        width: 100%;
        display: block;
        clear: both;
    #asideNavArea {
        color: #FCFDFF;
        width: 30%;
        float: left;
        clear: right;
        padding-left: 15px;
        margin-left: 5px;
        margin-top: 25px;
        margin-bottom: 15px;
        background-color: #CED1D3;
    #bottomContentArea {
        background-image: url(/images/grayTexture2.png);
        background-repeat: repeat;
        width: 100%;
        display: block;
        clear: both;
    .bottomContent {
        color: #FFFFFF;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 200;
        font-size: medium;
        padding-left: 15px;
        display: block;
    #aboutPict {
    #sectionPict {
        width: 100%;
    #sideNavHolder {
        width: 200px;
        height: 300px;
        background-color: #B6C4CE;
        -webkit-box-shadow: 3px 3px 5px #303E48;
        box-shadow: 3px 3px 5px #303E48;
    #bottomContentText {
    #sectionPict img {
        width: 100%;
    #greenMemLog img {
    #indexContentArea {
        float: left;
        width: 100%;
        display: block;
    #asideArea {
        width: 100%;
        float: left;
        background-color: #CED1D3;
        height: 200px;
        clear: both;
    #mainAnim {
        width: 100%;
        display: block;
        float: left;
        clear: both;
        height: 200px;
        margin-bottom: 15px;
    #slideShow {
        width: 100%;
    #bottomContent {
        clear: none;
        background-image: url(images/grayTexture2.png);
        background-repeat: repeat;
        display: block;
        width: 100%;
        padding-top: 25px;
        padding-bottom: 25px;
        float: left;
    #sectionPhoto {
    #sectionPhoto img {
        width: 100%;
        display: block;
        clear: both;
    #bottomContent2 {
        width: 250px;
        display: block;
        float: left;
        clear: left;
        margin-left: auto;
        margin-right: auto;
    #bottomContent1 {
        width: 90%;
        clear: none;
    #sectionVideo {
        width: 95%;
        float: left;
        margin-left: 15px;
        text-align: left;
        margin-top: 15px;
        display: block;
    #sectionVideo img  {
        display: block;
        float: left;
        width: 100%;
    #Thermalnav  {
        width: 0px;
    .Thermalmenuitem {
        display: block;
        background-color: #06A7E2;
        color: #FFFFFF;
        font-family: questrial;
        font-style: normal;
        font-weight: 400;
        text-decoration: none;
        height: 30px;
        padding-left: 15px;
        border-color: #FFFFFF;
        border-bottom-width: thin;
        border-bottom-style: dotted;
    .Thermalmenuitem a:hover {
        display: block;
        background-color: #FC6719;
        color: #FFFFFF;
        font-family: questrial;
        font-style: normal;
        font-weight: 400;
        text-decoration: none;
        height: 30px;
        padding-left: 15px;
    .Thermalmenuitem a:link {
        display: block;
        color: #FFFFFF;
        font-family: questrial;
        font-style: normal;
        font-weight: 400;
        text-decoration: none;
        height: 30px;
        padding-left: 15px;
    .Thermalmenuitem a:visited {
        display: block;
        color: #FFFFFF;
        font-family: questrial;
        font-style: normal;
        font-weight: 400;
        text-decoration: none;
        height: 30px;
        padding-left: 15px;
    .Thermalmenuitem a:active {
        display: block;
        color: #FFFFFF;
        font-family: questrial;
        font-style: normal;
        font-weight: 400;
        text-decoration: none;
        height: 30px;
        padding-left: 15px;
        background-color: #303E48;
    #ThermalList {
    #thermalLinks {
        margin-top: 15px;
        display: block;
        width: 400px;
        margin-left: auto;
        margin-right: auto;
    #ThermalLinks {
        display: block;
        margin-top: 20px;
        clear: both;
        text-align: center;
        margin-bottom: 20px;
        float: left;
        width: 100%;
    #SquareIcon {
        clear: both;
        width: 125px;
        float: left;
    #LinearIcon {
        width: 140px;
        clear: none;
        float: left;
        margin-left: 20px;
    #mainParagraph {
        color: #303E48;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 200;
        text-align: left;
        float: left;
        clear: both;
        width: 98%;
        margin-top: 15px;
        margin-bottom: 20px;
    #leftSpacer {
        width: 10%;
        height: 500px;
        display: block;
        float: left;
    #ThermalVideo {
        float: left;
        width: 100%;
        border: thin solid #000000;
    #ThermalChoose {
        text-align: left;
        background-color: #FC6719;
        color: #FDFDFD;
        display: block;
        height: 35px;
        line-height: 35px;
        font-family: questrial;
        font-style: normal;
        font-weight: 400;
        width: 100%;
        float: left;
        padding-left: 10px;
    #SquareDiffuserSection {
        width: 100%;
        background-color: #06A7E2;
        color: #FFFFFF;
        font-family: questrial;
        font-style: normal;
        font-weight: 400;
        font-size: 22px;
        text-align: left;
        display: block;
        height: 35px;
        float: left;
    #SquareDiffText {
        float: left;
        width: 90%;
        margin-left: 15px;
        margin-top: 20px;
        color: #303E48;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 200;
        margin-bottom: 25px;
        text-align: left;
    #squareDiffuserPicts {
        width: 100%;
        clear: both;
    #SCVH {
        float: none;
        width: 150px;
        margin-left: auto;
        margin-right: auto;
        clear: none;
        display: block;
    .Labels   {
        color: #06A7E2;
        font-family: questrial;
        font-style: normal;
        font-weight: 400;
        text-align: center;
        vertical-align: bottom;
    #SCAH   {
        float: none;
        clear: none;
        display: block;
        width: 150px;
        margin-left: auto;
        margin-right: auto;
    #brochureThumb   {
        visibility: hidden;
    #SquareDiffSectTitle   {
        color: #FFFFFF;
        font-family: questrial;
        font-style: normal;
        font-weight: 400;
        padding-left: 15px;
    #SquarePict   {
        clear: left;
        width: 250px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 10px;
    #brochureLink   {
        visibility: hidden;
    #bottomContent3   {
        float: left;
        width: 90%;
    .zeroMargin_mobile   {
    margin-left: 0;
    .hide_mobile   {
    display: none;
    #SCAHbutton {
        float: left;
        width: 100%;
        clear: both;
        margin-bottom: 10px;
    #SCVHbutton {
        float: left;
        clear: both;
        width: 100%;
        margin-bottom: 10px;
    #SCbutton {
        float: left;
        clear: both;
        width: 100%;
        margin-bottom: 10px;
    #SCVHbuttText {
        color: #303E48;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 200;
        width: 90%;
        clear: left;
        float: left;
        margin-left: 10px;
        text-align: center;
    #SCbuttText {
        position: relative;
        color: #303E48;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 200;
        width: 90%;
        float: left;
        clear: left;
        margin-left: 15px;
        text-align: center;
    #SC {
        width: 150px;
        margin-left: auto;
        margin-right: auto;
        float: none;
        clear: none;
        display: block;
    #SCAHbuttText {
        width: 90%;
        float: left;
        clear: left;
        margin-left: 15px;
        color: #303E48;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 200;
        text-align: center;
    #sqDiffPict {
        width: 150px;
        margin-top: 20px;
    #LAD {
        width: 150px;
        margin-left: auto;
        margin-right: auto;
        float: none;
        display: block;
    #LADbuttonText {
        float: left;
        clear: left;
        width: 90%;
        text-align: center;
    #VAC {
        width: 150px;
        margin-left: auto;
        margin-right: auto;
        float: none;
        display: block;
    #VACbuttonText {
        float: left;
        clear: left;
        width: 95%;
        text-align: center;
    #VACH {
        width: 150px;
        margin-left: auto;
        margin-right: auto;
        float: none;
        display: block;
    #VACHbuttonText {
        float: left;
        clear: left;
        width: 95%;
        text-align: center;
    #LADbutton   {
        width: 100%;
    #VACbutton {
        width: 100%;
        float: left;
        clear: left;
    #VACHbutton {
        float: left;
        clear: left;
        width: 100%;
    #LinearDiffusers {
        color: #FC6719;
        font-family: questrial;
        font-style: normal;
        font-weight: 400;
        font-size: 22px;
        margin-bottom: 12px;
        padding-left: 15px;
    #LinearDiffPict {
        margin-left: 5px;
        float: right;
        width: 45%;
    #SquareDiffPict {
        float: right;
        color: #06A7E2;
        width: 40%;
    #SquareDiffPict img {
        width: 170px;
    #LinearDiffPict img {
        width: 175px;
    #PHseries {
        width: 200px;
        float: left;
        clear: none;
        margin-bottom: 15px;
        margin-top: 20px;
        margin-left: auto;
        margin-right: auto;
    #AirTerminalPicts {
        float: left;
        clear: both;
        background-color: #E6EBEE;
        display: block;
        width: 100%;
    #PTseries {
        width: 200px;
        float: left;
        clear: left;
        margin-right: auto;
        margin-bottom: 25px;
        margin-top: 20px;
        margin-left: auto;
    #ATUpicts {
        text-align: center;
        padding-left: 10px;
        margin-bottom: 20px;
    #PHbuttonText {
        color: #303E48;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 200;
        text-align: left;
        padding-left: 12px;
    #PTbuttonText {
        color: #303E48;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 200;
        padding-left: 12px;
        text-align: left;
    #ModelPhSeries {
        padding-left: 5%;
        color: #FC6719;
        font-family: questrial;
        font-style: normal;
        font-weight: 400;
        font-size: 22px;
    #ATUVideo {
        width: 95%;
        margin-bottom: 20px;
        float: left;
        display: block;
        clear: both;
    #mainParagraphATU {
        float: none;
        width: 95%;
        padding-bottom: 15px;
        color: #303E48;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 200;
    #ATUsectionVideo {
        margin-top: 35px;
        margin-left: 10px;
        width: 100%;
        float: left;
    #mainParagraphPH {
        color: #303E48;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 200;
        margin-bottom: 15px;
    #PHatuSeries {
        float: right;
    #ATUSectTitle {
        padding-left: 10px;
        width: 95%;
        color: #FFFFFF;
        font-family: questrial;
        font-style: normal;
        font-weight: 400;
        font-size: 22px;
        line-height: 30px;
    #ATUplace {
        width: 100%;
    #ATUSection {
        float: left;
        width: 100%;
        background-color: #06A7E2;
    #PHDuct {
        margin-top: 35px;
        float: left;
        display: block;
        width: 100%;
    #PHductSection {
        float: left;
        background-color: #E6EBEE;
        clear: left;
        width: 100%;
    #PHductCaption {
        float: left;
        clear: left;
        color: #FFFFFF;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 400;
        font-size: 22px;
        width: 100%;
        background-color: #303E48;
        line-height: 50px;
    #PHaccessText {
        margin-top: 20px;
        float: left;
        width: 100%;
    #PHdownloadTitle {
        background-color: #FC6719;
        color: #FFFFFF;
        font-family: questrial;
        font-style: normal;
        font-weight: 400;
        line-height: 35px;
        font-size: 18px;
    #PHpdfList {
        color: #303E48;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 400;
        line-height: 50px;
    #PHdownloads {
        float: left;
        clear: right;
        width: 100%;
        margin-top: 35px;
        margin-bottom: 20px;
    #Ductpict {
        float: left;
        display: block;
        width: 100%;
    .PHdata a:active {
        color: #06A7E2;
        text-decoration: none;
    #PHaccessories {
        float: left;
    .PHdata a:visited {
        color: #303E48;
        text-decoration: none;
    .PHdata a:hover {
        color: #06A7E2;
        text-decoration: none;
    .PHdata a:link {
        color: #303E48;
        text-decoration: none;
    .PHdata {
        border-bottom: 6px solid #E6EBEE;
        background-color: #FFFFFF;
    #PHimage {
        width: 150px;
    #PTseries2 {
        float: right;
    #Ductpict2 {
        width: 510px;
        float: left;
    #PHductCaption2 {
        width: 510px;
        float: left;
        background-color: #303E48;
        height: 40px;
        color: #FFFFFF;
        font-family: questrial;
        font-style: normal;
        font-weight: 400;
        line-height: 40px;
        font-size: 22px;
    #DigitalContent {
        text-align: left;
        margin-top: 20px;
        background-color: #E6EBEE;
        float: left;
        width: 90%;
    #digiPicts {
        background-color: #E6EBEE;
        display: block;
        clear: left;
        width: 300px;
    #SEHCMbutton a:hover {
        background-color: #06A7E2;
        color: #FFFFFF;
        font-family: questrial;
        font-style: normal;
        font-weight: 400;
        text-align: center;
        display: block;
    #EdgeSVCH {
        float: left;
        margin-left: 10px;
    #SCVHanim   {
        float: left;
        margin-top: 35px;
        width: 95%;
        margin-bottom: 10px;
    #SVCHanimPict {
        float: left;
        width: 100%;
    #SCVHhowToButt {
        float: left;
    .fluid.SCVHsubMenuItems {
        color: #303E48;
        background-color: #CED1D3;
        display: block;
        width: 100%;
        text-align: center;
        height: 30px;
        line-height: 30px;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 200;
    #SCVHsub {
        margin-bottom: 10px;
    .fluid.SCVHsubMenuItems2  {
        background-color: #CED1D3;
        color: #303E48;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 400;
        text-align: center;
        height: 30px;
        display: block;
    .fluid.SCVHsubMenuItems2 a:link  {
        color: #303E48;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 400;
        text-decoration: none;
        line-height: 30px;
        display: block;
    .fluid.SCVHsubMenuItems2 a:hover  {
        background-color: #303E48;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 400;
        text-decoration: none;
        line-height: 30px;
        display: block;
        color: #FFFFFF;
    .fluid.SCVHsubMenuItems2 a:visited  {
        background-color: #CED1D3;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 400;
        text-decoration: none;
        line-height: 30px;
        display: block;
        color: #303E48;
    .SCVHlist a:link {
        color: #303E48;
        text-decoration: none;
        display: block;
        background-color: #FFFFFF;
        height: 30px;
        line-height: 30px;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 400;
        font-size: 16px;
        border-bottom: medium solid #E6EBEE;
    .SCVHlist a:hover {
        color: #FFFFFF;
        background-color: #06A7E2;
        display: block;
    .SCVHlist a:visited {
        color: #303E48;
        background-color: #FFFFFF;
        display: block;
    #SCVHchartPict {
        float: left;
        text-align: center;
        width: 300px;
    #SCVHdata {
        margin-top: 25px;
        text-align: left;
        width: 90%;
        float: left;
    #SCVHbottomData {
        margin-top: 15px;
        width: 300px;
        float: left;
    #SCVHchartPict img {
    #SCVHchartGraphic {
        width: 100%;
    #SCVHdimGraphic {
        width: 100%;
    #SCVHdimenPict {
        margin-top: 20px;
        width: 300px;
    #SCVHvideo {
        width: 95%;
    #LADimages {
        float: right;
        width: 200px;
        margin-left: 20px;
    #LAD3D {
        float: right;
    #LADusePict {
        float: right;
        clear: right;
        margin-top: 50px;
    #MidContent {
        float: left;
        text-align: left;
        margin-top: 20px;
    #CoAnda {
        margin-top: 25px;
        border: thin solid #FFFFFF;
        float: left;
        width: 300px;
        padding-left: 15px;
    #VACinduction {
        float: right;
        margin-left: 10px;
    #PAproducts {
        width: 100%;
        clear: both;
        display: block;
        float: left;
    #SlideShow {
        width: 100%;
        float: left;
        height: 400px;
        display: block;
    #ProductWrapper {
        width: 300px;
        display: block;
        clear: both;
        float: left;
    .fluid.PromoBlocks {
        width: 225px;
        display: block;
        clear: both;
    #SQdiffPict {
        width: 100%;
    #ATUpict {
        width: 100%;
    #DigiDiffPict {
        width: 100%;
    @media only screen and (min-width:480px){
    #PAproducts {
        width: 100%;
        clear: both;
        display: block;
        float: left;
    #mainAnim {
        width: 100%;
        display: block;
        float: left;
        clear: both;
        height: 270px;
        margin-bottom: 15px;
    /* Tablet Layout: 481px to 768px. Inherits styles from: Mobile Layout. */
    @media only screen and (min-width: 600px) {
    .fluid.SCVHsubMenuItems2 a:link  {
        color: #303E48;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 400;
        text-decoration: none;
        line-height: 30px;
        display: block;
    .fluid.SCVHsubMenuItems2 a:hover  {
        background-color: #303E48;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 400;
        text-decoration: none;
        line-height: 30px;
        display: block;
        color: #FFFFFF;
    .fluid.SCVHsubMenuItems2  {
        background-color: #CED1D3;
        color: #303E48;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 400;
        text-align: left;
        height: 30px;
        display: block;
        padding-left: 10px;
        font-size: 13px;
        width: 240px;
        float: left;
        clear: right;
    #DigitalPicts {
        float: left;
        display: block;
    #SEHCMbutton {
        float: left;
        margin-left: 15px;
        background-color: #FC6719;
        color: #FFFFFF;
        font-family: questrial;
        font-style: normal;
        font-weight: 400;
        font-size: 18px;
        line-height: 40px;
        text-align: center;
        display: block;
        width: 62%;
    .gridContainer {
        width: 100%;
        padding-left: 0%;
         padding-right: 0%;
        clear: none;
        float: none;
        margin-left: auto;
    #top {
        text-align: left;
        float: left;
    .tagline {
    width: 100%;
    clear: both;
    margin-left: 0;
    #menuChoices {
    #div2 {
        width: 100%;
        background-color: #FC6719;
        height: 380px;
    #SubHead {
        position: static;
        height: 40px;
        width: 100%;
    #mainSubHead {
        clear: both;
        margin-left: 0;
        position: static;
        height: 40px;
        width: 100%;
        line-height: 40px;
    #div3 {
    width: 100%;
    #div4 {
    clear: both;
    margin-left: 0;
    width: 100%;
    #mainContent {
    .content {
    .contentStyle {
        width: 88.6792%;
        margin-left: 0;
    #mainAside {
        margin-left: auto;
        position: static;
        height: auto;
        display: block;
        width: 700px;
        margin-right: auto;
    #mainFooter {
    #footerLogo {
        margin-left: 25px;
        text-align: left;
    #footerInfo {
        margin-left: 25px;
        text-align: left;
        width: 400px;
    #asideBrochure {
        clear: both;
        float: left;
    #asideVideo {
        margin-left: 0;
        float: left;
        text-align: center;
    .lightLinks {
        text-align: center;
        line-height: 16px;
    #thermalDiffLabel {
    #thermDiffLabel {
        width: 330px;
        padding-top: 10px;
        padding-right: 10px;
        padding-bottom: 10px;
        padding-left: 10px;
    #thermDiffPict {
    #atuLabel {
        padding-top: 10px;
        padding-right: 10px;
        padding-bottom: 10px;
        padding-left: 10px;
        width: 330px;
    #atuPict {
    #digitalLabel {
        width: 330px;
        padding-top: 10px;
        padding-right: 10px;
        padding-bottom: 10px;
        padding-left: 10px;
    #digitalPict {
    .mainSubHead {
        color: #FFFFFF;
        background-color: #F60;
        display: block;
        font-family: questrial;
        font-size: 30px;
        margin: auto;
        height: 80px;
        line-height: 40px;
        font-style: normal;
        font-weight: 400;
    #navList {
    #PAnav {
    #PAchoices {
    #PAList {
        position: relative;
        margin-left: auto;
        margin-right: auto;
    .PAmenuItem {
        float: left;
        position: relative;
        display: block;
        width: 115px;
        clear: right;
        font-size: 13px;
        padding-left: 10px;
    .SubPageContentArea {
        padding-bottom: 20px;
        text-align: left;
    #topContent {
    #pageContent {
        width: 100%;
    #asideNavArea {
    #bottomContentArea {
    .bottomContent {
    #aboutPict {
    #sectionPict {
    #sideNavHolder {
    #bottomContentText {
    #indexContentArea {
    #asideArea {
        line-height: 30px;
        width: 150px;
        height: 700px;
        float: left;
        clear: none;
    #mainAnim {
        height: 425px;
        width: 100%;
        float: left;
    #bottomContent {
    #sectionPhoto {
    #bottomContent2 {
        float: left;
        clear: left;
        width: 250px;
        margin-left: auto;
        margin-right: auto;
    #bottomContent1 {
        float: left;
        width: 575px;
        margin-left: 5px;
    #sectionVideo {
        width: 580px;
        float: left;
        margin-left: 15px;
    .mainParagraphs {
        color: #303E48;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 200;
        font-size: 15px;
        text-align: left;
    #ThermalList {
    #thermalLinks {
    #ThermalLinks {
        float: left;
        clear: both;
        width: 150px;
        margin-bottom: 10px;
    #SquareIcon {
        width: 100px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 15px;
        float: none;
    #LinearIcon {
        float: none;
        width: 120px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 15px;
        clear: left;
    #mainParagraph {
        float: left;
        clear: both;
        width: 98%;
        margin-top: 0px;
    #leftSpacer {
    #ThermalVideo {
        width: 70%;
        margin-top: 20px;
        margin-left: 15px;
        border-width: thin;
    #ThermalChoose {
        margin-top: 0px;
        text-align: center;
        line-height: 1.5em;
        height: 50px;
    #SquareDiffuserSection {
        height: 35px;
    #SquareDiffText {
        width: 575px;
        margin-top: 20px;
        margin-bottom: 25px;
        margin-left: 15px;
        padding-left: 8px;
        text-align: left;
    #squareDiffuserPicts {
        width: 600px;
        margin-top: 15px;
        margin-left: 15px;
    #SCVH {
        display: block;
        width: 150px;
        float: none;
        margin-left: 0px;
        margin-right: 0px;
    #SCVHanim   {
        float: left;
        margin-top: 35px;
        width: 50%;
    .fluid.SCVHsubMenuItems {
        color: #303E48;
        background-color: #CED1D3;
        display: block;
        height: 30px;
        line-height: 30px;
        width: 220px;
        font-size: 14px;
        text-align: left;
        padding-left: 10px;
        float: left;
        clear: right;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    #SCVHdimGraphic {
        width: 600px;
    #SCVHdimenPict {
        margin-top: 20px;
    #SCAH {
        display: block;
        width: 150px;
        margin-left: 0px;
        margin-right: 0px;
    #SCbutton {
        float: left;
        width: 175px;
        clear: right;
        position: relative;
        margin-left: 25px;
    #PHDuct {
        margin-top: 35px;
        float: left;
        display: block;
    #PHductCaption2 {
        width: 510px;
        float: left;
        background-color: #303E48;
        height: 40px;
        color: #FFFFFF;
        font-family: questrial;
        font-style: normal;
        font-weight: 400;
        line-height: 40px;
        font-size: 22px;
    #brochureThumb {
        visibility: visible;
    #SquareDiffSectTitle {
        width: 500px;
        height: 35px;
        text-align: left;
        color: #FFFFFF;
        margin-left: 20px;
        line-height: 35px;
    #SquarePict {
        width: 225px;
        margin-bottom: 10px;
        margin-left: auto;
        margin-right: auto;
        clear: left;
    #LADbutton   {
        width: 175px;
        float: left;
    #brochureLink {
        visibility: visible;
    #bottomContent3 {
        width: 595px;
        float: left;
        clear: left;
        margin-left: 15px;
    .hide_tablet {
    display: none;
    .zeroMargin_tablet {
    margin-left: 0;
    #SCVHbutton {
        float: left;
        width: 175px;
    #SCVHbuttText {
        color: #303E48;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 200;
        width: 90%;
        float: left;
        clear: right;
        text-align: left;
    #SCAHbuttText {
        float: left;
        clear: right;
        width: 90%;
        color: #303E48;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 200;
        position: relative;
        text-align: left;
    #SCbuttText {
        position: relative;
        color: #303E48;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 200;
        width: 90%;
        float: left;
        clear: none;
        display: block;
        text-align: left;
    #SC {
        width: 150px;
        float: none;
        margin-left: 0px;
        margin-right: 0px;
    #SCAHbutton {
        float: left;
        width: 175px;
        clear: right;
        position: relative;
        margin-left: 25px;
        margin-bottom: 20px;
    #sqDiffPict {
        width: 190px;
        margin-top: 20px;
    #LinearDiffusers {
        color: #FC6719;
        font-family: questrial;
        font-style: normal;
        font-weight: 400;
        font-size: 22px;
        padding-left: 15px;
        margin-bottom: 12px;
        float: left;
        width: 100%;
    #VACbutton {
        width: 175px;
        float: left;
        clear: right;
        margin-left: 25px;
    #VACHbutton {
        float: left;
        width: 175px;
        clear: right;
        margin-left: 25px;
    #VACbuttonText {
        float: left;
        clear: left;
        width: 90%;
        padding-left: 10px;
        text-align: left;
    #LADbuttonText {
        float: left;
        clear: left;
        width: 90%;
        padding-left: 10px;
        text-align: left;
    #VACHbuttonText {
        float: left;
        clear: left;
        width: 90%;
        padding-left: 10px;
        text-align: left;
    #LAD {
        width: 150px;
        margin-left: 0px;
    #VAC {
        width: 150px;
        margin-left: 0px;
    #VACH {
        width: 150px;
        margin-left: 0px;
    #linearPict {
        float: left;
        clear: right;
        margin-left: 0px;
    #linearPict img {
        width: 150px;
        display: block;
    #SquareDiffPict {
        color: #06A7E2;
        float: right;
        text-align: center;
        width: 25%;
    #LinearDiffPict {
        margin-left: 5px;
        float: right;
        width: 25%;
    #ATUsectionVideo {
        margin-top: 35px;
        width: 95%;
        float: left;
        margin-left: 40px;
    #ATUVideo {
        width: 62%;
        margin-bottom: 20px;
        float: left;
        clear: right;
        margin-left: 15px;
    #mainParagraphATU {
        float: left;
        width: 200px;
    #PHseries {
        width: 200px;
        float: left;
        margin-left: 10%;
        clear: none;
        margin-bottom: 25px;
        margin-top: 20px;
    #PHductCaption {
        float: left;
        clear: left;
        color: #FFFFFF;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 400;
        font-size: 22px;
        width: 100%;
        background-color: #303E48;
        line-height: 50px;
    #PHdownloads {
        float: left;
        clear: right;
        width: 250px;
        margin-left: 30px;
        margin-top: 35px;
    #PHatuSeries {
        float: right;
    #PHimage {
        width: 225px;
    #PHaccessText {
        margin-top: 20px;
    #ATUSectTitle {
        padding-left: 40px;
    #PTseries2 {
        float: right;
    #PTseries {
        width: 200px;
        float: left;
        clear: right;
        margin-right: auto;
        margin-bottom: 25px;
        margin-top: 20px;
        margin-left: 35px;
    #digiPicts {
        float: right;
        background-color: #E6EBEE;
    #DigitalContent {
        text-align: left;
        margin-top: 20px;
        background-color: #E6EBEE;
        margin-left: 30px;
    #Ductpict {
        width: 511px;
        float: left;
        display: block;
        clear: right;
    #Ductpict2 {
        width: 510px;
        float: left;
    #DigitalPicts {
        float: right;
    #SCVHsub {
        width: 100%;
        margin-bottom: 15px;
    #EdgeSVCH {
        float: right;
        margin-left: 20px;
    #SVCHanimPict {
        float: left;
        width: 100%;
    #SCVHchartPict {
        float: right;
        margin-left: 20px;
        width: 350px;
    #SCVHbottomData {
        margin-top: 15px;
        width: 600px;
        float: left;
        clear: both;
    #SCVHvideo {
        width: 100%;
    #CoAnda {
        margin-top: 25px;
        border: thin solid #FFFFFF;
        float: left;
        width: 500px;
        padding-left: 15px;
    #SlideShow {
        width: 100%;
        height: 455px;
        float: left;
    #ProductWrapper {
        width: 600px;
        margin-left: auto;
        margin-right: auto;
        display: block;
    .fluid.PromoBlocks {
        width: 180px;
        float: left;
        margin-top: 20px;
        margin-left: 15px;
        clear: none;
        display: block;
    #SQdiffPict {
        display: block;
    #ATUpict {
        display: block;
    #DigiDiffPict {
        width: 100%;
        display: block;
    /* additional media query of min 600px*/
    /* Desktop Layout: 769px to a max of 1232px.  Inherits styles from: Mobile Layout and Tablet Layout. */
    @media only screen and (min-width:800px){
    .gridContainer {
        width: 100%;
        max-width: 1920px;
        padding-left: 0;
        padding-right: 0;
        margin: auto;
        clear: none;
        float: none;
        margin-left: auto;
    #top {
        float: left;
    .tagline {
    width: 79.3103%;
    margin-left: 1.2987%;
    clear: none;
    #mainNav {
    .menuItem {
        clear: none;
        background-size: auto 40px;
        padding-bottom: 0px;
        padding-right: 0px;
        padding-top: 0px;
    #top img {
        text-align: left;
        background-repeat: no-repeat;
        float: left;
        margin-left: 10px;
    #SEHCMbutton {
        float: left;
        margin-left: 35px;
        background-color: #FC6719;
        color: #FFFFFF;
        font-family: questrial;
        font-style: normal;
        font-weight: 400;
        font-size: 18px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        display: block;
        width: 62%;
    #div2 {
        text-align: center;
        width: 100%;
        background-color: #FC6719;
        background-repeat: repeat-x;
        clear: both;
    #SlideShow {
        width: 100%;
        height: 555px;
        float: left;
    #SubHead {
        position: static;
        margin-left: auto;
        height: 45px;
        width: 100%;
        top: 586px;
        left: 0px;
        background-color: #FC6719;
    #mainSubHead {
        margin-left: 0;
        clear: both;
        position: static;
        height: 45px;
        width: 100%;
        #SCVHsub {
        width: 100%;
        margin-bottom: 15px;
    .fluid.SCVHsubMenuItems {
        color: #303E48;
        background-color: #CED1D3;
        display: block;
        height: 30px;
        line-height: 30px;
        font-size: 15px;
        text-align: left;
        padding-left: 15px;
        width: 250px;
        #SCVHlist a:link {
        color: #303E48;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 400;
        font-size: 16px;
        text-decoration: none;
    #SCVHpdfList {
        float: none;
        color: #303E48;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 400;
    #SCVHlist {
        height: 25px;
        color: #303E48;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 400;
        font-size: 16px;
        background-color: #FFFFFF;
        border-bottom-style: solid;
        border-bottom-color: #E6EBEE;
    #SCVHanim   {
        float: left;
        margin-top: 35px;
        width: 511px;
    #SCVHdimGraphic {
        float: right;
    #SCVHdimenPict {
        margin-top: 20px;
        width: 800px;
        float: right;
    #div3 {
    width: 100%;
    #div4 {
    margin-left: 1.2987%;
    clear: none;
    width: 29.8701%;
    #mainContent {
    .content {
    .contentStyle {
        width: 55%;
        margin-left: 0;
        float: left;
    #mainAside {
        position: relative;
        width: 325px;
        float: left;
        clear: right;
        display: block;
        margin-left: 30px;
    #mainFooter {
    #footerLogo {
        margin-left: 25px;
    #footerInfo {
        line-height: 30px;
        display: block;
        height: 30px;
        float: none;
        clear: none;
        text-align: left;
        width: 400px;
    #asideBrochure {
        width: 325px;
        margin-left: 0;
        clear: none;
        float: left;
    #asideVideo {
        width: 325px;
        margin-left: 0;
        float: left;
    .mainSubHead {
        color: #FFFFFF;
        background-color: #F60;
        display: block;
        font-family: questrial;
        font-size: 30px;
        margin: auto;
        height: 40px;
        line-height: 40px;
        font-style: normal;
        font-weight: 400;
    .lightLinks {
    #thermalDiffLabel {
    #thermDiffLabel {
        width: 280px;
        padding-top: 10px;
        padding-right: 10px;
        padding-bottom: 10px;
        padding-left: 10px;
    #thermDiffPict {
    #atuLabel {
        padding-top: 10px;
        /* [disabled]padding-right: 10px; */
        padding-bottom: 10px;
        padding-left: 10px;
        width: 280px;
    #atuPict {
    #digitalLabel {
        padding-top: 10px;
        padding-right: 10px;
        padding-bottom: 10px;
        padding-left: 10px;
        width: 280px;
    #digitalPict {
        padding-bottom: 2px;
    #navChoices {
    #navList {
    #PAnav {
        background-color: #30434D;
        display: block;
    #PAchoices {
    #PAList {
        display: block;
        margin-left: auto;
        margin-right: auto;
        float: left;
    .PAmenuItem {
        padding-left: 10px;
        width: 150px;
        font-size: 15px;
    .mainSubHead {
        color: #FFFFFF;
        display: block;
        font-family: questrial;
        font-size: 30px;
        margin: auto;
        font-style: normal;
        font-weight: 400;
    #AboutUsText {
        padding-left: 15px;
        width: 92%;
    #pageContent {
    #asideNavArea {
    #bottomContentArea {
    .bottomContent {
    #aboutPict {
    #sectionPict {
    #sideNavHolder {
    #bottomContentText {
    #indexContentArea {
    #asideArea {
        height: 725px;
        width: 275px;
        float: left;
        clear: right;
        padding-bottom: 25px;
    #mainAnim {
        width: 100%;
        display: block;
        height: 555px;
        float: left;
    #bottomContent {
    #sectionPhoto {
    #bottomContent1 {
        float: left;
        width: 800px;
        margin-left: 15px;
    #bottomContent2 {
        clear: right;
        margin-left: 20px;
        float: left;
    #sectionVideo {
        margin-left: 5%;
        width: 800px;
    #ThermalList {
    #thermalLinks {
    #ThermalLinks {
        width: 200px;
        text-align: center;
    #SquareIcon {
        margin-left: auto;
        margin-right: auto;
        width: 125px;
        display: block;
        float: none;
    #LinearIcon {
        margin-left: auto;
        margin-right: auto;
        display: block;
        width: 145px;
        float: none;
        clear: both;
    #mainParagraph {
        color: #303E48;
        font-family: source-sans-pro;
        font-style: normal;
        font-weight: 200;
        text-align: left;
        float: none;
        clear: both;
        width: 754px;
        margin-top: 10px;
        margin-bottom: 40px;
    #leftSpacer {
    #ThermalVideo {
        display: block;
        float: left;
        clear: right;
        margin-top: 20px;
        width: 534px;
        margin-left: 30px;
        margin-right: auto;
    #ThermalChoose {
    #SquareDiffuserSection {
        display: block;
        float: left;
        clear: both;
        width: 100%;
        padding-left: 5%;
        height: 35px;
    #SquareDiffText {
        width: 750px;
        float: left;
        margin-left: 5%;
        margin-bottom: 30px;
        text-align: left;
    #squareDiffuserPicts {
        margin-left: 5%;
        width: 800px;
        margin-bottom: 30px;
        clear:

    Too much to check through but You are using the following conditionals:
    1) Standard CSS.
    This is the CSS that will load at any res. If you set a style here it will load in the two conditional's below as well.
    2) @media screen and (min-width:990px)
         This is telling the browser to load these styles when the screen is over 990px's wide but you have not excluded anything using max-width so any styles from 1) will be carried over. You could try overwriting them with      !important but its messy and would make more sense to extract the styles from 1)
    3) @media screen and (min-width:1100px)
         This is telling the browser to load these styles when the screen is over 1100px but like 2) you are not ignoring anything under this width so it will pick up your base styles as well as your conditional styles from 2)

  • BEx Analyzer / authorizations / query search

    Hello everyone
    Today I have a problem with my authorizations for the the BEx Analyzer.
    The technical name of my InfoArea is VCOPA.
    I have a number of queries with the technical name VCOPA_MM001 / VCOPA_M01_X0001 / and so on.
    When I open the BEx analyzer and search for queries (wildcard *) I get only my queries with the technical name VCOPA. So far so good... Unfortunately the Bex search results display additionally several query views (like 0D_DX_M01_Q0001_V05) and that is bad. So how can I stop this?
    My authorization settings:
    S_RS_COMP
    ACTVT: 03, 16
    RSINFOAREA: VCOPA*
    RSINFOCUBE: VCOPA*
    RSZCOMPID: VCOPA*
    RSZCOMPTP: QVW, REP
    S_RS_COMP1
    ACTVT: 03, 16
    RSZCOMPID: VCOPA*
    RSZCOMPTP: QVW, REP
    RSZOWNER: *
    Thanks in advance..
    Regards, Alex
    Edited by: Alexander Stettler on Mar 5, 2010 2:50 PM

    The roles are customized...
    In addition to the listed authorization objekts (s_rs_comp / s_rs_comp1) I have the following objekts in use:
    S_RFC
    ACTVT : 16                                                                         
    RFC_NAME:  *                                                                          
    RFC_TYPE:   FUGR                                                          
    S_TCODE
    TCD: RRMX
    S_GUI
    ACTVT: 60, 61
    S_USER_AGR
    ACTVT:     03
    ACT_GROUP: *
    S_RS_AUTH
    BIAUTH: 0BI_ALL
    S_RS_FOLD
    SUP_FOLDER: X
    S_RS_XCLS
    ACTVT: 16                                                                         
    RSXCLSID: VCOPA*
    RSZOWNER: *
    Edited by: Alexander Stettler on Mar 10, 2010 11:25 AM

  • Date in service - AP to FA Mass addition

    Hi
    In R12, when we ran the AP to FA Mass addition and querying mass addition in FA, system is showing new assets with date in service as the date on which Mass addition was run. Is that the intended functionality..?
    Can we change the date in service as invoice date by default through mass addition program..?
    regards
    Ahsan

    Please check in KON* series table in SE16N transaction. I guess KOHN table may help you out. You can see other similar tables.
    In any one of the table you will find validity data.

  • Mass addition transfer

    Hello,
    What are the conditions to transfer items to FA?
    Is that the combination that have same category in FA?
    If the line in distribution in AP is matched to PO and has an item that defined "Fixed asset" - it will transfer to FA ?
    thanks,
    Kobi Idah

    For doing the Mass Transfer in Fixed Assets the following conditions is to be met.
    a) Define the Asset Category for that Asset.
    b) If it is matched to PO, then in the Charge account you need to choose the Asset Clearing Account only.
    c) When the Invoice been matched to Purchase Order, make ensure from the Show->Field-> Track as Asset need to be enabled otherwise the payables distributions will not be identified as a 'Asset'.
    d) Validate an Invoice
    e) Account an Invoice.
    f) Payable Transfer to General Ledger.- Report Need to be run.
    g) Run the Report
    -- Mass Addition Create
    -- Mass Addition Create Report.
    Navigate to Fixed Asset Module.
    Go to Prepare Mass Addition.
    Query with your asset book / Invoice Number.
    Change the status from Queue to Post.
    Go to Post Mass Addition.
    Choose your Asset Book and submit the concurrent.
    Make ensure these concurrents should complete Normal.
    I have also mentioned the Accountign entries at different stages--
    In Purchasing Module
    Expense accural a/c Dr
    Asset Clearing a/c.
    In Payables Module
    Asset Cost a/c
    To Liability
    In Fixed Assets Module
    Asset Clearing a/c
    To Asset Cost

  • 3.x query performance on upgraded BI 7.0 - worse than before upgrade?

    Dear Sirs,
    upgraded a BI system this weekend from 3.x to 7.0. Purely technical upgrade so no upgrade to 7.0 queries yet.
    What we have seen is that queries with "loose"/lagre selection ? (e.g all plant .. all months) etc have worse performance than before upgrade.
    One example: a query went from 26second to 60 seconds to run.
    Small selection (e.g one specific plant and date) is same run time.
    Has anyone had similar experience?
    Is BI 7.0 optimized for 7.0 queries, or are there any performance parameteres I could look at.
    Best regards,
    Jørgen

    Check this thread:
    Performance problems on NW04S/BI 7.0 after the upgrade
    Additional:
    [Improving Query Performance by Effective and Efficient Maintenance of Aggregates|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/906de68a-0a28-2c10-398b-ef0e11ef2022]
    BI Performance Improvements in 7.0
    BI Performance Improvements in 7.0
    Hope this helps.
    Regards
    Andreas

  • Use LINQ to extract the data from a file...

    Hi,
    I have created a Subprocedure CreateEventList
    which populates an EventsComboBox
    with a current day's events (if any).
    I need to store the events in a generic List communityEvents
    which is a collection of
    communityEvent
    objects. This List needs to be created and assigned to the instance variable
    communityEvents.
    This method should call helper method ExtractData
    which will use LINQ to extract the data from my file.
    The specified day is the date selected on the calendar control. This method will be called from the CreateEventList.
    This method should clear all data from List communityEvents.  
    A LINQ
    query that creates CommunityEvent
    objects should select the events scheduled for selected
    day from the file. The selected events should be added to List
    communityEvents.
    See code below.
    Thanks,
    public class CommunityEvent
    private int day;
    public int Day
    get
    return day;
    set
    day = value;
    private string time;
    public string Time
    get
    return time;
    set
    time = value;
    private decimal price;
    public decimal Price
    get
    return price;
    set
    price = value;
    private string name;
    public string Name
    get
    return name;
    set
    name = value;
    private string description;
    public string Description
    get
    return description;
    set
    description = value;
    private void eventComboBox_SelectedIndexChanged(object sender, EventArgs e)
    if (eventComboBox.SelectedIndex == 0)
    descriptionTextBox.Text = "2.30PM. Price 12.50. Take part in creating various types of Arts & Crafts at this fair.";
    if (eventComboBox.SelectedIndex == 1)
    descriptionTextBox.Text = "4.30PM. Price 00.00. Take part in cleaning the local Park.";
    if (eventComboBox.SelectedIndex == 2)
    descriptionTextBox.Text = "1.30PM. Price 10.00. Take part in selling goods.";
    if (eventComboBox.SelectedIndex == 3)
    descriptionTextBox.Text = "12.30PM. Price 10.00. Take part in a game of rounders in the local Park.";
    if (eventComboBox.SelectedIndex == 4)
    descriptionTextBox.Text = "11.30PM. Price 15.00. Take part in an Egg & Spoon Race in the local Park";
    if (eventComboBox.SelectedIndex == 5)
    descriptionTextBox.Text = "No Events today.";

    Any help here would be great.
    Look, you have to make the file a XML file type -- Somefilename.xml.
    http://www.xmlfiles.com/xml/xml_intro.asp
    You can use NotePad XML to make the XML and save the text file.
    http://support.microsoft.com/kb/296560
    Or you can just use Notepad (standard), if you know the basics of how to create XML, which is just text data that can created and saved in a text file, which, represents data.
    http://www.codeproject.com/Tips/522456/Reading-XML-using-LINQ
    You can do a (select new CommunityEvent) just like the example is doing a
    select new FileToWatch and load the XML data into the CommunityEvent properties.
    So you need to learn how to make a manual XML textfile with XML data in it, and you need to learn how to use LINQ to read the XML. Linq is not going to work against some  flat text file you created. There are plenty of examples out on Bing and Google
    on how to use Linq-2-XML.
    http://en.wikipedia.org/wiki/Language_Integrated_Query
    <copied>
    LINQ extends the language by the addition of query
    expressions, which are akin to
    SQL statements, and can be used to conveniently extract and process data from
    arrays, enumerable
    classes, XML documents,
    relational databases, and third-party data sources. Other uses, which utilize query expressions as a general framework for readably composing arbitrary computations, include the construction of event handlers<sup class="reference" id="cite_ref-reactive_2-0">[2]</sup>
    or
    monadic parsers.<sup class="reference" id="cite_ref-parscomb_3-0">[3]</sup>
    <end>
    <sup class="reference" id="cite_ref-parscomb_3-0"></sup>

  • Obiee 11g non-conforming dimensions and nQSError 14025

    Does anyone know how to configure the 11g repository for non-conforming dimensions? This worked fine in 10g. I have upgraded the repository to 11g and it doesn't work anymore. I am receiving the error [nQSError: 14025] No fact table exists at the requested level of detail. I have tried building a simple test subject area and testing different configurations, but I have not had any success.
    Edited by: user10715047 on Jan 27, 2011 12:33 PM

    Ah, I love answering my own questions. :/
    The only way I could make this work was a follows...
    1. Make sure you have a level-based dimension for each of your logical table dimensions (both conforming and non-conforming).
    2. For the fact table measures, set the levels as you did in 10g with the non-conforming dimensions at the Grand Total logical level for each measure.
    3. For the fact table LTSs, set the logical level in the Content tab to the dimension's lowest level for each conforming dimension (leave the non-conforming dimensions level blank).
    Unfortunately, the query generated in 11g will add an additional sub-query to the mix even though it doesn't appear to have any benefit. Therefore in 10g, if you have two logical fact tables with non-conforming dimensions, three sub-queries were required to create the result set. Two queries for the facts and their related dimensions and a final full outer join to stitch the results together. In 11g, you have one query without the measures, two queries with the measures, and the final outer join.
    I am talking to Oracle support about this issue, but I haven't made much progress yet. I asked development to confirm my repository design and they say it checks out. They indicated that the additional query is a design change/enhancement. I am not getting a warm and fuzzy on this one. I'll post back if I make any progress.
    Oh, did I mention that this change has broken queries where I attempt to combine fields from two non-conforming dimensions?!? This worked fine in 10g.

  • NLS_DATE_FORMAT setting on my local pc

    Hello, I am running into a small problem and need some expertise on how to fix it. I am making the following SP call from my Database server:
    SQL> exec SP_STAGED_CUSTOMER_PROCESS;
    PL/SQL procedure successfully completed.
    As you can see, it works fine.
    The NLS_DATE_FORMAT on the server is set to
    DD-MM-YYYY HH24:MI:SS
    When I run the same SP on my local machine against the same database, I get the following error:
    SQL> exec SP_STAGED_CUSTOMER_PROCESS;
    BEGIN SP_STAGED_CUSTOMER_PROCESS; END;
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "CRM.SP_STAGED_CUSTOMER_PROCESS", line 479
    ORA-20001: Error processing Additional Info query "UPDATE CUSTOMER SET
    ANNIVERSARY_DATE='19-May-01' WHERE CUSTOMER_ID = 10009": -1843:ORA-01843: not a
    valid month:50001001510100000230
    ORA-06512: at line 1
    If I do a select SYSDATE from DUAL on my local pc, it is in the following format:
    09/19/2006 09:56:21
    I need it to be the same as the Database server setting of:
    DD-MM-YYYY HH24:MI:SS
    Is there somewhere on my local pc that I can specify this or have it use the server side value. I can not be doing an alter session each time to correct this. There must be a config file somewhere where I can define this.
    David

    It seems the NLS_DATE_FORMAT setting on your server and the database are different. If it's not explicitly set in the database, the default value is dictated by the NLS_TERRITORY setting. If you set the format in the server environment, the default format is overwritten by this environment variable. However, when you call a SP from a client, there is no environment variable setting, so the database format comes into play. Make sure why you need to set the environment variable. If you don't need it, remove it and modify the SP to accept the date value according to the database format. Then it should work whether you run the program from the server or the client.

  • Counting records in a specific time block per day

    I have a scenario where I need to find the number of records in a table called 'DEALS', for a specific time frame (in this case 8am until 9am where the date field stores dates in the following format '06/01/2005 08:23:35'). I need to run this query to include each business day between two dates (ie., june 1, 2005 until current_date).
    In addition, this query has to take into account only Users that are ACTIVE in a second table called 'DEALUSERS'
    I have worked out the following to get the overall record set, but it is not narrowed down to just the specified time frame, nor does it produce the count for each day's 8:00-9:00 time frame.
    SELECT fdls.DEALDATE, user.USERROLE
    FROM DEALS dls, DEALUSER user
    WHERE dls.CLIENTUSERID = user.USERID
    AND user.STATUS = 'ACTIVE'
    AND dls.PROXYTRADEFLAG = 'YES'
    AND dls.MODENAFLAG = 'YES'
    AND TRUNC(dls.DEALDATE)
    BETWEEN TO_DATE('06/01/2004 08:00:00', 'MM-DD-YYYY HH:MI:SS')
    AND current_date
    I tried using the following at the end of the above query, but it doesn't work - any ideas? :confused:
    AND TO_CHAR(EXTRACT('HOUR' FROM DEALTS)) = '8'
    Can someone help, pls :o

    Not quite sure what you ultimately want here, but something like:
    SELECT TRUNC(dls.dealdate, 'hh'), user.userrole, count(*)
    FROM deals dls, dealuser user
    WHERE dls.clientuserid = user.userid AND
          user.status = 'ACTIVE' AND
          dls.proxytradeflag = 'YES' AND
          dls.modenaflag = 'YES' AND
          dls.dealdate BETWEEN TO_DATE('06/01/2004 08:00:00', 'MM-DD-YYYY HH:MI:SS') AND current_date and
          TO_CHAR(dls.dealdate, 'hh24') = '08'
    GROUP BY TRUNC(dls.dealdate, 'hh'), user.userroleshould give you some ideas.
    HTH
    John

Maybe you are looking for