Problem using RANK() over (partition of)

Hello

I have a select statement that selects a single record among the many recordings sorted by date!

SELECT the isin code, id, mkt, CTL, TM

Of

(SELECT isin, id, mkt, CTL, TM,

Rank() OVER (partition by isin arrested by ASC TM) RNK

CORD)

where "CPOS" = id

and "SSEFN" = mkt

AND rnk = 1

By this statement, I will get a single record (rnk = 1 so it select the first record)

But the problem is that whenever there is only one record (qualifying) it does not appear in the result set.

And I also need this record! My goal is always a single record , no matter how they are!

I joined record a sample and also the script table here!

SE0001ACPCNESSSSS2013-04-16 06:55:37
SE0005ACPCNESSSSS2013-11-04 06:57:16

CREATE TABLE cord

(

ISIN VARCHAR2 (13 BYTE) NOT NULL,

ID VARCHAR2 (33 BYTE),

VARCHAR2 (20 BYTE) TM,

TMMILL NUMBER (13).

TMMILLREC NUMBER (13).

VARCHAR2 (49 BYTE) NM,

MKT VARCHAR2 (11 BYTE) NOT NULL,

CTL VARCHAR2 (4 BYTE)

)

;

Hello

Louis wrote:

Hello

I have a select statement that selects a single record among the many recordings sorted by the timestamp!

Whenever you have a problem, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and the results desired from these data.
Explain, using specific examples, how you get these results from these data.
Always say what version of Oracle you are using (for example, 11.2.0.2.0).

See the FAQ forum: https://forums.oracle.com/message/9362002

Remember, RANK may return the same value for multiple lines in the same partition.

If you have exactly 1 for each value in each partition, use ROW_NUMBER instead of RANK.

Tags: Database

Similar Questions

  • ROW_NUMBER() OVER (PARTITION)

    Hi all

    I have a requirement to only a single record down data

    TRANSACTION_ID CAPTURE_DATE COMPLIANCE_CODE

    15678432 6 JUNE 2015 AY

    15678432 7 JUNE 2015 DY

    I need to load MIN (CAPTURE_DATE) record only and ignore the rest.

    15678432 6 JUNE 2015 AY

    I know that this can be done using ROW_NUMBER() over (PARTITION), as shown below

    SELECT * FROM

    (

    SELECT

    TRANSACTION_ID,

    CAPTURE_DATE,

    ROW_NUMBER() over (partition TRANSACTION_ID

    order of CAPTURE_DATE) RN

    of TABLLE) T WHERE RN = 1

    Is there a way how I can make in ODI?

    Thank you and appreciate your time and your solution

    Concerning

    Write a review and mark it as a data store

  • bad result of 10g using sys_connect_by_path, COUNT (*) OVER (PARTITION OF...)

    Hello

    I get incorrect results when I run my SQL on Oracle 10.2.0.4 prod database.
    When I run the same SQL on Oracle 11.2.0.1 prod database, I get the results I expect.

    See the PATH_TO_EMP_ROOT column in 10g (all are null, why?)

    Here's the SQLs and respective results on Oracle 10.2.0.4 prod database:
    create table TEST_WITH_EMP_TABLE
    (
      EMP_ID NUMBER(5) NOT NULL,
      EMP_NAME VARCHAR2(100) NOT NULL,
      MGR_EMP_ID NUMBER(5),
      CONSTRAINT TEST_WITH_EMP_TABLE_PK
          PRIMARY KEY (EMP_ID) USING INDEX,
       CONSTRAINT TEST_WITH_EMP_TABLE_FK1
          FOREIGN KEY (MGR_EMP_ID)
          REFERENCES TEST_WITH_EMP_TABLE(EMP_ID) ON DELETE CASCADE
    );
    
    INSERT INTO TEST_WITH_EMP_TABLE  VALUES (10, 'Emp1', null);
    INSERT INTO TEST_WITH_EMP_TABLE  VALUES (20, 'Emp2', 10);
    INSERT INTO TEST_WITH_EMP_TABLE  VALUES (30, 'Emp3', 20);
    INSERT INTO TEST_WITH_EMP_TABLE  VALUES (40, 'Emp4', 30);
    INSERT INTO TEST_WITH_EMP_TABLE  VALUES (50, 'Emp5', 10);
    INSERT INTO TEST_WITH_EMP_TABLE  VALUES (60, 'Emp6', 50);
    INSERT INTO TEST_WITH_EMP_TABLE  VALUES (70, 'Emp7', 10);
    INSERT INTO TEST_WITH_EMP_TABLE  VALUES (80, 'Emp8', null);
    commit;
    
    select level as EMP_LEVEL, 
           sys_connect_by_path(EMP_ID, '/') as PATH_TO_EMP_ROOT, 
           COUNT(*) OVER (PARTITION BY level, MGR_EMP_ID) as EMPS_COUNT,
           EMP_ID, EMP_NAME, MGR_EMP_ID
    from TEST_WITH_EMP_TABLE
    START WITH MGR_EMP_ID IS NULL
    CONNECT BY NOCYCLE PRIOR  EMP_ID = MGR_EMP_ID
    ORDER BY EMP_LEVEL, MGR_EMP_ID;
    
    EMP_LEVEL   PATH_TO_EMP_ROOT    EMPS_COUNT  EMP_ID  EMP_NAME    MGR_EMP_ID
    ---------   ----------------    ----------  ------  --------    -----------
    1           (null)              2           10      Emp1        (null)
    1           (null)              2           80      Emp8        (null)
    2           (null)              3           20      Emp2        10
    2           (null)              3           50      Emp5        10
    2           (null)              3           70      Emp7        10
    3           (null)              1           30      Emp3        20
    3           (null)              1           60      Emp6        50
    4           (null)              1           40      Emp4        30
    Exact same SQL running on * 11.2.0.1 Oracle database * as a result of results (than I expected on 10.2 as well):
    EMP_LEVEL   PATH_TO_EMP_ROOT    EMPS_COUNT  EMP_ID  EMP_NAME    MGR_EMP_ID
    ---------   ----------------    ----------  ------  --------    -----------
    1           /10                 2           10      Emp1        (null)
    1           /80                 2           80      Emp8        (null)
    2           /10/20              3           20      Emp2        10
    2           /10/50              3           50      Emp5        10
    2           /10/70              3           70      Emp7        10
    3           /10/20/30           1           30      Emp3        20
    3           /10/50/60           1           60      Emp6        50
    4           /10/20/30/40        1           40      Emp4        30
    Y at - it a bug known RDBMS? Any change that I can do to get this working on 10.2, SQL database as well?

    The other strange thing is that if I remove the
    COUNT(*) OVER (PARTITION BY level, MGR_EMP_ID) as EMPS_COUNT
    the select part of SQL on 10.2.0.4 DB column, the
     PATH_TO_EMP_ROOT 
    I get now is correct even on the 10.2 database.

    Kind regards
    Vivek.
    select level as EMP_LEVEL,
           sys_connect_by_path(emp_id, '/') as path_to_emp_root,
           --COUNT(*) OVER (PARTITION BY MGR_EMP_ID) as EMPS_COUNT,
           EMPS_COUNT,
           emp_id, emp_name, mgr_emp_id
    from (select emp_id, emp_name, mgr_emp_id,
          count(*) over (partition by mgr_emp_id) as emps_count
          from TEST_WITH_EMP_TABLE)
    start with mgr_emp_id is null
    connect by nocycle prior   emp_id=mgr_emp_id
    ORDER BY EMP_LEVEL, MGR_EMP_ID;
    
  • Need help to add totals and subtotals query that uses ROW_NUMBER OVER()

    Hi all

    We have the following query that is used in a report that generates a list of employees working a certain type of movement.
    The report also includes a column called RN that is used when the pagination for the report.
    What we are trying to do now is to add columns that indicate the total number of hours worked by the employee as well as gran total of hours of work for all employees in the report.

    We tried to add the columns last week and have been able to get the totals by using a group by clause. Only problem is that it has changed the order of the column of RN.
    The RN column must stay in numerical order, since we need to select and display the records for paging.

    Is it possible to get our totals without disturbing our paging RN column?

    BTW, thanks Frank for the addition of the UNPIVOT operator at our request. While other solutions worked, UNPIVOT has been the most effective.

    SEE below, the application and all the sql to create tables and test data.

    Thank you
    George
    SELECT *
      FROM (SELECT COUNT (*) OVER () record_count,
                   ROW_NUMBER ()
                   OVER (
                      ORDER BY
                         e.lname || ', ' || e.fname || ' - ' || e.initials DESC,
                         u.startdate DESC)
                      rn,
                   u.empid,
                   a.area,
                   e.lname,
                   e.fname,
                   e.initials,
                   u.startdate,
                   u.starttime,
                   u.endtime,
                   u.hours,
                   u.minutes
              FROM ((SELECT empid,
                            startpp + day_number - 1 startdate,
                            NULL starttime,
                            NULL endtime,
                            8 hours,
                            0 minutes
                       FROM    schedules s
                            JOIN
                               payperiods pp
                            ON pp.periodid = s.periodid 
    UNPIVOT ( v 
    FOR day_number IN (day1 AS 1
                      ,day2 AS 2
                      ,day3 AS 3
                      ,day4 AS 4
                      ,day5 AS 5
                      ,day6 AS 6
                      ,day7 AS 7
                      ,day8 AS 8
                      ,day9 AS 9
                      ,day10 AS 10
                      ,day11 AS 11
                      ,day12 AS 12
                      ,day13 AS 13
                      ,day14 AS 14)
             ) 
             WHERE SUBSTR (v, 1, 4) = 'SHFT' 
             UNION 
    SELECT l.empid,
           l.startdate,
           TO_CHAR (l.starttime, 'HH24:MI'),
           TO_CHAR (l.endtime, 'HH24:MI'),
           TRUNC (
                24
              * (CASE
                    WHEN l.starttime > l.endtime THEN l.endtime + 1 - l.starttime
                    ELSE l.endtime - l.starttime
                 END))
              hours,
           FLOOR (
                (  ( (l.endtime - l.starttime) * 24 * 60 * 60)
                 -   FLOOR ( ( (l.endtime - l.starttime) * 24 * 60 * 60) / 3600)
                   * 3600)
              / 60)
              minutes
      FROM leavereq l
     WHERE     UPPER (l.leavetype) = 'XYZShift'
           AND l.starttime IS NOT NULL
           AND approval = -1
           AND canceled = 0
    ) U) 
    JOIN employee e ON e.empid = u.empid 
    JOIN areas a ON a.areaid = e.areaid 
    WHERE a.configid = 1000 
    AND (startdate between to_date('4/7/2013','mm/dd/yyyy') and to_date('4/20/2013','mm/dd/yyyy')) 
    ORDER BY e.lname||', '||e.fname||' - '||e.initials DESC ,u.startdate DESC 
    ) WHERE rn BETWEEN 1 AND 75 
    order by rn;
    --------------------------------------------------------------------------------
    OUTPUT CURRENT
    RECORD_COUNT,RN,EMPID,AREA,LNAME,FNAME,INITIALS,STARTDATE,STARTTIME,ENDTIME,HOURS,MINUTES
    12,1,753948,TEST,Three,Employee,E3,4/17/2013,,,8,0
    12,2,753948,TEST,Three,Employee,E3,4/15/2013,,,8,0
    12,3,753948,TEST,Three,Employee,E3,4/12/2013,08:00,12:30,4,30
    12,4,753948,TEST,Three,Employee,E3,4/8/2013,,,8,0
    12,5,753940,TEST,Two,Employee,E2,4/12/2013,08:00,13:45,5,45
    12,6,753940,TEST,Two,Employee,E2,4/11/2013,,,8,0
    12,7,753940,TEST,Two,Employee,E2,4/9/2013,,,8,0
    12,8,753940,TEST,Two,Employee,E2,4/8/2013,,,8,0
    12,9,753938,TEST,One,Employee,O1,4/17/2013,,,8,0
    12,10,753938,TEST,One,Employee,O1,4/12/2013,08:00,14:20,6,20
    12,11,753938,TEST,One,Employee,O1,4/9/2013,,,8,0
    12,12,753938,TEST,One,Employee,O1,4/8/2013,,,8,0
    DESIREE OUTPUT
    RECORD_COUNT,RN,EMPID,AREA,LNAME,FNAME,INITIALS,STARTDATE,STARTTIME,ENDTIME,HOURS,MINUTES,EMPTOTAL,GRANTOTAL
    12,1                 ,753948,TEST,Three,Employee,E3       ,4/17/2013   ,               ,             ,8        ,0           ,28:30         ,88:35
    12                    ,2,753948,TEST,Three,Employee,E3       ,4/15/2013   ,               ,             ,8        ,0           ,28:30         ,88:35
    12                    ,3,753948,TEST,Three,Employee,E3       ,4/12/2013   ,08:00       ,12:30     ,4        ,30         ,28:30         ,88:35
    12                    ,4,753948,TEST,Three,Employee,E3       ,4/8/2013     ,               ,             ,8        ,0           ,28:30         ,88:35
    12                    ,5,753940,TEST,Two,Employee,E2         ,4/12/2013   ,08:00       ,13:45     ,5        ,45         ,29:45         ,88:35
    12                    ,6,753940,TEST,Two,Employee,E2         ,4/11/2013   ,               ,             ,8        ,0           ,29:45         ,88:35
    12                    ,7,753940,TEST,Two,Employee,E2         ,4/9/2013     ,               ,             ,8        ,0           ,29:45         ,88:35
    12                    ,8,753940,TEST,Two,Employee,E2         ,4/8/2013     ,               ,             ,8        ,0           ,29:45         ,88:35
    12                    ,9,753938,TEST,One,Employee,O1         ,4/17/2013   ,               ,             ,8        ,0           ,30:20         ,88:35
    12                    ,10,753938,TEST,One,Employee,O1       ,4/12/2013   ,08:00       ,14:20     ,6        ,20         ,30:20          ,88:35
    12                    ,11,753938,TEST,One,Employee,O1       ,4/9/2013     ,               ,             ,8        ,0           ,30:20          ,88:35
    12                    ,12,753938,TEST,One,Employee,O1       ,4/8/2013     ,               ,             ,8        ,0           ,30:20          ,88:35
    --------------------------------------------------------------------------------
    CREATE THE TABLE PROGRAMS
    (
    SCHEDULEID NUMBER (12) NOT NULL,
    EMPID NUMBER (12) NOT NULL,
    PERIODID VARCHAR2 (6 BYTE) NOT NULL,
    AREAID NUMBER (12) NOT NULL,
    DAY1 VARCHAR2 (50 BYTE),
    DAY 2 VARCHAR2 (50 BYTE).
    DAY 3 VARCHAR2 (50 BYTE).
    DAY4 VARCHAR2 (50 BYTE),
    DAY5 VARCHAR2 (50 BYTE),
    DAY6 VARCHAR2 (50 BYTE),
    DAY 7 VARCHAR2 (50 BYTE).
    JOUR8 VARCHAR2 (50 BYTE),
    DAY9 VARCHAR2 (50 BYTE),
    DAY10 VARCHAR2 (50 BYTE),
    DAY 11 VARCHAR2 (50 BYTE).
    DAY12 VARCHAR2 (50 BYTE),
    J13 VARCHAR2 (50 BYTE),
    DAY14 VARCHAR2 (50 BYTE),
    NOPTIND1 INTEGER DEFAULT 0,
    NOPTIND2 INTEGER DEFAULT 0,
    NOPTIND3 INTEGER DEFAULT 0,
    NOPTIND4 INTEGER DEFAULT 0,
    NOPTIND5 INTEGER DEFAULT 0,
    NOPTIND6 INTEGER DEFAULT 0,
    NOPTIND7 INTEGER DEFAULT 0,
    NOPTIND8 INTEGER DEFAULT 0,
    NOPTIND9 INTEGER DEFAULT 0,
    NOPTIND10 INTEGER DEFAULT 0,
    NOPTIND11 INTEGER DEFAULT 0,
    NOPTIND12 INTEGER DEFAULT 0,
    NOPTIND13 INTEGER DEFAULT 0,
    NOPTIND14 INTEGER DEFAULT 0
    );

    CREATE TABLE PAYPERIODS
    (
    PERIODID VARCHAR2 (6 BYTE) NOT NULL,
    DATE OF STARTPP,
    DATE OF ENDPP
    );

    CREATE TABLE LEAVEREQ
    (
    LEAVEREQID NUMBER (12) NOT NULL,
    EMPID NUMBER (12) NOT NULL,
    STARTDATE DATE,
    DATE STARTTIME,
    END DATE,
    LEAVETYPE VARCHAR2 (50 BYTE),
    DATE REQUESTED,
    ENTIRE DEFAULT 0 APPROVAL
    STOP CRITICAL INTEGER DEFAULT 0,
    CANCELLED INTEGER DEFAULT 0,
    ENTERBY VARCHAR2 (50 BYTE),
    APPROVEDBY VARCHAR2 (50 BYTE),
    DATE OF APPROVEDWHEN,
    REMARKS VARCHAR2 (4000 BYTE),
    APPINI VARCHAR2 (2 BYTE),
    NUMBER (12) ROUND.
    GOAL NUMBER (12).
    FMLA NUMBER (12) DEFAULT 0,
    LEAVEAREAID NUMBER (12).
    ARTICLE26 NUMBER (12) DEFAULT 0,
    ORG_LVREQID NUMBER (12)
    );

    CREATE TABLE EMPLOYEE
    (
    EMPID NUMBER (12) NOT NULL,
    AREAID NUMBER (12) NOT NULL,
    BIDAREA NUMBER (12) NOT NULL,
    LNAME VARCHAR2 (30 BYTE),
    FNAME VARCHAR2 (20 BYTE),
    MI VARCHAR2 (3 BYTE),
    CLASSIFICATION VARCHAR2 (10 BYTE),
    VARCHAR2 (2 BYTE) INITIALS,
    DATE OF EODXYZ,
    DATE OF EODNAT,
    VARCHAR2 (3 BYTE) STATUS,
    TURN VARCHAR2 (3 BYTE),
    RDO1 VARCHAR2 (6 BYTE),
    RDO2 VARCHAR2 (6 BYTE),
    TELEPHONE1 VARCHAR2 (14 BYTE),
    TELEPHONE2 VARCHAR2 (14 BYTE),
    REM VARCHAR2 (75 BYTE) DEFAULT 'NONE. '
    LAST4 NUMBER (12).
    SICKOK INTEGER,
    NOSIGNON INTEGER DEFAULT 0,
    TB VARCHAR2 (4 BYTE),
    SUP NUMBER (12).
    OM NUMBER (12).
    FMLA1 INTEGER,
    FMLA1SDATE DAY,
    FMLA1TYPE NUMBER (12).
    FMLA1HRSLEFT NUMBER (12).
    ADMINTEMP INTEGER,
    LEAVERESTRICT INTEGER,
    SLRESTRICT INTEGER,
    DATE OF SLRESDATE,
    DATE OF SLROCDATE,
    DEVSTATUS INTEGER DEFAULT 0,
    USERNAME VARCHAR2 (50 BYTE),
    PWORD VARCHAR2 (100 BYTE),
    PWORDCHG INTEGER,
    ULEVEL VARCHAR2 (50 BYTE),
    E-MAIL VARCHAR2 (50 BYTE),
    VARCHAR2 (50 BYTE) TEAM.
    ANN VARCHAR2 (50 BYTE),
    DDAY1 VARCHAR2 (50 BYTE) DEFAULT 'x ',.
    DDAY2 VARCHAR2 (50 BYTE) DEFAULT 'x ',.
    DDAY3 VARCHAR2 (50 BYTE) DEFAULT 'x ',.
    DDAY4 VARCHAR2 (50 BYTE) DEFAULT 'x ',.
    DDAY5 VARCHAR2 (50 BYTE) DEFAULT 'x ',.
    DDAY6 VARCHAR2 (50 BYTE) DEFAULT 'x ',.
    DDAY7 VARCHAR2 (50 BYTE) DEFAULT 'x ',.
    DDAY8 VARCHAR2 (50 BYTE) DEFAULT 'x ',.
    DDAY9 VARCHAR2 (50 BYTE) DEFAULT 'x ',.
    DDAY10 VARCHAR2 (50 BYTE) DEFAULT 'x ',.
    DDAY11 VARCHAR2 (50 BYTE) DEFAULT 'x ',.
    DDAY12 VARCHAR2 (50 BYTE) DEFAULT 'x ',.
    DDAY13 VARCHAR2 (50 BYTE) DEFAULT 'x ',.
    DDAY14 VARCHAR2 (50 BYTE) DEFAULT 'x ',.
    MOVEDATE DATE,
    OLDAREA VARCHAR2 (50 BYTE),
    GRPQA INTEGER,
    GRPTRNG INTEGER,
    LOGINFLAG INTEGER DEFAULT 0,
    NEWAREAID NUMBER (12).
    DATE OF EFFDATE,
    MODIFIED_BY VARCHAR2 (30 BYTE),
    DATE OF MODIFIED_DATE
    );

    CREATE TABLE SPACES
    (
    AREAID NUMBER (12) NOT NULL,
    CONFIGID NUMBER (12) NOT NULL,
    AREA VARCHAR2 (50 BYTE),
    ROLLUPALLOW INTEGER DEFAULT 0,
    SIGNONAREA INTEGER DEFAULT 0,
    OPDIS INTEGER DEFAULT 0,
    MODIFIED_BY VARCHAR2 (30 BYTE),
    DATE OF MODIFIED_DATE
    );
    --------------------------------------------------------------------------------
    Insert in CALENDARS
    (SCHEDULEID, EMPID, PERIODID, DAY1, AREAID
    DAY 2, DAY 3, DAY 4, DAY5 DAY6.
    DAY7 JOUR8, DAY9, DAY10, DAY 11,.
    J13, DAY14 DAY12, NOPTIND1, NOPTIND2,
    NOPTIND3, NOPTIND4, NOPTIND5, NOPTIND6, NOPTIND7,
    NOPTIND8, NOPTIND9, NOPTIND10, NOPTIND11, NOPTIND12,
    NOPTIND13, NOPTIND14)
    Values
    (3693744, 753738, '092013', 2003, 'X')
    "SHFT < 1530 > ', ' < 1530 SHFT > ', '1530', '1530', '1530',
    'X', 'X', '1530', '1530', 'SHIFT ',.
    "1530', '1530', 'X', 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    (0, 0);
    Insert in CALENDARS
    (SCHEDULEID, EMPID, PERIODID, DAY1, AREAID
    DAY 2, DAY 3, DAY 4, DAY5 DAY6.
    DAY7 JOUR8, DAY9, DAY10, DAY 11,.
    J13, DAY14 DAY12, NOPTIND1, NOPTIND2,
    NOPTIND3, NOPTIND4, NOPTIND5, NOPTIND6, NOPTIND7,
    NOPTIND8, NOPTIND9, NOPTIND10, NOPTIND11, NOPTIND12,
    NOPTIND13, NOPTIND14)
    Values
    (3693745, 753740, '092013', 2003, 'X')
    "SHFT < 1530 > ', ' < 1530 SHFT > ', '1530', 'SHIFT', '1530',
    'X', 'X', '1530', '1530', ' 1530',
    "1530', '1530', 'X', 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    (0, 0);
    Insert in CALENDARS
    (SCHEDULEID, EMPID, PERIODID, DAY1, AREAID
    DAY 2, DAY 3, DAY 4, DAY5 DAY6.
    DAY7 JOUR8, DAY9, DAY10, DAY 11,.
    J13, DAY14 DAY12, NOPTIND1, NOPTIND2,
    NOPTIND3, NOPTIND4, NOPTIND5, NOPTIND6, NOPTIND7,
    NOPTIND8, NOPTIND9, NOPTIND10, NOPTIND11, NOPTIND12,
    NOPTIND13, NOPTIND14)
    Values
    (3693746, 753748, '092013', 2003, 'X')
    "< 1530 SHFT > ', '1530', '1530', '1530', '1530',.
    'X', 'X', ' SHFT < 1530 > ', '1530', 'SHIFT ',.
    "1530', '1530', 'X', 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    (0, 0);

    COMMIT;

    Insert into PAYPERIODS
    (PERIODID, STARTPP)
    Values
    ('092013', TO_DATE (APRIL 7, 2013 00:00:00 ',' ' DD/MM/YYYY HH24:MI:SS));))
    COMMIT;

    Insert into LEAVEREQ
    (LEAVEREQID, EMPID, STARTDATE, STARTTIME, ENDTIME,
    LEAVETYPE, REQUEST, APPROVAL, REFUSED, ANNULLED,
    ENTERBY, APPROVEDBY, APPROVEDWHEN, ROUND, FMLA,.
    LEAVEAREAID, 26)
    Values
    (4265804, 753748, TO_DATE (12 APRIL 2013 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), TO_DATE (APRIL 1, 2013 08:00 ',' ' HH24:MI:SS JJ/MM/AAAA), TO_DATE (APRIL 1, 2013 12:30 ',' MM/DD/YYYY HH24:MI:SS'),)
    'XYZShift', TO_DATE (8 April 2013 15:14:39 ',' ' the HH24: MI: SS DD/MM/YYYY), - 1, 0, 0,.
    'GH', 'GH', TO_DATE (8 APRIL 2013 15:18:52 ',' DD/MM/YYYY HH24:MI:SS'), 2, 0,.
    2003, 0);
    Insert into LEAVEREQ
    (LEAVEREQID, EMPID, STARTDATE, STARTTIME, ENDTIME,
    LEAVETYPE, REQUEST, APPROVAL, REFUSED, ANNULLED,
    ENTERBY, APPROVEDBY, APPROVEDWHEN, ROUND, FMLA,.
    LEAVEAREAID, 26)
    Values
    (4265805, 753740, TO_DATE (12 APRIL 2013 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), TO_DATE (APRIL 1, 2013 08:00 ',' ' HH24:MI:SS JJ/MM/AAAA), TO_DATE (APRIL 1, 2013 13:45 ',' DD/MM/YYYY HH24:MI:SS'),)
    'XYZShift', TO_DATE (8 April 2013 15:16:04 ',' ' the HH24: MI: SS DD/MM/YYYY), - 1, 0, 0,.
    'GH', 'GH', TO_DATE (8 APRIL 2013 15:19:49 ',' DD/MM/YYYY HH24:MI:SS'), 2, 0,.
    2003, 0);
    Insert into LEAVEREQ
    (LEAVEREQID, EMPID, STARTDATE, STARTTIME, ENDTIME,
    LEAVETYPE, REQUEST, APPROVAL, REFUSED, ANNULLED,
    ENTERBY, APPROVEDBY, APPROVEDWHEN, ROUND, FMLA,.
    LEAVEAREAID, 26)
    Values
    (4265806, 753738, TO_DATE (12 APRIL 2013 00:00:00 ',' ' HH24:MI:SS JJ/MM/AAAA), TO_DATE (APRIL 1, 2013 08:00 ',' DD/MM/YYYY HH24:MI:SS'), TO_DATE (APRIL 1, 2013 14:20 ',' DD/MM/YYYY HH24:MI:SS'),)
    'XYZShift', TO_DATE (8 April 2013 15:17:12 ',' ' the HH24: MI: SS DD/MM/YYYY), - 1, 0, 0,.
    'GH', 'GH', TO_DATE (8 APRIL 2013 15:26:55 ',' DD/MM/YYYY HH24:MI:SS'), 2, 0,.
    2003, 0);
    COMMIT;


    Insert EMPLOYEES
    (EMPID, AREAID, BIDAREA, LNAME, FNAME,
    CLASSIFICATION, INITIALS, EODXYZ, EODNAT, STATUS,
    RDO1, RDO2, REM, SICKOK, NOSIGNON,
    TB, SUP, OM, FMLA1, FMLA1SDATE,
    FMLA1HRSLEFT, ADMINTEMP, LEAVERESTRICT, SLRESTRICT, SLRESDATE,
    SLROCDATE, DEVSTATUS, ULEVEL, E-MAIL, TEAM,
    DDAY1, DDAY2, DDAY3, DDAY4, DDAY5,
    DDAY6, DDAY7, DDAY8, DDAY9, DDAY10,
    DDAY11, DDAY12, DDAY13, DDAY14, MOVEDATE,
    OLDAREA, GRPQA, GRPTRNG, LOGINFLAG MODIFIED_BY,
    MODIFIED_DATE)
    Values
    (753738, 2003, 2003, "one", "Employee",)
    '4_NON_BUE', 'E1', TO_DATE (1 JANUARY 2002 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), TO_DATE (JANUARY 1, 2001 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), 'YES ', HE SAID.
    'SAM', 'SUN', 'NONE',-1, 0,
    'NONE', 749405, 749405, 0, TO_DATE (JANUARY 1, 2013 00:00:00 "," MM/DD/YYYY HH24:MI:SS'),
    8, 0, 0, 0, TO_DATE (JANUARY 1, 2013 00:00:00 "," MM/DD/YYYY HH24:MI:SS'),
    To_date (January 1, 2013 00:00:00 "," MM/DD/YYYY HH24:MI:SS'), 0, ' 1000', '[email protected]', '4',
    'X', '1530', '1530', ' 1530 ', ' 1530',
    "1530 ', 'X', 'X', '1530', ' 1530",
    "1530', '1530', '1530', 'X', TO_DATE (MARCH 18, 2013 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'),
    "1392 ', 0, 0, 0, '752910',
    TO_DATE('03/18/2013 12:10:04', 'MM/DD/YYYY HH24:MI:SS'));)
    COMMIT;

    Insert EMPLOYEES
    (EMPID, AREAID, BIDAREA, LNAME, FNAME,
    CLASSIFICATION, INITIALS, EODXYZ, EODNAT, STATUS,
    RDO1, RDO2, REM, SICKOK, NOSIGNON,
    TB, SUP, OM, FMLA1, FMLA1SDATE,
    FMLA1HRSLEFT, ADMINTEMP, LEAVERESTRICT, SLRESTRICT, SLRESDATE,
    SLROCDATE, DEVSTATUS, ULEVEL, E-MAIL, TEAM,
    DDAY1, DDAY2, DDAY3, DDAY4, DDAY5,
    DDAY6, DDAY7, DDAY8, DDAY9, DDAY10,
    DDAY11, DDAY12, DDAY13, DDAY14, MOVEDATE,
    OLDAREA, GRPQA, GRPTRNG, LOGINFLAG MODIFIED_BY,
    MODIFIED_DATE)
    Values
    (753740, 2003, 2003, "two", "Employee",)
    '4_NON_BUE', 'E2', TO_DATE (1 JANUARY 2002 00:00:00 ',' ' HH24:MI:SS JJ/MM/AAAA), TO_DATE (JANUARY 1, 2001 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), 'YES ', HE SAID.
    'SAM', 'SUN', 'NONE',-1, 0,
    'NONE', 749405, 749405, 0, TO_DATE (JANUARY 1, 2013 00:00:00 "," MM/DD/YYYY HH24:MI:SS'),
    8, 0, 0, 0, TO_DATE (JANUARY 1, 2013 00:00:00 "," MM/DD/YYYY HH24:MI:SS'),
    To_date (January 1, 2013 00:00:00 "," MM/DD/YYYY HH24:MI:SS'), 0, ' 1000', '[email protected]', '4',
    'X', '1530', '1530', ' 1530 ', ' 1530',
    "1530 ', 'X', 'X', '1530', ' 1530",
    "1530', '1530', '1530', 'X', TO_DATE (MARCH 18, 2013 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'),
    "1392 ', 0, 0, 0, '752910',
    TO_DATE('03/18/2013 12:10:04', 'MM/DD/YYYY HH24:MI:SS'));)
    COMMIT;

    Insert EMPLOYEES
    (EMPID, AREAID, BIDAREA, LNAME, FNAME,
    CLASSIFICATION, INITIALS, EODXYZ, EODNAT, STATUS,
    RDO1, RDO2, REM, SICKOK, NOSIGNON,
    TB, SUP, OM, FMLA1, FMLA1SDATE,
    FMLA1HRSLEFT, ADMINTEMP, LEAVERESTRICT, SLRESTRICT, SLRESDATE,
    SLROCDATE, DEVSTATUS, ULEVEL, E-MAIL, TEAM,
    DDAY1, DDAY2, DDAY3, DDAY4, DDAY5,
    DDAY6, DDAY7, DDAY8, DDAY9, DDAY10,
    DDAY11, DDAY12, DDAY13, DDAY14, MOVEDATE,
    OLDAREA, GRPQA, GRPTRNG, LOGINFLAG MODIFIED_BY,
    MODIFIED_DATE)
    Values
    (753748, 2003, 2003, "third", "Employee",)
    '4_NON_BUE', 'E3', TO_DATE (1 JANUARY 2002 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), TO_DATE (JANUARY 1, 2001 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), 'YES ', HE SAID.
    'SAM', 'SUN', 'NONE',-1, 0,
    'NONE', 749405, 749405, 0, TO_DATE (JANUARY 1, 2013 00:00:00 "," MM/DD/YYYY HH24:MI:SS'),
    8, 0, 0, 0, TO_DATE (JANUARY 1, 2013 00:00:00 "," MM/DD/YYYY HH24:MI:SS'),
    To_date (January 1, 2013 00:00:00 "," MM/DD/YYYY HH24:MI:SS'), 0, ' 1000', '[email protected]', '4',
    'X', '1530', '1530', ' 1530 ', ' 1530',
    "1530 ', 'X', 'X', '1530', ' 1530",
    "1530', '1530', '1530', 'X', TO_DATE (MARCH 18, 2013 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'),
    "1392 ', 0, 0, 0, '752910',
    TO_DATE('03/18/2013 12:10:04', 'MM/DD/YYYY HH24:MI:SS'));)
    COMMIT;

    Insert areas
    (AREAID CONFIGID, AREA, ROLLUPALLOW, SIGNONAREA,
    OPDIS)
    Values
    (2003, 1000, 'TEST',-1, 0,
    -1) ;
    COMMIT;
    ------------------------------------------------------------------------------------------------

    Published by: George Heller on April 8, 2013 13:32

    Published by: George Heller on April 8, 2013 14:35

    Published by: George Heller on April 8, 2013 14:49

    Hi, George.

    George Heller wrote:
    Hi all

    We have the following query that is used in a report that generates a list of employees working a certain type of movement.


    The report also includes a column called RN that is used when the pagination for the report.
    What we are trying to do now is to add columns that indicate the total number of hours worked by the employee as well as gran total of hours of work for all employees in the report.

    We tried to add the columns last week and have been able to get the totals by using a group by clause. Only problem is that it has changed the order of the column of RN.

    Please your postal code. It is very difficult for me to say what you're doing wrong when I don't know what you're doing.

    The RN column must stay in numerical order, since we need to select and display the records for paging.

    Is it possible to get our totals without disturbing our paging RN column?

    If you mix the aggregate functions and analytical in the query (sub-), the clause GROUP BY is applied and aggregate functions are calculated before the analytical functions are calculated. If you need to calculate the analytical functions first, calculate them in a subquery and make the GROUP BY and aggregate functions in a query Super.

    In this case, it may be simpler to use the analytical SUM, rather than the SUM function.

    SEE below, the application and all the sql to create tables and test data.

    Thank you; It is very useful.
    It would be even more useful if you included only the columns you really need, for the party, you don't already know how to do. For example, it seems that you need only to display 2 columns and area areaid to the table areas. ConfigId can be very important for this request, but you already know what to do with configid? It seems that the other columns of this table play no role in this issue and comes confusion.

    The average time for a first response on this forum is less than 10 minutes. I think people did flee seeing siuch a long message.

    ...
    TRUNC (
    24
    * (CASE
    WHEN l.starttime > l.endtime THEN l.endtime + 1 - l.starttime
    ELSE l.endtime - l.starttime
    END))
    hours,
    

    Why do you enter startime after endtime? If they are on separate days, record the days exactly.

    ...
    WHERE     UPPER (l.leavetype) = 'XYZShift'
    

    The expression to the left of the = sign is guaranteed not to contain all small letters, so it will never equal to "XYZShift".

    ...
    ORDER BY e.lname||', '||e.fname||' - '||e.initials DESC ,u.startdate DESC 
    

    A clause using ORDER BY in this subquery is just a waste of resources. (I'm not talking about analytical clauses ORDER BY;) I mean query ORDER BY clauses, like the one above).

    ) WHERE rn BETWEEN 1 AND 75
    order by rn;
    

    --------------------------------------------------------------------------------
    OUTPUT CURRENT

    RECORD_COUNT,RN,EMPID,AREA,LNAME,FNAME,INITIALS,STARTDATE,STARTTIME,ENDTIME,HOURS,MINUTES
    12,1,753948,TEST,Three,Employee,E3,4/17/2013,,,8,0
    12,2,753948,TEST,Three,Employee,E3,4/15/2013,,,8,0
    12,3,753948,TEST,Three,Employee,E3,4/12/2013,08:00,12:30,4,30
    12,4,753948,TEST,Three,Employee,E3,4/8/2013,,,8,0
    12,5,753940,TEST,Two,Employee,E2,4/12/2013,08:00,13:45,5,45
    12,6,753940,TEST,Two,Employee,E2,4/11/2013,,,8,0
    12,7,753940,TEST,Two,Employee,E2,4/9/2013,,,8,0
    12,8,753940,TEST,Two,Employee,E2,4/8/2013,,,8,0
    12,9,753938,TEST,One,Employee,O1,4/17/2013,,,8,0
    12,10,753938,TEST,One,Employee,O1,4/12/2013,08:00,14:20,6,20
    12,11,753938,TEST,One,Employee,O1,4/9/2013,,,8,0
    12,12,753938,TEST,One,Employee,O1,4/8/2013,,,8,0
    

    I get only 9 rows in the result set when I run your query. Please zip code that you actually run and the results you get in fact.

    DESIREE OUTPUT

    RECORD_COUNT,RN,EMPID,AREA,LNAME,FNAME,INITIALS,STARTDATE,STARTTIME,ENDTIME,HOURS,MINUTES,EMPTOTAL,GRANTOTAL
    12,1                 ,753948,TEST,Three,Employee,E3       ,4/17/2013   ,               ,             ,8        ,0           ,28:30         ,88:35
    12                    ,2,753948,TEST,Three,Employee,E3       ,4/15/2013   ,               ,             ,8        ,0           ,28:30         ,88:35
    12                    ,3,753948,TEST,Three,Employee,E3       ,4/12/2013   ,08:00       ,12:30     ,4        ,30         ,28:30         ,88:35
    12                    ,4,753948,TEST,Three,Employee,E3       ,4/8/2013     ,               ,             ,8        ,0           ,28:30         ,88:35
    

    Do you really want this order, with 'Tw' sorts before 'Th '?

    12                    ,5,753940,TEST,Two,Employee,E2         ,4/12/2013   ,08:00       ,13:45     ,5        ,45         ,29:45         ,88:35
    12                    ,6,753940,TEST,Two,Employee,E2         ,4/11/2013   ,               ,             ,8        ,0           ,29:45         ,88:35
    12                    ,7,753940,TEST,Two,Employee,E2         ,4/9/2013     ,               ,             ,8        ,0           ,29:45         ,88:35
    12                    ,8,753940,TEST,Two,Employee,E2         ,4/8/2013     ,               ,             ,8        ,0           ,29:45         ,88:35
    12                    ,9,753938,TEST,One,Employee,O1         ,4/17/2013   ,               ,             ,8        ,0           ,30:20         ,88:35
    12                    ,10,753938,TEST,One,Employee,O1       ,4/12/2013   ,08:00       ,14:20     ,6        ,20         ,30:20          ,88:35
    12                    ,11,753938,TEST,One,Employee,O1       ,4/9/2013     ,               ,             ,8        ,0           ,30:20          ,88:35
    12                    ,12,753938,TEST,One,Employee,O1       ,4/8/2013     ,               ,             ,8        ,0           ,30:20          ,88:35
    

    I think you want something like this:

    WITH   u      AS
    (
         SELECT  empid,
                    startpp + day_number - 1     AS startdate,
                    NULL                             AS starttime,
                    NULL                    AS endtime,
                    8                    AS hours,
                    0                    AS minutes
            FROM    schedules      s
                JOIN    payperiods     pp  ON   pp.periodid = s.periodid
         UNPIVOT ( v
              FOR day_number IN ( day1  AS  1
                                           , day2  AS  2
                                  , day3  AS  3
                                  , day4  AS  4
                                  , day5  AS  5
                                  , day6  AS  6
                                  , day7  AS  7
                                  , day8  AS  8
                                  , day9  AS  9
                                  , day10 AS 10
                                  , day11 AS 11
                                  , day12 AS 12
                                  , day13 AS 13
                                  , day14 AS 14
                          )
                   )
             WHERE   SUBSTR (v, 1, 4) = 'SHFT'
         UNION ALL
            SELECT  empid,
                     startdate,
                     TO_CHAR (starttime, 'HH24:MI'),
                     TO_CHAR (endtime,   'HH24:MI'),
                     TRUNC ( 24
                         * CASE
                                   WHEN starttime > endtime
                       THEN endtime + 1 - starttime
                             ELSE endtime - starttime
                            END
                    )               AS hours,
              MOD ( FLOOR ( (endtime - starttime)
                             * 24 * 60
                       )
                  , 60
                  )               AS minutes
            FROM    leavereq     l
          WHERE   UPPER (leavetype) = 'XYZSHIFT'
                AND     starttime          IS NOT NULL
                AND     approval         = -1
                AND     canceled         = 0
    )
    ,     join_results     AS
    (
         SELECT  COUNT (*) OVER () record_count,
                        ROW_NUMBER () OVER ( ORDER BY  e.lname          DESC
                                   ,            e.fname           DESC
                             ,            e.initials      DESC
                             ,         u.startdate     DESC
                             )        AS rn,
                    u.empid,
                    a.area,
                    e.lname,
                    e.fname,
                    e.initials,
                    u.startdate,
                    u.starttime,
                    u.endtime,
                    u.hours,
                    u.minutes,
              ( 60 * SUM (u.hours)   OVER (PARTITION BY  e.empid)
              )    + SUM (u.minutes) OVER (PARTITION BY  e.empid)     AS emp_minutes,
              ( 60 * SUM (u.hours)   OVER ()
              )    + SUM (u.minutes) OVER ()                    AS grand_minutes
            FROM     u
         JOIN     employee  e  ON   e.empid     = u.empid
         JOIN     areas        a  ON   a.areaid     = e.areaid
         WHERE     a.configid   = 1000
         AND     startdate    BETWEEN TO_DATE ('4/7/2013',  'mm/dd/yyyy')
                        AND     TO_DATE ('4/20/2013', 'mm/dd/yyyy')
    )
    SELECT       record_count,     rn,        empid,     area,    lname, fname,
           initials,     startdate, starttime, endtime, hours, minutes,
           TRUNC (emp_minutes   / 60) || ':'
                                      || TO_CHAR ( MOD (emp_minutes, 60)
                                       , 'FM00'
                                  )     AS emptotal,
           TRUNC (grand_minutes / 60) || ':'
                                      || TO_CHAR ( MOD (grand_minutes, 60)
                                       , 'FM00'
                                  )     AS grandtotal
    FROM       join_results
    WHERE       rn     BETWEEN      1
              AND     75
    ORDER BY  rn
    ;
    
  • Field calculated MDB a max date using rank

    Hello

    I need to get a maximum date within projects, and the date max must be a computed column. In the database there is the query I would use, how can I implement this in BMM, need help please, let me know if there is another way?

    Select a.commitment_date from
    (SELECT project, stage_id, commitment_date,
    DENSE_RANK() over (PARTITION BY project ORDER BY commitment_date desc) as rank
    of prod_detail) a
    Where rank = 1 a.project_id group;

    Thanks for your time and your help.

    Hi ssk.

    Your query in the DB online help, you can do 1 thing directly use this query in the physical layer and go to the-> new physical table and choose table type-> select and write SQL inside and paste this query it and joins appropriate to this table so he realized the extraction you want. So draw from this table to also be layer MDB.

    (GOLD)
    Take a new calculated column in the layer of MDB write it as max (commitment_date) and check the query SQL generated by BI server when you use this column in your application, by default, need to add group by clause adding columns to it.
    If you want to change the group by according to your requirement, and then go to the advance in the response criteria, find you the section group you specify a.project_id and check the results.

    Award points and close your previous message also @ssk field calculated MDB in the fact Table?

    See you soon,.
    KK

  • Interview with case/when &amp; sum() over (partition) producing unexpected lines

    Since some time ago, I asked a question in this forum on an unusual problem of join and subtract ( subtract the total periods of highest level duration ). I had what seemed like a work request. So far, I could not really use it. Now that I'm looking closer results, I think that there is something wrong with it, but I can't understand why it's happening.

    Using the definition of the table of the original question, the following simple query shows a special extract of the data I'm looking at.

    Select duration, event_type, start_time, code_range, request_id from MYTABLE where REQUEST_ID = 'abc '.

    This translates into the following lines (separate columns by ' / '):

    START_TIME/REQUEST_ID/EVENT_TYPE/CODE_RANGE/DURATION
    2010-11-12 01:42:04.0/abc/Junk/publicEntryPoint/2,003
    2010-11-12 01:42:04.0/abc/Junk/webServiceCall/947
    2010-11-12 01:42:04.0/abc/Junk/webServiceCall/969

    Another similar request with REQUEST_ID = 'def' means:

    START_TIME/REQUEST_ID/EVENT_TYPE/CODE_RANGE/DURATION
    2010-11-12 00:22:13.0/def/junk/webServiceCall/788
    2010-11-12 00:22:13.0/def/junk/webServiceCall/1,128
    2010-11-12 00:22:13.0/def/junk/publicEntryPoint/2,003

    What follows is an excerpt simplified query I have a problem with:

    Select value start_time request_id event_type, code_range, duration, case code_range
    When "publicEntryPoint" then length * 2 - sum (duration) over (partition by request_id)
    of another-1
    end inner_duration from MYTABLE where EVENT_TYPE = 'spam' and trunc (START_TIME) = to_date('2010-11-12','yyyy-mm-dd')
    and rownum < 1000;

    Notice the couple of unconventional functions used here, the ' case/when' and 'sum() over (partition).

    This property returns a bunch of lines (count: 999), but here are the two with the particular REQUEST_ID values:

    START_TIME/REQUEST_ID/EVENT_TYPE/CODE_RANGE/DURATION/INNER_DURATION
    2010-11-12 01:42:04.0/abc/junk/publicEntryPoint/2,003/2,003
    2010-11-12 00:22:13.0/def/junk/publicEntryPoint/2,003/87

    The second line is correct. The first line has an unexpected value of INNER_DURATION of 2003. It should be 87 as the second row. I don't understand why this is happening.

    I think that 'and rownum '.<1000" must="" be="" the="" problem.="" it="" must="" be="" excluding="" some="" of="" the="" rows="" needed="" for="" the="" sum.="" the="" analytic="" function="" will="" be="" applied="" after="" this="" condition--see="" the="" sql="">

    Analytical functions are the last set of operations performed in a query, except for the
    final ORDER BY clause. Every joint and every WHERE, GROUP BY and HAVING clauses are
    completed before the analytical functions are processed

    Have you tried the query without this condition?

    Kind regards
    Bob

  • unknown problem using WMP 12 no sound when played the song in the folder but has sound when he played in the player

    Hi all

    I have a weird problem using WMP (Windows Media Player v12).  When I double-click a song of in my library, the trail seems to play, but didn't have all the sounds.

    However, if I hover over the same path and then click Preview, the pop-up, the track plays with sound.

    When the track (s) do not play, all indications show the way to correctly play through of progress ' Now Playing ' screen, but no sound.

    In the past, when I clicked on any MP3 file, he would play using WMP.  Now, when I click on an MP3 file, it brings just "Now Playing" and looks LIKE he plays, but no sound.

    I have looked & looked for clues as to why it may be of WMP, but I can't understand the problem.  I also searched the Web for 'day' drivers in the Win System Manager, but Win says that pilots are "up to date".

    I have rebuilt the DB Library (twice) by removing the DB files in from WMP to a procedure in a WMP support forum. I also went to check the audio device in Device Mgr Win (mine is one on one). Everything seemed ok.  I also changed the devices to "Win by default" to what I think my onboard audio device is called.  I thought that that can do, but it's not.

    I was struggling with this since the day of the year.  Please help me solve this problem!

    Here is a link to my system features:

    http://Speccy.Piriform.com/results/0JAQshtlODwFxgwHeGb4rfq

    Hi, Pie,

    Welcome to the Microsoft community.

    Appreciate your efforts to try to resolve the problem that you have set so far. I guess that is not a problem with the driver that ultimately, the songs are playable using the media player. It could be a corrupted in Windows Media Player framework that is causing the problem. Let's run the Windows Media Player troubleshooting utility that resets all parameters to the player. Check out the link to do so:

    http://Windows.Microsoft.com/en-za/Windows7/open-the-Windows-Media-Player-settings-Troubleshooter

    Please let us know the results.

  • Dreamweaver (on Windows 7) does not connect to the server, IIS (v7) using "FTP over SSL/TLS...". »

    I am weather evauating to buy Dreamweaver CS6...

    Trial of Dreamweaver CS6 (on Windows 7) does not connect to the IIS server (v7) using "FTP over SSL/TLS (explicit encryption).  I have a NEW Godaddy SSL certificate installed on the IIS server.

    On the connection between States Dreamweaver: "server certificate expired or contains invalid data."connectionerror.png

    I tried:

    -ALL Dreamweaver Server configuration options

    -L' use of multiple certificates (I tried 2048 and 4096-bit Godaddy SSL certificates)

    -Make sure the certificate "issued to the"domain name is my domain name. "

    I am able to connect without a problem with Filezilla, Filezilla equivalent affecting 'explicitly require FTP over TLS.  I can connect both using Microsoft Expression web.

    This has been discussed previously. I recommend reading my old thread for details:

    http://forums.Adobe.com/thread/889530

    But to make a long story short, Godaddy is incorrectly signed SSL certificates on shared servers.  The servers/ips/domains and the certificate do not match.  So DW and many other tools fail authenticate with Godaddy SSL connections.  Some users have stated that other tools FTP, such as Filezilla as you mentioned, bypass and automatically change your connection to insecurity, but DW is very picky.  Once you modify encryption against zero, the connection will be accepted.  Best solution is if you want a certificate SSL correctly signed move to another host because Godaddy refuses to admit that they are wrong with SSL certificates on their sites.  These warnings will appear also to your users if you have a store saying the SSL certificate does not match the domain/ip and this can make users checking in a very nervous showcase.

  • Trouble installing EL Capitan. Drive uses the GUID partition scheme

    Hello world

    I am installing an SSD on a Mac book pro 2011. I had been using the separate (Samsung ssd 830 256 GB) ssd (OS not installed) drive on my computer windows yet. I have created an El Capitan installation on a USB drive, swapped the hard drive on SSDS. I open at startup disk utility, erased the drive samsung with format: extended OSX journaled.

    Then returned to install El Capitan, but the Samsung SSD is grayed out and when I click it, it says "this disc is not use the GUID partition table scheme." Use disk utility to change the partition scheme. Select the drive, click the partition tab, select the volume configuration and then click options"

    However when I return to the disk utility, then select Samsung SSD, the partition tab is grayed out and cannot be selected.

    I don't know how to proceed. I would greatly appreciate any help

    Thank you

    .

    You must select the drive icon above the volume icon, that is selected in the screenshot.

  • Cannot use the Windows Partition

    So, I have seen very similar messages and followed several forums, but I can't yet figure out what to do next.

    I have 8.1 Windows on my Mac.  I wanted to repartition the Windows partition and make bigger it because I was running low on space, and the Windows partition is what I use it mostly for graduate studies.  About a year ago, I took an easy youtube video and used Mini Wizard Partition re-partition space and it worked perfectly.  I have found the same video and tried to repartition the Windows partition again, but apparently I royally screwed up.

    My BootCamp is not yet visible more in disk utility.  Under the partitions, there is an option called "disk0s4" greyed, but I'm not allowed to do something with it.  I can't verify or repair.  If I go to Applications, BootCamp Assistant is there, but he wants me to start the installation of BootCamp.  It was not an option to restart Windows more, and when I turned on with alt + market, Windows was not an option more.

    I followed this tutorial:

    http://nerdr.com/bootcamp-partition-lost-repairing-Mac-partitions/

    and when I restarted my Mac, restart Windows was an option. So I thought that I fixed it! EVIL.  My screen was black and said: 'Missing Operating System '.

    I downloaded EaseUS Data Recovery Wizard for Mac (because it was another suggestion), and I was able to recover and see the files on the NTFS disk0s4, so I'm quite positive, they have not all been completely erased.  Or at least the part of basic Windows is still there.  I can't recover the drive to anything, because it tells me that I will just be fitness on the same drive, and I honestly don't know how to retrieve these files will help with the side of the partition of things.

    I also used TestDisk and it seemed to find my missing partition, but in the middle of analysing it, it says something like "disk too small."  After further research, I went through and took only the most recent score that seemed to be deleted with NTFS, and when you are trying to do, it would allow me to make a 'logic' partition because he said something in red, as 'bad file.'

    My Mac still works perfectly, but I'm terribly need to recover my windows.

    Here are my findings from a similar position:

    Last login: Wed Mar 9 16:30:28 on ttys001

    Anna-Owenss-MacBook-Pro: ~ acowens1$ sudo gdisk/dev/rdisk0; "exit";

    GPT fdisk (gdisk) version 1.0.1

    WARNING: Open with shared lock devices will not have their

    table partition automatically reloaded!

    Scanning partition table:

    MBR: hybrid

    BSD: absent

    APM: absent

    TPG: present

    Found a valid GPT with hybrid MBR; using GPT.

    Command (? for help): p

    Disk/dev/rdisk0: 625142448 sectors, GiB 298,1

    Logical sector size: 512 bytes

    Identifier (GUID) of disc: 0000429B-368F-0000-CB2D-000003440000

    Partition table contains up to 128 entries

    First usable sector is 34, last usable area is 625142414

    The partitions will be aligned with the boundaries of sector 8

    Space free total is 277435021 areas (132,3 GiB)

    Starting number (sector) end (sector), Code name of size

    409639 40 1 200.0 MiB EF00 EFI system partition

    2 409640 268314855 127.7 giB customer AF00

    3 268314856 269584391 619.9 MiB AB00 Recovery HD

    4 547018752 625141759 37.3 giB 0700 BOOTCAMP

    Command (? for help): r

    Recovery/processing command (? for help): o

    Size of the disk is 625142448 areas (298,1 GiB)

    MBR disk identifier: 0x0000711C

    MBR partitions:

    Code of State sector Boot start end sector number

    1 1 547018751 primary 0xEE

    2 * 547018752 625141759 0 x 07 elementary school

    Recovery/processing command (? for help): h

    CAVEAT! Hybrid MBRs are flaky and dangerous! If you decide to not use one,

    Simply press enter at the prompt below and your partition table MBR will be

    be intact.

    Type one to three GPT partition numbers, separated by spaces, to be

    added to the hybrid MBR, in order: 2 3 4

    Partition of EFI GPT (0xEE) place first in the MBR (good for GRUB)? (Y/N): y

    Create entry for the #2 GPT partition (partition MBR #2)

    Enter a hex code MBR (default AF): n

    Set the bootable flag? (Y/N): n

    Create entry for the #3 GPT partition (partition MBR #3)

    Enter a hex code MBR (default AB):

    Set the bootable flag? (Y/N): n

    Create entry for the #4 GPT partition (partition MBR #4)

    Enter a hex code MBR (default 07):

    Set the bootable flag? (Y/N): y

    Recovery/processing command (? for help): o

    Size of the disk is 625142448 areas (298,1 GiB)

    MBR disk identifier: 0x0000711C

    MBR partitions:

    Code of State sector Boot start end sector number

    1 1 409639 primary 0xEE

    2 409640 268314855 primary 0 x 01

    3 268314856 269584391 primary 0xAB

    4 * 547018752 625141759 0 x 07 elementary school

    Recovery/processing command (? for help):

    Now, my major dilemma is that in the original post, he said to the partition of the hybrids with the numbers of 3-4-5, but I was unable to do so.  When I tried 5, he said "partition does exist or is too large."  So I used the 2 3 4 numbers.  Now, I'm at the point where I use the w command (to write), but I don't want to do it if I didn't the other steps correctly.

    1 mini Partition tool is very dangerous and should never be used on a Mac, in particular, more than once.

    2. article NERDR is the most irresponsible article about these issues and causes and exacerbates still more data loss.

    3. Please do not rewrite the MBR/GPT with Gdisk.

    4. you must return to Testdisk. TestDisk is used only for scanning, not for the updates. All updates using Gdisk, not binding Testdisk, once the right partition headers have been found.

    5 Please after the release of

    diskutil list

    Cs diskutil list

    sudo TPG - vv - r see the/dev/disk0

    sudo fdisk/dev/disk0

  • When I use choose the partition Windows in MAC, it gives me an error code 0 x 0000225.

    When I use choose the partition Windows in MAC, it gives me an error code 0 x 0000225.

    I installed everything windows 10 on my macbook pro with the 2013 retina is ready, but the computer goes to windows it gives me an error, it tells needs me to be repaired

    need some help please and sorry I don't have a good English

    It gives me this error

  • Compaq Evo D5pM - problems using this model number, never find what he listed...

    Compaq Evo D5pM - (Pent4 - 1.7 GHz) problems using this model looking for parts or information number.  Serial number has not been useful.

    Someone said "aka Compaq D510." Trying to buy memory model (found on the case) my number wasn't so I tried to use D510 (it was listed). Apparently not the same computer / mine use 168 pins sticks and D - 510 came 188 pins. I did my 'upgrade' purchase by check the number of pins and using the already installed type.

    My computer is a vertical minitower - looks like D - 510-, but like I said the components are different.

    I was wondering if anyone knows a model Compaq Evo w / same components (P4 1.7 GHz; 168 pin memory) I could use for research purposes. The smallest horizontal model Evo often uses different (smaller) maps, etc..

    Tried the Ctrl-Alt-S keyboard shortcut to bring up the model number (etc.), but my keyboard shortcuts do not work on this computer. Run a search for edge came up with nothing to tune.

    I tried HP support and drivers.  With the help of several model numbers and found that absolutely nothing for HP Compaq or "Compaq" is in the list.

    It is a great 3rd computer that I've updated w / spare parts, use it remotely, especially for music. Only problem was the dark model number. If anyone has something useful to add would be most appreciated. Thanks in advance...

    PS I'm currently trying to identify MB for what it's worth, but a number of alternative model that works would be great.

    Hello:

    Your model is a d500 CMT HP.

    1 GB 128 x 64-133 MHz PC133, 168P DIMM, 3.3V, sync

    Type of memory: , (non - ECC)
    Maximum memory: 3 GB
    Slots: 3

    This is the page for support and drivers for your PC.

    http://h20566.www2.HP.com/portal/site/hpsc/public/PSI/home/?cc=us & lang = in & sp4ts. OID = 96294 & Task = & AC.admitted = 1389381517647.876444892.199480143

    QuickSpecs:

    http://h18000.www1.HP.com/products/QuickSpecs/productbulletin.html#spectype=North_America & type = HTML & docid = 10946

    Because nobody does more than the memory, it will be hard to find and very expensive.

    You can plan on paying more $ $70 / 1 GB chip if you do not find the specification above used on a place like eBay.

    You can buy a newer, faster CMT from HP on eBay for less than $70 delivered.  Memory is much cheaper to buy as well.

    http://www.eBay.com/ITM/HP-DC7600-Pentium-4-3-0GHz-40Gb-512MB-DVDRW-XPPRO-30-day-warranty-/281231108334?PT=Desktop_PCs & Hash = item417aae28ee

  • is Acer Liquid Z320 smart phone really unlocked and can be used all over the world?

    is Acer Liquid Z320 smart phone really unlocked and can be used all over the world?

    NETWORK

    TechnologyGSM / HSPA
    2G-bandingGSM 850 / 900 / 1800 / 1900 - SIM 1 and SIM 2 (model dual-SIM only)
    3G bandsHSDPA
    Speed42.2/5.76 Mbps HSPA
    GPRSYes
    EDGEYes

    http://www.GSMArena.com/acer_liquid_z320-7531.php

    These are the tapes supported Z320, if as long as it is unlocked, you mean the possibility to use different carriers in the world, that Yes it is.

    at least if your don't buy it with a specific transport contract.

  • Is it possible to partition the hard drive by using software like Partition Master, install XP and an earlier version of Office on the new partition?

    Partitioning of a Windows 7 computer

    On a laptop Windows 7 HP, it is possible to partition the hard drive by using software like Partition Master, install XP and an earlier version of Office on the new partition? I know I can run Win7 XP mode, but many prefer a base XP environment. Yes, I have new copies unregistered XP and Office 2003.

    TIA,

    Steve

    Besides Partition Master you can also use Windows 7 "Disk Managment" to shrink the partition of Windows 7, create a new partition of the space "unallocated", and then do a formatting NTFS "Full".

    Installing dual Boot with Windows 7 and XP
    (Read each method in this article and that fits your needs)
    http://www.SevenForums.com/tutorials/8057-dual-boot-installation-Windows-7-XP.html

    EasyBCD allows to appear more user-friendly boot menu:
    http://NeoSmart.NET/DL.php?id=1

    J W Stuart: http://www.pagestart.com

  • Need instructions on how to use the recovery Partition to restore my OS to its original state.

    I need to use the recovery partition to restore my OS to its original state.  I'm getting crashes (invaded by "dumprep.exe" CPU cycles) and an occasional BSOD.

    What brand is your computer?  Some computer manufacturers, including Dell and HP, have a recovery partition on the hard drive of the new computers.  By pressing a special key combination when the computer starts, you can use the recovery partition to restore the computer to the way it was when it was new.  Looking for a message about the recovery options on the first screen that appears.

    Boulder computer Maven
    Most Microsoft Valuable Professional

Maybe you are looking for