Help with record selection/grouping

I am trying to create a report as follows, but am running into some problems with my selection/grouping:
Data Structure (each line is a separate record; each employee has 2 records)
Employee             TaskID      TaskStatus           Marker         Date Modified
1                               A                CLOSED             x
1                               B                OPEN                  N/A
2                               A                CLOSED              y
2                               B                OPEN                 N/A
3                               A                CLOSED             x
3                               B                CLOSED            N/A
4                               A                CLOSED             y
4                               B                CLOSED           N/A
Report Requirements
I want a report that displays only employee number and the date that Task B was completed for all employees, and I want these records grouped based on Task B's Task Status (no problem.  I did this).
However, I want to sub-group these Task B records (within Task Status) by the Marker field for Task A records!  (I can't figure this out?  If I only pull in Task B records, how can I compare what the associated employee has as a marker for their Task A record?)
Again, I only want to display data from the employee's Task B record, while subgrouping on a field value from the empoyee's Task A record.  The report would be structured as follows:
Task B (OPEN), with Task A - Marker (x)
                 {Date Modified}
Task B (OPEN), with Task A - Marker (y)
                 {Date Modified}
Task B (CLOSED), with Task A - Marker (x)
                {Date Modified}
Task B (CLOSED), with Task A - Marker (y)
                  {Date Modified}
Thanks.
Gary

The easiest way would be to use an SQL Command that returns both the Task A and Task B data on one record.  Something like (MS SQL):
select b.employee, b.taskid as task_b, b.task_status_b, b.marker as marker_b, b.date_modified as date_modified_b,
    a.taskid as task_a, a.task_status_a, a.marker as marker_a, a.date_modified as date_modified_a
from table a, table b
where a.employee = b.employee
and a.taskid = 'A'
and b.taskid = 'B'
HTH,
Carl

Similar Messages

  • I need help with a SELECT query - help!

    Hello, I need help with a select statement.
    I have a table with 2 fields as shown below
    Name | Type
    John | 1
    John | 2
    John | 3
    Paul | 1
    Paul | 2
    Paul | 3
    Mark | 1
    Mark | 2
    I need a query that returns everything where the name has type 1 or 2 but not type 3. So in the example above the qery should bring back all the "Mark" records.
    Thanks,
    Ian

    Or, if the types are sequential from 1 upwards you could simply do:-
    SQL> create table t as
      2  select 'John' as name, 1 as type from dual union
      3  select 'John',2 from dual union
      4  select 'John',3 from dual union
      5  select 'Paul',1 from dual union
      6  select 'Paul',2 from dual union
      7  select 'Paul',3 from dual union
      8  select 'Paul',4 from dual union
      9  select 'Mark',1 from dual union
    10  select 'Mark',2 from dual;
    Table created.
    SQL> select name
      2  from t
      3  group by name
      4  having count(*) <= 2;
    NAME
    Mark
    SQL>Or another alternative if they aren't sequential:
    SQL> ed
    Wrote file afiedt.buf
      1  select name from (
      2    select name, max(type) t
      3    from t
      4    group by name
      5    )
      6* where t < 3
    SQL> /
    NAME
    Mark
    SQL>Message was edited by:
    blushadow

  • Need some help with the Select query.

    Need some help with the Select query.
    I had created a Z table with the following fields :
    ZADS :
    MANDT
    VKORG
    ABGRU.
    I had written a select query as below :
    select single vkorg abgru from ZADS into it_rej.
    IT_REJ is a Work area:
    DATA : BEGIN OF IT_REJ,
            VKORG TYPE VBAK-VKORG,
            ABGRU TYPE VBAP-ABGRU,
           END OF IT_REJ.
    This is causing performance issue. They are asking me to include the where condition for this select query.
    What should be my select query here?
    Please suggest....
    Any suggestion will be apprecaiated!
    Regards,
    Developer

    Hello Everybody!
    Thank you for all your response!
    I had changes this work area into Internal table and changed the select query. PLease let me know if this causes any performance issues?
    I had created a Z table with the following fields :
    ZADS :
    MANDT
    VKORG
    ABGRU.
    I had written a select query as below :
    I had removed the select single and insted of using the Structure it_rej, I had changed it into Internal table 
    select vkorg abgru from ZADS into it_rej.
    Earlier :
    IT_REJ is a Work area:
    DATA : BEGIN OF IT_REJ,
    VKORG TYPE VBAK-VKORG,
    ABGRU TYPE VBAP-ABGRU,
    END OF IT_REJ.
    Now :
    DATA : BEGIN OF IT_REJ occurs 0,
    VKORG TYPE VBAK-VKORG,
    ABGRU TYPE VBAP-ABGRU,
    END OF IT_REJ.
    I guess this will fix the issue correct?
    PLease suggest!
    Regards,
    Developer.

  • Help with records.

    Im nw to java and I need help with records. Can you please tell me how to make a record called car, store the make and model and display them like the structure chart below( yes its a structure chart).
    ================ main =========
    =============== / === \ ========
    ============= / ======= \ ======
    =========== / ========== \ =====
    ========= get car ======= display =
    ========= record ===============
    ======== / ===== \ ==============
    ======= / ======= \ =============
    ====== / ========= \ ============
    === get car ======= get car ========
    === make ======== model ========
    ==============================

    welcome to world of java...
    here is a skeleton structure of what you want..
    class myCar{
    public static void main(String args[]){
    myCar car = new myCar();
    car.displayCar();
    System.out.println(getCarRecord());
    void displayCar(){
    // display your car image here
    String getCarMake(){
    // returns String containing make of car
    String getCarModel(){
    // returns String containing model of car
    String getCarRecord(){
    return getCarMake() + " " +getCarMake();
    maybe this helps

  • Help with Keywording a group of Images

    I need help applying keywords to a group of selected images. For some reason I can't get this to work. I've done it before and now it won't work. Here is what I'm doing. I've selected a group of images in a project by using shift and clicking the first and last image I want and using comand to select images that are not next to each other. They all show up in the viewer and the thin white lines show up around the images in the browser. Now I go and add a keyword. It doesn't seem to matter if I use the Keyword control bar buttons or if I type in a key word in the bar in the lower right hand side, the same thing happens. The keyword is only being applied to the primary selection and not the whole group. Why isn't this working? I'm sure I'm missing something simple, but it's starting to drive me crazy. Any help with this would be great thanks.
    -Matthew

    You have switched 'toggle primary only' on. To turn it off click on the button with a square in it at the bottom of the screen or press 's'

  • Help with a select statement from a SQL Server within a DTS !!

    Hello Gurus!
    I help with the script bellow, when I run it within DTS (in SQL Sever 2000), I got the error Invalid number/or not a valid month.
    Please bellow with the WHERE CLASUE '08/01/2001' AND '03/09/2002'
    And in the other hand I change this forma to '01-AUG-01' AND
    '03-MAR-2002', the DTS start and run witha successful messages, but it does not returns row, which is wrong.
    Somebady please help!
    Thanks Gurus!
    GET Total ANIs with Trafic By Area Code
    select
         substr(b.ct_num, 0,3) as Area_Codes,
         COUNT(DISTINCT B.CT_NUM) AS ANIS
    from
         wasabi.v_trans A,
         wasabi.V_Sur_Universal B,
         wasabi.V_Sub C,
         wasabi.V_Trans_Typ D
    where
         D.Trans_typ = A.Trans_Typ AND
         A.Sur_ID = B.Sur_ID AND
         C.Sub_ID = A.Sub_ID AND
         a.trans_stat != 'X' AND     
         a.Trans_DTTM >= '08/01/2001'AND
         a.Trans_DTTM < '03/09/2002 AND
         B.AMA3 = 'PHONE1'
         AND C.SUB_ID not in (100117)
    GROUP BY
         substr(b.ct_num, 0,3)
    ORDER BY
         Area_Codes

    I think that you need a "to_date" function eg
    change '08/01/2001' to to_date('08/01/2001','dd/mm/yyyy')

  • Is it possible to make a search help with dynamic  selection table?

    Hi Experts,
    Is it possible to create search helps with dynamic seletion tables means
    i dont know the selection table names at the time of creation of search help.
    These tables will be determined at runtime.
    if yes, Please give an idea how to create and pass the table names at runtime.
    Thanks
    Yogesh Gupta

    Hi Yogesh,
    Create and fill your itab and show it with FM F4IF_INT_TABLE_VALUE_REQUEST
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'field to return from itab'
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
          dynprofield     = 'field on your screen to be filled'
          stepl           = sy-stepl
          window_title    = 'some text'
          value_org       = 'S'
        TABLES
          value_tab       = itab
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
    Darley

  • Help with recording measurement

    Hi all,
    I'm trying to take voltage/current/resistance measurements from a Keithely sourcemeter and plot them on charts. There's also the option to record the measurements upon pressing the "record" button, which then would prompt the user for a path name. After the 'record' button is pressed again, the file is saved and closed. During the entire process of openning file, recording, and closing the file, the measurements should be plotted onto the charts uninterrupted.
    I've used a state machine pattern, with the value of the 'record' button as input to decide the state transitions, used in a "select" gate. However, when I run the VI, the state transitions never happens, pausing the execution and probing the value of the button yields that its output stays the same regardless of the state of the button.
    I've set the operation of the button to "switch when pressed". 
    I know this is a common task, but I'm pretty stumped about how to fix this. The VI file is attached, any pointer is appreciated.
    Thanks
    Solved!
    Go to Solution.
    Attachments:
    read_current_save.vi ‏36 KB

    The typedef enum will solve the problem of the names.  Once all sources (controls or constants) connected to the state wire in every case and outside the loop are all copies of the same typedef, the names will return.
    What happened was that you changed one of the enums or created a new one.  It had a different data type.  Yes, it was still an enum and still produced a U16 integer, but because the items in it were different, it was considered a different data type.  When two different data types are connected to the wire going to the selector terminal, the case structure attempts to find the common "denominator", in this case a U16 integer, but not the enum.
    I converted the enum constant you had with "record" and other values to a type def and copied it several times.  When I replaced all the other state enums with that type def enum, the names came back.
    Lynn

  • Search help with new selection within if more than 500 entries

    Dear all,
    I created a new search help and this works fine ... If I compare my search help with a default search help from SAP,  I have 1 small feature that not seems to work ... With the default one, it is possible to make a new selection within the search help by clicking on the arrow down :
    If I look at my search help, I don't have the possibility to make a new selection :
    Does anyone how this can be done ?
    Thanks in advance !
    Greetz,
    Kurt.

    HI,
    Here are the general steps to get you started.
    1. Identify the search help being used (on the ship-to-party field, F1 then Tech Info). I believe you want the collective search help SD_DEBI.
    2. Create your own search help with the fields you want to use with SE11, like 'ZDEBI' as an example.
    3. Append 'ZDEBI' to SD_DEBI. (Goto->Append Search Help).
    4. Clean things up by "Hiding" the old search help. In the 'Included Search Help' tab of the collective search help SD_DEBI, there is a check box that you can tick to hide included search helps.

  • Crystal 2008 problem with Record Select Expert

    I had a Crystal 10 report that worked fine where the Record Select Expert had a database table ID equal to a parameter... it was only supposed to report on 1 record.  After using Crystal 2008 on the same report it completely ignores this Select Record Expert setting.  I have tried deleting and re-adding the parameter.  It acts like there is no record select setting.
    Here is the formula that it shows me it is using:    {Components.ID} = {?@ID}
    If I go to the application opening the same record on a different machine using the old crystal, it works fine.
    This used to only show me the 1 record, now it shows me the report on every record in the table.  I tried upgrading the report to a 2008 report and it still does the same thing.  The report filter no longer works.   Do I need to do something different to select only 1 record in 2008 ?
    After installing Crystal 2008 on my computer none of my reports work correctly anymore - all of them are ignoring my Record Select ...they worked fine before I installed 2008.  The reports are older reports... they worked fine when I had Crystal XI R2 installed.  This all started after installing Crystal 2008
    Thanks,
    Jeff
    Edited by: Jeff Dressing on Aug 27, 2008 12:06 PM

    Hello, Jeff;
    I noticed the Record Selection Formula uses a Stored Procedure parameter:
    {Components.ID} = {?@ID}
    A parameter created in the report (not by a stored procedure) would be:
    {Components.ID} = {?ID}
    A report based on a Stored Procedure does not need a Selection formula for the Stored Procedure parameter. Connecting to the Stored Procedure automatically creates the parameter in the report and the value is passed automatically when the report is run.
    Does the report work in the Crystal Reports 2008 designer?
    Open the report in the designer. Go to Database Set Datasource location. Are the properties of the database at runtime still the same as what is saved in the report.
    If the database is different at runtime, just as a test, change to the new database in a copy of your original report. Do a Database|Verify Database. Does it come back the "Database is uptodate" or are there changes?
    Elaine

  • Help with GBIC selection LH vs ZX

    Dear Support,
    I now have the estimated Attenuation values from our fibre provider, and wondering if anyone could help with determining if I can utilise the cheaper (LH modules) across the 20 & 15 KM streches.
    Thanks in advance (many thanks to Josh for helping out with my previous post - below)
    HQ to DC1 = 1310nm: 2.5dB, 1550nm: 2.2dB.
    DC1 to DC2 = 1310nm: 14.5dB , 1550nm: 13.1dB
    DC2 to HQ = 1310nm: 10.1dB, 1550nm: 9dB
    =========================================
    Dear Support,
    Sorry but new to optical networking, but need some assistance on an upgrade that we are performing.
    We currently have two data centres that hold our servers and are planning to upgrade from LES circuits to Gigabit links, and triangulate our topology. (effectively a ring topology)
    I have already spoken to our proposed fibre provider and they have provide me with rough distances, but due to one of the data centres being more than 10 km away we need to use ZX based GBICs. Summary of distances below;
    HQ -> dc1 (1 – 2 km)
    HQ -> dc2 (15 km)
    Dc1 -> dc2 (20 km)
    From our HQ to dc1 we will use LH (via a GLC-LH-SM= in a 2970G) and a to dc2 we will use ZX (via a GLC-ZX-SM= in another 2970G)
    From DC1 to HQ we will use LH (via a WS-G5486 in a 7204VXR) and a to dc2 we will use ZX (via a WS-G5487 in another 7204VXR)
    From DC2 to HQ we will use ZX (via a WS-G5487 in a 7204VXR) and a to dc1 we will use ZX (via a WS-G5487 in another 7204VXR)
    Hope this doesn’t confuse things more.
    Now to the question.
    From the Cisco web site it mentions the following;
    When shorter distances of single-mode fiber are used, it might be necessary to insert an in-line optical attenuator in the link to avoid overloading the receiver:
    • A 5-dB or 10-dB inline optical attenuator should be inserted between the fiber-optic cable plant and the receiving port on the Cisco 1000BASE-ZX GBIC at each end of the link whenever the fiber-optic cable span is less than 15.5 miles (25 km).
    We haven’t yet had the fibre survey performed, but once they have advised me of the attenuation on the link, how should I calculate what level of “in-line optical attenuator” I should need or should all reputable fibre providers advise me of this detail.
    Thanks in advance.
    Regards, Adrian

    Summary of Optical Levels:
    GLC-ZX-SM:
    Transmit: 0 to +5
    Receive: -23 to 0
    GLC-LH-SM:
    Transmit: -9.5 to -3
    Receive: -20 to -3
    G5486:
    Transmit: -9.5 to -3
    Receive: -20 to -3
    G5487:
    Transmit: 0 to 5.2
    Receive: -24 to -3
    Given the above:
    HQ -> DC2: maximum receive level will be 5-10.1 = -5.1 dB, which is OK for the G5487
    HQ <- DC2: maximum receive level will be 5.2-10.1 = -4.9 dB, which is OK for the GLC-ZX-SM
    HQ -> DC1: maximum receive level will be -3-2.5 = -5.5 dB, which is OK for the G5486
    HQ <- DC1: maximum receive level will be -3-2.5 = -5.5 dB, which is OK for the GLC-LH-SM
    DC1 -> DC2:maximum receive level will be 5.2-14.5 = -9.3 dB, which is OK for the G5487
    DC1 <- DC2:maximum receive level will be 5.2-14.5 = -9.3 dB, which is OK for the G5487
    Therefore, you do not need attenuators anywhere.
    Now, to your next queston. If you used the LH modules, you the minimum possible receive levels now become:
    HQ -> DC2: minimum possible receive level will be -9.5-10.1 = -19.6 dB, which is only just OK for the G5486
    HQ <- DC2: minimum possible receive level will be -9.5-10.1 = -19.6 dB, which is only just OK for the G5486
    DC1 -> DC2: minimum possible receive level will be -9.5-14.2 = -24 dB, which is too low for the G5486
    DC1 <- DC2: minimum possible receive level will be -9.5-14.2 = -24 dB, which is too low for the G5486
    Therefore, my recommendation is to stick with the ZX modules for these links.
    Hope that helps - pls rate the post if it does.
    Paresh

  • Need Help With A Select Staement

    This is my data set.
    OPEN_DATE CLOSE_DATE
    02-JAN-08 02-JAN-08
    02-JAN-08 02-JAN-08
    02-JAN-08 02-JAN-08
    02-JAN-08 03-JAN-08
    04-JAN-08 04-JAN-08
    05-JAN-08
    07-JAN-08
    07-JAN-08 07-JAN-08
    07-JAN-08 07-JAN-08
    08-JAN-08 08-JAN-08
    08-JAN-08
    02-JAN-08
    02-JAN-08
    08-JAN-08
    09-JAN-08
    I'm need totals for those that are opened and closed per day. Here is what I'm trying to achieve...
    Status Value DATE
    Open 6 02-JAN-08
    Closed 3 02-JAN-08
    Open 0 03-JAN-08
    Closed 1 03-JAN-08
    Open 1 04-JAN-08
    Closed 1 04-JAN-08
    Open 0 05-JAN-08
    Closed 1 05-JAN-08
    Open 3 07-JAN-08
    Closed 2 07-JAN-08
    Open 3 08-JAN-08
    Closed 1 08-JAN-08
    Open 1 09-JAN-08
    Close 0 09-JAN-08
    This select statement gets me close but the problem is how to get the ones that should have a Value of 0
    select 'Open' "Status", count(*) "Value", to_char(open_date, 'DD-MON-YY') "DATE"
    from usar_log2
    where open_date IS NOT NULL and
    to_char(open_date, 'MON-YY') = to_char(sysdate, 'MON-YY')
    and (USAR_status like 'CLOSED' or usar_status like 'OPENED' or USAR_Status like 'WORKING')
    group by to_char(open_date, 'DD-MON-YY')
    UNION
    select 'Closed' "status", count(*) "Close", to_char(close_date, 'DD-MON-YY')
    from usar_log2
    where close_date is not null and
    to_char(close_date, 'MON-YY') = to_char(sysdate, 'MON-YY')
    and (USAR_status like 'CLOSED' or usar_status like 'OPENED' or USAR_Status like 'WORKING')
    group by to_char(close_date, 'DD-MON-YY')
    order by 3, 1 desc;
    The above select statement's results...
    Status Value DATE
    Open 6 02-JAN-08
    Closed 3 02-JAN-08
    Closed 1 03-JAN-08
    Open 1 04-JAN-08
    Closed 1 04-JAN-08
    Closed 1 05-JAN-08
    Open 3 07-JAN-08
    Closed 2 07-JAN-08
    Open 3 08-JAN-08
    Closed 1 08-JAN-08
    Open 1 09-JAN-08
    But I need this instead...
    Status Value DATE
    Open 6 02-JAN-08
    Closed 3 02-JAN-08
    <----- Open 0 03-JAN-08
    Closed 1 03-JAN-08
    Open 1 04-JAN-08
    Closed 1 04-JAN-08
    <----- Open 0 05-JAN-08
    Closed 1 05-JAN-08
    Open 3 07-JAN-08
    Closed 2 07-JAN-08
    Open 3 08-JAN-08
    Closed 1 08-JAN-08
    Open 1 09-JAN-08
    <----- Close 0 09-JAN-08
    Any help would be more appreciative.

    Thank you...You all are great. While I'm still
    looking at the various ways you all provided, from
    what I have looked at so far, they don't address
    05-JAN-08 which has a null open date. There are
    three possiblities, maybe four. Does 05-JAN-08 have a null open date in the data you supplied?
    You showed us:
    OPEN_DATE CLOSE_DATE
    02-JAN-08 02-JAN-08
    02-JAN-08 02-JAN-08
    02-JAN-08 02-JAN-08
    02-JAN-08 03-JAN-08
    04-JAN-08 04-JAN-08
    05-JAN-08
    07-JAN-08
    07-JAN-08 07-JAN-08
    07-JAN-08 07-JAN-08
    08-JAN-08 08-JAN-08
    08-JAN-08
    02-JAN-08
    02-JAN-08
    08-JAN-08
    09-JAN-08
    which looks like they all have open dates.
    Perhaps, if there was null open dates you should have used [code][/code] or [pre][/pre] tags around your data so it looked something like
    OPEN_DATE CLOSE_DATE
    02-JAN-08 02-JAN-08
    02-JAN-08 02-JAN-08
    02-JAN-08 02-JAN-08
    02-JAN-08 03-JAN-08
    04-JAN-08 04-JAN-08
              05-JAN-08
    07-JAN-08
    07-JAN-08 07-JAN-08
    07-JAN-08 07-JAN-08
    08-JAN-08 08-JAN-08
    08-JAN-08
    02-JAN-08
    02-JAN-08
    08-JAN-08
    09-JAN-08And then it would have required the ANSI outer join in my query to allow for outer joining on more than one column...
    SQL> ed
    Wrote file afiedt.buf
      1  WITH t as (SELECT to_date('02-JAN-2008','DD-MON-YYYY') as open_date, to_date('02-JAN-2008','DD-MON-YYYY') as closed_date from dual union all
      2             SELECT to_date('02-JAN-2008','DD-MON-YYYY'), to_date('02-JAN-2008','DD-MON-YYYY') from dual union all
      3             SELECT to_date('02-JAN-2008','DD-MON-YYYY'), to_date('02-JAN-2008','DD-MON-YYYY') from dual union all
      4             SELECT to_date('02-JAN-2008','DD-MON-YYYY'), to_date('03-JAN-2008','DD-MON-YYYY') from dual union all
      5             SELECT to_date('04-JAN-2008','DD-MON-YYYY'), to_date('04-JAN-2008','DD-MON-YYYY') from dual union all
      6             SELECT NULL, to_date('05-JAN-2008','DD-MON-YYYY') from dual union all
      7             SELECT to_date('07-JAN-2008','DD-MON-YYYY'), NULL from dual union all
      8             SELECT to_date('07-JAN-2008','DD-MON-YYYY'), to_date('07-JAN-2008','DD-MON-YYYY') from dual union all
      9             SELECT to_date('07-JAN-2008','DD-MON-YYYY'), to_date('07-JAN-2008','DD-MON-YYYY') from dual union all
    10             SELECT to_date('08-JAN-2008','DD-MON-YYYY'), to_date('08-JAN-2008','DD-MON-YYYY') from dual union all
    11             SELECT to_date('08-JAN-2008','DD-MON-YYYY'), NULL from dual union all
    12             SELECT to_date('02-JAN-2008','DD-MON-YYYY'), NULL from dual union all
    13             SELECT to_date('02-JAN-2008','DD-MON-YYYY'), NULL from dual union all
    14             SELECT to_date('08-JAN-2008','DD-MON-YYYY'), NULL from dual union all
    15             SELECT to_date('09-JAN-2008','DD-MON-YYYY'), NULL from dual)
    16      ,all_dates as (select minod+rownum-1 as dt
    17                     from   dual, (select min(open_date) minod, max(open_date) maxod from t)
    18                     connect by rownum <= maxod-minod+1)
    19      ,stat as (select 'open' as status from dual union all select 'closed' from dual)
    20  -- END OF DATA
    21  select all_dates.dt, stat.status, sum(decode(decode(stat.status, 'open', t.open_date, t.closed_date), all_dates.dt, 1, 0)) as cnt
    22  from   stat JOIN all_dates ON (1=1)
    23         LEFT OUTER JOIN t ON (NVL(t.open_date, NVL(t.closed_date, all_dates.dt)) = all_dates.dt)
    24  group by all_dates.dt, stat.status
    25* order by 1,2 desc
    SQL> /
    DT        STATUS        CNT
    02-JAN-08 open            6
    02-JAN-08 closed          3
    03-JAN-08 open            0
    03-JAN-08 closed          0
    04-JAN-08 open            1
    04-JAN-08 closed          1
    05-JAN-08 open            0
    05-JAN-08 closed          1
    06-JAN-08 open            0
    06-JAN-08 closed          0
    07-JAN-08 open            3
    07-JAN-08 closed          2
    08-JAN-08 open            3
    08-JAN-08 closed          1
    09-JAN-08 open            1
    09-JAN-08 closed          0
    16 rows selected.
    SQL>Make your requirements clear in the future.

  • Help with recording midi instruments : two sources at the same time

    Hi -
    I'm trying to learn Logic after using Performer for years, and though the audio is fine, I just can't get the midi to work doing something really simple.
    I have a MOTU midi express XT, which is an 8 channel midi interface. Piano plugged into channel 1, drumkit plugged into channel 2. I want to play both and record both, which should be easy, but I am stuck at the first hurdle.
    So, new project, add a midi track for the piano, and select XT1 and plays and records fine. Add a track for the drums, and try to put it onto XT2, and now the keyboard plays the drums when I press the keys. Likewise, the drum kit triggers the piano. I have tried unchecked auto demix by channel but that doesn't help.
    This ought to be trivial, but even with the manual, I cannot figure out how to simply choose midi input and output per track.
    If anyone has a tip I would be very grateful!
    thanks
    Steve

    goldensteve wrote:
    I believe that I have followed your instructions, but I am seeing the same result: both midi sources trigger (and record) each other. Hmm.
    It looks like the midi channels are not set properly or something like that...
    What kind of midi tracks have you created - Software Instrument tracks - if yes set their midi channels to 1 and 2 ? If you have created Standard Instrument objects and want to use them with external sound device check the midi channels of these Standard Instrument objects again in the Environment of in the Arrange track Inspector - they must be set to ch.1 and ch.2.
    If you use a Multi Instrument set it to ch.All in the Environment and create tracks for its sub midi channels 1 & 2 in the Arrange.
    The Autodemix by midi channel Logic setting must be enabled as Bee Jay mentioned as well both tracks must be armed "R" !
    Go to Click & Ports Environment layer and have a look at the "Input View" Monitor to check the incoming midi channels of the external instruments. Play a piano note(let's say C2) on the first instrument which is set to ch.1 - you must see some midi message like:
    "1 C2 56" in the Monitor - which means ch1. Note=C2 vel=56.
    Trigger a drum note (A2 for example) on the second instrument (Drums Set) on ch.2, so it must be shown as "2 A2 78" which confirms that the midi channel i.s OK. If not, then you must check you hardware settings again etc.
    PS. If these re-instructions do not solve your problem, please provide a download link of this Logic project song so we can check up it. Make a short description on which tracks you try to record or just name them "Piano" & "Drum Set" something like that.
    !http://img59.imageshack.us/img59/4967/aglogo45.gif!

  • Help with nested select query

    Here is my code , i dont have any experience with writing the nested sql , i got the below code , which needs to be modified adding a case statement which will show util_rate for 2 conditions
    1. given in where condition ( to_char(time_stamp,'HH24') >= '09' and to_char(time_stamp,'HH24') <= '19')
    2.Apposite to the condition above (to_char(time_stamp,'HH24') < '09'and to_char(time_stamp,'HH24') > '19')
    could anybody please help me in adding the 2nd condition to the below query , please share any documentation you have for learning how to write nested sql,
    Thank you
    select device,time_stamp,
    sum(ActiveHRS)/sum(AvailHRS) as RATE
    from
    select device,time_stamp,
    case when usage >0 then 1
    else 0 end as ActiveHRS,
    '1' as AvailHRS
    from
    select device,time_stamp,
    sum(case
    when state = 9 then 0
    when state = 0 then 0
    else 1 end) as usage
    from A
    where to_char(time_stamp,'HH24') >= '09'
    and to_char(time_stamp,'HH24') <= '19'
    and to_char(time_stamp, 'D') in (2,3,4,5,6)
    group by device, time_stamp
    group by device,time_stamp

    Here is the DDL :
    desc rumi_all
    Name     Null   Type    
    RUMI_DEVICE      VARCHAR2(20)
    STATE         NUMBER(38) 
    TIME_STAMP      DATE     
    LOCATION       VARCHAR2(50) Here is some sample data :
    RUMI_DEVICE   STATE   TIME_STAMP    LOCATION
    10.45.28.86     0     15-JUN-10      WA-102
    10.45.28.51     0     15-JUN-10      WA-102
    10.45.28.63     0     15-JUN-10      WA-102
    10.45.29.47     9     15-JUN-10      WA-120I used the below query to get the util for the hours 9am - 7pm
    select rumi_device,time_stamp,
    sum(ActiveHRS)/sum(AvailHRS) as RATE
    from
    select rumi_device,time_stamp,
    case when usage >0 then 1
    else 0 end as ActiveHRS,
    '1' as AvailHRS
    from
    select rumi_device,time_stamp,
    sum(case
    when state = 9 then 0
    when state = 0 then 0
    else 1 end) as usage
    from rumi_all
    where to_char(time_stamp,'HH24') >= '09'
    and to_char(time_stamp,'HH24') <= '19'
    and to_char(time_stamp, 'D') in (2,3,4,5,6)
    group by rumi_device, time_stamp
    group by rumi_device,time_stamp
    Acquired Out for the above query :
    RUMI_DEVICE      TIME_STAMP     UTIL_RATE
    10.45.29.47     15-JUN-10       0.234
    10.45.28.63     15-JUN-10             0.123
    10.45.29.47     15-JUN-10             0.987
    10.45.29.47     16-JUN-10             0.23Desired output :I want 2 extra columns which shows util rate for the above condition i.e 9am - 7pm(core hours) and also opposite to that condition after 7pm - before 9am(say, non core hours)
    Desired out put :
    RUMI_DEVICE TIME_STAMP  Core_Util_Rate   Non_Core_UtilRate
    10.45.29.4    15-JUN-10       0.234              0.003
    10.45.28.63   15-JUN-10     0.123              0.001
    10.45.29.47   15-JUN-10              0.987              0.023
    10.45.29.47   16-JUN-10              0.23                  0Hope this helps in answering my question , and also could you please share some document to learn writing nested sql's , i always had tough time in understanding this :-(

  • Help with recording audio

    I am trying to record an Alesis Micron synth into Logic. I have both cables in audio out on the Micron and they are plugged into the two inputs on my Presonus Interface. Logic recognizes the interface and inputs but there is not sound when playing the synth or recording. I have record enable and monitoring on and I still cannot get any sound. The volume on my interface console is turned up as well The Micron works when plugged into an amp so it is not the problem. I am new to Logic so any help would really be appreciated.

    You stated monitoring on, do you mean software monitoring in preferences if so thats cool. Now when you create new audio tracks select input monitoring along with your other settings or click on the i button on your previous tracks see if that works

Maybe you are looking for

  • How to connect to the Crystal Reports Server XI R2 installed in other machi

    Hi, we are 3 people here we have Crystal Reports Server XI R2 installed in one machine and Crystal Repoprts XI  DEsigner ( downloaded trial version) in all the machines , in my machine only Crystal Repoprts XI  DEsigner ( downloaded trial version) is

  • Oracle XSLT support

    Oracle XSLT transformer will ever support XSLT 2.0 specs? -- Deha Peker

  • E-business suite book recommendations

    Hi, I used oracle Apps 10.7 about 8 years ago (and can remember very little). I have only been doing core development DBA work since. I am interested in doing a bit of a tech refresh with 11.5+/12 and also RAC, I would appreciate any recommendations

  • How do I make JPanel focusable in applet?

    Consider the following Applet: /*  <applet code="MyTest8" width="500" height="300"></applet>  */ import java.awt.*; import java.awt.event.*; import javax.swing.*; public class MyTest8 extends JApplet      public void init()           Container conten

  • Change TM drive ---deleteing TM files

    I've got TM up and running smoothly, with several backups on my external drive. 1) Can I now copy my TM data to another (larger) drive (via a simple drag and drop in Finder), then change my destination drive in TM and have it continue to update that