logic for this query

Hi friends,
I use this logic to get the MEP who's birthday this month...

SELECT *.
WCP
WHERE TO_CHAR (hire_date, "MM") = TO_CHAR (SYSDATE, 'MM')

but I want only these emp which the join date is more than a year...

How to get that

Thanks in advance

Hello

Try this

with datetab as (
select to_date('10-03-2010','dd-mm-rrrr') as hire_dt from dual union
select to_date('10-03-2011','dd-mm-rrrr') as hire_dt from dual union
select to_date('10-03-2009','dd-mm-rrrr') as hire_dt from dual)
select * from datetab where to_char(hire_dt,'MM') = to_char(sysdate,'MM') and (to_char(sysdate,'rrrr') - to_char(hire_dt,'rrrr')) >= 1

see you soon

VT

Tags: Database

Similar Questions

  • Why between date is not return data for this query?

    Hello
    I have a table with this structure and I write this query to retrieve a few lines based on certain conditions, but this query returns no data. Can you please tell why?
    ID     DT
    
    003     11/8/2011
    002     10/8/2011
    001     9/8/2011
    And the execution of the query:
    SELECT * FROM TABLE_NAME WHERE DT BETWEEN TO_DATE('08/08/2011','dd/mm/yyyy') AND TO_DATE('12/08/2011','dd/mm/yyyy');
    Published by: starting August 13, 2011 07:10

    >

    >

    But what is the problem with that, why this date does not match when I'm providing the date format?

    What part don't you understand? You have not used TO_DATE when inserting data and default date format is dd/mm/yyyy, right? Same default date format is used if you are running:

    SELECT * FROM TABLE_NAME

    Original of your post States select returns above:

    ID     DT
    
    003     11/8/2011
    002     10/8/2011
    001     9/8/2011
    

    So the dates that you inserted are November 8, 2011, October 8, 2011-September 8, 2011. TO_DATE('08/08/2011','dd/mm/yyyy') is now August 8, 2011 and TO_DATE('12/08/2011','dd/mm/yyyy') is August 12, 2011. Then of course:

    SELECT * FROM TABLE_NAME WHERE DT BETWEEN TO_DATE('08/08/2011','dd/mm/yyyy') AND TO_DATE('12/08/2011','dd/mm/yyyy').

    will return all the lines. Bottome line - never write code that uses the implicit conversions date since your code becomes dependent on the NLS client settings and maybe working for a client and fail or produce erroneous results for other customers.

    SY.

  • need help for this query

    Hi gurus

    need help with this query,

    I want to display the records in the table emp
    SQL> Select Deptno,sal,sal/SUMSAL Percent,rn
      2  From  ( Select emp.*,Sum(Sal) Over() "SUMSAL",Row_number() Over(Order by sal Desc) rn
      3   From emp
      4        )
      5  /
    
          EMPNO     DEPTNO        SAL    PERCENT         RN
    --------- ---------- ---------- ---------- ----------
         7839         10       5000 .172265289          1
         7902         20       3000 .103359173          2
         7788         20       3000 .103359173          3
         7566         20       2975 .102497847          4
         7698         30       2850 .098191214          5
         7782         10       2450 .084409991          6
         7499         30       1600 .055124892          7
         7844         30       1500 .051679587          8
         7934         10       1300 .044788975          9
         7521         30       1250 .043066322         10
         7654         30       1250 .043066322         11
         7876         20       1100 .037898363         12
         7900         30        950 .032730405         13
         7369         20        800 .027562446         14
    
    14 rows selected.
                   
     
    I want just the records
          EMPNO     DEPTNO        SAL    PERCENT         RN
    ---------- ---------- ---------- ---------- ----------
          7839         10       5000 .172265289          1
          7902         20       3000 .103359173          2
          7788         20       3000 .103359173          3
          7566         20       2975 .102497847          4
          7698         30       2850 .098191214          5
    with sum (Percent) of remaing records.....
        Others                          .420327304  
    Thank you

    Published by: SeenuGuddu on February 27, 2011 03:39
    with a as
    (
    Select
    Empno, Deptno ,sal, sal/SUMSAL Percent,
    case when rn<=5 then rn else null end rnm
    From  (Select emp.*, Sum(Sal) Over() "SUMSAL",
    Row_number() Over(Order by sal Desc) rn
    From emp)
    )
    select
    case when max(rnm) is not null then to_char(max(empno)) else 'Others:' end empno,
    case when max(rnm) is not null then max(deptno) else null end deptno,
    case when max(rnm) is not null then max(sal) else null end sal,
    to_char(sum(percent), '90.99') percent,
    max(rnm) rn
    from a
    group by rnm order by rnm
    
    EMPNO                                    DEPTNO                 SAL                    PERCENT RN
    ---------------------------------------- ---------------------- ---------------------- ------- ----------------------
    7839                                     10                     5000                     0.17  1
    7902                                     20                     3000                     0.10  2
    7788                                     20                     3000                     0.10  3
    7566                                     20                     2975                     0.10  4
    7698                                     30                     2850                     0.10  5
    Others:                                                                                  0.42                         
    
    6 rows selected
    
  • Please help get the logic for this

    Hello Frs,

    I need like if a number is a whole number divide by 100, otherwise if we number integer (for ex 500.23) then leave it as it is how to write a logic to find out if a number is integer or not?

    I need to write a function similar to the following

    Begin
    If invoice_amount = 500 (integer)
    then a = invoice_amount/100;
    on the other
    a = invoice_amount;
    end if;
    return a;
    end;

    If anyone has idea pls help


    Thank you
    Marilou

    Hello

    You can do this in SQL by using the CASE statement.
    For example:

    SELECT  CASE            WHEN  invoice_amount = TRUNC (invoice_amount)            THEN  invloce_amount / 100            ELSE  invoice_amount        END     AS a...
    
  • get an error for this query

    Hello

    I am getting an error for the below query

    "Keyword not found where expected"

    I need to use the Banking Code as alias, how do I change the following query?

    Select bank_code as rm_nrd_csr Bank Code

    Hello
    Remove the space in the alias

    Select bank_code in the code of rm_nrd_csr

    (or)
    Use quotes

    Select bank_code in the "Bank Code" in rm_nrd_csr

    Kind regards
    Simma.

  • Logic for this requirement

    Hi friends,
    My requirement is a bit strange

    I ' l explain cases...

    It's fake
    / * Select
    When case months_between(:fut_date,sysdate) > 1
    then turn (months_between (: fut_date, sysdate))
    on the other
    CEIL (MONTHS_BETWEEN (: fut_date, sysdate))
    double end * /.

    I wrote this one which takes a date parameters and should give me the results as specified below... but does not very well

    test conditions are

    When the parameter is * 30 - Apr - 2011 * and sysdate is * 23 - Apr - 2011 * should give me * 0 *.

    When the parameter is * 31-May-2011 * and sysdate is * 01 - apr - 2011 * should give me * 1 *.

    When the parameter is * January 30, 2012 * and sysdate is * 01 - dec - 2011 * should give me * 1 *.

    When the parameter is * June 30, 2011 * and sysdate is * 01 - apr - 2011 * should give me * 2 *.

    When the parameter is * June 30, 2011 * and sysdate is * 21 - Apr - 2011 * should give me * 2 *.

    When the parameter is * August 30, 2011 * and sysdate is * 21 - Apr - 2011 * should give me * 4 *.

    When the parameter is * August 30, 2011 * and sysdate is * 01 - apr - 2011 * should give me * 4 *.

    When the parameter is * 30 - Apr - 2011 * and sysdate is * 30 - Apr - 2011 * should give me * 4 *.

    hope am clear


    Thanks in advance

    Hello

    If you want the months between the two dates (an integer), no matter where in the month, those dates are. For example, if fut_dat in the month of August and SYSDATE is in April of the same year, the result should be 4. It does not matter if fut_dat is the beginning, middle or end of the month of August, the result is always exactly 4 and it does not matter if SYSDATE is at the beginning, middle or end of April, the result is always exactly 4.
    Is this fair?

    If so:

    MONTHS_BETWEEN ( TRUNC (fut_dat, 'MONTH')
                , TRUNC (SYSDATE, 'MONTH')
                )
    

    TRUNC (dt, 'MONTH') returns a DATE that is the 1st of the month even as dt.
    MONTHS_BETWEEN (T2D, t1d) returns an integer if t1d and T2D are the day of their month (for example, if they are both the 1st of the month).

    This assumes that the fut_dat data type is date. If: fut_dat is a VARCHAR2, then use TO_DATE (: fut_dat,...) where I used fut_dat.

    776317 wrote:
    ... when the parameter is * 30 - Apr - 2011 * and sysdate is * 30 - Apr - 2011 * should give me * 4 *.

    It must be a typing mistake. You don't want to 0, not 4?

    I hope that answers your question.
    If not, post a small example of data (for example, CREATE TABLE, and only relevant columns, INSERT statements), and the results you want from this data.
    Explain how you get these results from these data.
    Always tell what version of Oracle you are using.

    Published by: Frank Kulash, April 23, 2011 05:43

  • Another approach for this query

    Hi all

    We can write better than the following query?

    SELECT SUBSTR (TO_CHAR (SUM (TO_NUMBER (SUBSTR (12344 / 222 / 333, 1, 8))),))

    LENGTH (SUM (TO_NUMBER (SUBSTR (12344 / 222 / 333, 1, 8)))-9)

    )

    OF THE DOUBLE

    Thank you

    And demonstrate that with "columns" of data...

    SQL > ed
    A written file afiedt.buf

    1 with mytable as (select '12344 ' a, '222' b, 333' double c)
    2  --
    3 end of table simulated
    4  --
    5. SELECT floor (mod ((A/B/C) * power (10.7), 10))
    6 * from myTable
    SQL > /.

    FLOOR (MOD ((A/B/C) * POWER (10.7), 10))
    ----------------------------------
    7

  • How to use the case for this query.

    I got this name from the Employee table.
    columns...

    EmpId,
    EmpType,
    Join date,
    Date of resignation

    Now in EmpType it can be either 'P' OR 'C '.

    So I want to check if the EmpTYpe is 'P' then joiningdate must not be null
    and if the EmpType is 'C' then resignation date must not be null.

    So only want to employee records.
    Help, please.

    Select * from employee
    where (employeetype = 'c' and joinngdate is not null)
    or (employeetype = 'p' and resigndate is not null)

  • How to get the total number of records for this query

    SELECT SSN, FIRST, MID, LAST, UCX_UCFE, TRAPOSS, DUAPOSS, CLAIM_SEQ, CLAIM_DT, MAX (INSERT_DT) INSERT_DT.
    CLAIM_STAT, ISSUE_CDE, AGENT_ID FROM (SELECT A.SSN, A.FIRST A.MID, A.LAST, B.UCX_UCFE, B.TRAPOSS, B.DUAPOSS,
    C.CLAIM_SEQ, C.CLAIM_DT, C.INSERT_DT, C.CLAIM_STAT, C.ISSUE_CDE,
    RN C.AGENT_ID, ROWNUM
    THE APPLICANT HAS, CLMTELIG B, UICLAIMS C
    WHERE A.CLMT_SEQ = B.CLMT_SEQ AND B.CLMT_SEQ = C.CLMT_SEQ AND TRUNC (C.INSERT_DT) BETWEEN 1 JANUARY 09 ' AND 5 JANUARY 09')
    GROUP OF NSS, BEGINNING, MIDDLE, LAST, UCX_UCFE, TRAPOSS, DUAPOSS, CLAIM_SEQ, CLAIM_DT, CLAIM_STAT, ISSUE_CDE, AGENT_ID



    Thank you all in advance for watching in my post.

    Select count (*)
    Of
    (.. .your question here...) ;

  • Help in this query

    I want to migrate data from DataBase1 base2 which has different structures.

    Base2 table has values from several tables from base1. I use IBM Datastage designer for migration.

    Can someone help me to write the logic for this. Thanks in advance...

    I should pull data base1 to base2 based on Emp_id

    DataBase1.Table1:

    EmpIDEmpNameStartdtTraineddtprojectdtprojectenddtenddt
    1XXX1-Jan-201315-jan-201316-jan-20131-may-20131-Jun-2013
    2YYY3rd-Jan-20136-Jun-2013(null)(null)7th-Aug-2013

    DataBase1.Table2:

    EmpIDDeptIDDeptName
    1100HE
    2200ADMIN

    DataBase2.Table1 (Target_Table):

    Emp_idDeptIDDeptNameDate_TypeDate
    1100HEStart_dt1-Jan-2013
    1100HETrined_date15-jan-2013
    1100HEProject_dt16-jan-2013
    1100HEProject_finish_dt1-may-2013
    1100HEEnd_dt1-Jun-2013
    2200ADMINStart_dt3rd-Jan-2013
    2200ADMINTrained_dt6-Jun-2013
    2200ADMINEnd_dt7th-Aug-2013
    2200ADMINproject_dt(null)
    2200ADMINproject_finish_dt(null)

    Thank you

    Suma

    with

    emp_table as

    (select empid 1, "XXX" empname, to_date('Jan-1-2013','Mon-dd-yyyy') startdt, to_date('Jan-15-2013','Mon-dd-yyyy') traineddt, to_date('Jan-16-2013','Mon-dd-yyyy') projectdt, to_date('May-1-2013','Mon-dd-yyyy') projectenddt, to_date('Jun-1-2013','Mon-dd-yyyy') enddt of all the double union)

    Select 2,'YYY',to_date('Jan-3-2013','Mon-dd-yyyy'),to_date('Jun-6-2013','Mon-dd-yyyy'),null,null,to_date('Aug-7-2013','Mon-dd-yyyy ') of double

    ),

    dept_table as

    (select empid 1, 100 deptid, deptname Union ' IT' double all the)

    Select 2 200, 'ADMIN' of the double

    )

    Select empid, deptid, deptname, date_type, to_char(date_,'fmMon-ddth-yyyy') date_

    from (select d.empid d.deptid, d.deptname, e.startdt, e.traineddt, e.projectdt, e.projectenddt, e.enddt

    dept_table d,

    e emp_table

    where d.empid = e.empid

    )

    must include null values (date_ for date_type in (startdt as 'Start_dt', traineddt as 'Trained_dt', projectdt as 'Project_dt',

    projectenddt as 'Project_finish_dt', enddt as 'End_dt '.

    )

    )

    EMPID DEPTID DEPTNAME DATE_TYPE DATE_
    1 100 HE Start_dt 1-Jan-2013
    1 100 HE Trained_dt 15-jan-2013
    1 100 HE Project_dt 16-jan-2013
    1 100 HE Project_finish_dt 1-may-2013
    1 100 HE End_dt 1-Jun-2013
    2 200 ADMIN Start_dt 3rd-Jan-2013
    2 200 ADMIN Trained_dt 6-Jun-2013
    2 200 ADMIN Project_dt -
    2 200 ADMIN Project_finish_dt -
    2 200 ADMIN End_dt 7th-Aug-2013

    Concerning

    Etbin

  • Logic of SQL query for shipping to calculate prices

    Hi Experts,

    As I have created a thread already in this regard. You can refer to my previous thread in [previous Thread: http://forums.oracle.com/forums/thread.jspa?threadID=1027799 & tstart = 0]

    I'll post my question again in this thread

    Records from the table
         
    SHIPMENT_ID     SHIPMENT_PRICE     SHIPMENT_ADDT_PRICE     PRODUCT_ID     PRODUCT_QTY     VIRTUAL_COLUMN (Just for your Reference)     
                                  
    1000          6.95          2               11          4          1
    1000          6.95          2               11          4          2
    1000          3.95          1               13          2          3
    1000          3.95          1               12          2          4
    1001          12.95          2               11          4          5
    1001          12.95          1               13          2          6
    1001          12.95          2               11          4          7
    1001          12.95          1               12          2          8
    1002          20.95          1               12          2          9
    1002          20.95          2               11          4          10
    1002          20.95          2               11          4          11
    1002          20.95          1               13          2          12
    Repeated values in table with Maximum Value,
    SHIPMENT_ID     SHIP_PRICE     SHIPMENT_ADDT_PRICE     PRODUCT_QTY     PRODUCT_ID     VIRTUAL_COLUMN
    1000          6.95          2               4          11          1
    1000          6.95          2               4          11          2
    1001          12.95          2               4          11          5
    1001          12.95          2               4          11          7
    1002          20.95          2               4          11          10
    1002          20.95          2               4          11          11
    *
    In this case, there are two same lines with a maximum value for all shipments of three,
    but the need to take a line like maximum and to consider the other as not maximum line to process logic
    *

    I looked at the folder with the value VIRTUAL_COLUMN 1.5 and 10 as maximum value and other values not maximum
    Expected Result (For Each Row) - Just listed for one shipment_id = 1000 here
    SHIPMENT_ID     SHIP_PRICE     CALCULATION          STEPS                                        VIRTUAL_COLUMN     
    1000          41.7          (1*6.95)+((4-1)*2)     Maximum ShipPrice + (PRODUCT_QTY-1)*SHIPMENT_ADDT_PRICE          1
    1000          8          (4*2)               PRODUCT_QTY*SHIPMENT_ADDT_PRICE                         2
    1000          2          (2*1)               PRODUCT_QTY*SHIPMENT_ADDT_PRICE                         3
    1000          2          (2*1)               PRODUCT_QTY*SHIPMENT_ADDT_PRICE                         4
    * Note: The virtual column in the data provided is just for the reference and not exists in the table

    Thank you
    Dharan V

    Queries 1 and query 2 are wrong because two of them use the SHIPMENT_PRICE of the line and not the MAXIMUM SHIPMENT_PRICE for this product like you id requested in the original message.
    To get the MOST out of SHIPMENT_PRICE, you must use my last request:

    SQL> with shipment_table as (
      2  select 1000 SHIPMENT_ID, 6.95 SHIPMENT_PRICE, 2 SHIPMENT_ADDT_PRICE,
      3         11 PRODUCT_ID, 4 PRODUCT_QTY, 1 VIRTUAL_COLUMN from dual union
      4  select 1000,6.95,2,11,4,2 from dual union
      5  select 1000,6.95,2,11,4,3 from dual union
      6  select 1000,6.95,2,11,4,4 from dual union
      7  select 1001,12.95,2,11,4,5 from dual union
      8  select 1001,12.95,2,11,4,6 from dual union
      9  select 1001,12.95,2,11,4,7 from dual union
     10  select 1001,12.95,2,11,4,8 from dual union
     11  select 1002,20.95,1,12,2,9 from dual union
     12  select 1002,20.95,1,12,2,10 from dual union
     13  select 1002,20.95,1,12,2,11 from dual union
     14  select 1002,20.95,1,12,2,12 from dual)
     15  SELECT shipment_id,
     16         shipment_price,
     17         shipment_addt_price,
     18         product_id,
     19         product_qty,
     20         CASE
     21            WHEN ROW_NUMBER() OVER (PARTITION BY shipment_id
     22                 ORDER BY shipment_addt_price DESC) = 1
     23            THEN
     24               (max(shipment_price) over (PARTITION BY shipment_id))
     25               + (product_qty - 1) * shipment_addt_price
     26            ELSE
     27               product_qty * shipment_addt_price
     28         END price
     29    FROM shipment_table;
    
    SHIPMENT_ID SHIPMENT_PRICE SHIPMENT_ADDT_PRICE PRODUCT_ID PRODUCT_QTY          PRICE
    ----------- -------------- ------------------- ---------- ----------- --------------
           1000           6,95                   2         11           4        12.9500
           1000           6,95                   2         11           4         8.0000
           1000           6,95                   2         11           4         8.0000
           1000           6,95                   2         11           4         8.0000
           1001          12,95                   2         11           4        18.9500
           1001          12,95                   2         11           4         8.0000
           1001          12,95                   2         11           4         8.0000
           1001          12,95                   2         11           4         8.0000
           1002          20,95                   1         12           2        21.9500
           1002          20,95                   1         12           2         2.0000
           1002          20,95                   1         12           2         2.0000
           1002          20,95                   1         12           2         2.0000
    
    12 rows selected.
    

    Look at line 24 of the query and you will see the difference.

    On your data, there is no difference because the same product as always the same shipment_price...
    We will change a value in the sample data:

    Query 1

    SQL> with shipment_table as (
      2  select 1000 SHIPMENT_ID, 6.95 SHIPMENT_PRICE, 2 SHIPMENT_ADDT_PRICE,
      3         11 PRODUCT_ID, 4 PRODUCT_QTY, 1 VIRTUAL_COLUMN from dual union
      4  select 1000,6.95,2,11,4,2 from dual union
      5  select 1000,100.95,2,11,4,3 from dual union
      6  select 1000,6.95,2,11,4,4 from dual union
      7  select 1001,12.95,2,11,4,5 from dual union
      8  select 1001,12.95,2,11,4,6 from dual union
      9  select 1001,12.95,2,11,4,7 from dual union
     10  select 1001,12.95,2,11,4,8 from dual union
     11  select 1002,20.95,1,12,2,9 from dual union
     12  select 1002,20.95,1,12,2,10 from dual union
     13  select 1002,20.95,1,12,2,11 from dual union
     14  select 1002,20.95,1,12,2,12 from dual)
     15  SELECT
     16     SHIPMENT_ID,
     17     SHIPMENT_PRICE,
     18     SHIPMENT_ADDT_PRICE,
     19     PRODUCT_ID,
     20     PRODUCT_QTY,
     21     CASE
     22        WHEN ROW_NUMBER() OVER (PARTITION BY SHIPMENT_ID
     23             ORDER BY SHIPMENT_ADDT_PRICE DESC) = 1
     24        THEN
     25           SHIPMENT_PRICE + (PRODUCT_QTY - 1) * SHIPMENT_ADDT_PRICE
     26        ELSE
     27           PRODUCT_QTY * SHIPMENT_ADDT_PRICE
     28     END NEW_SHIP_PRICE
     29  FROM shipment_table;
    
    SHIPMENT_ID SHIPMENT_PRICE SHIPMENT_ADDT_PRICE PRODUCT_ID PRODUCT_QTY NEW_SHIP_PRICE
    ----------- -------------- ------------------- ---------- ----------- --------------
           1000           6,95                   2         11           4          12,95
           1000           6,95                   2         11           4              8
           1000           6,95                   2         11           4              8
           1000         100,95                   2         11           4              8
           1001          12,95                   2         11           4          18,95
           1001          12,95                   2         11           4              8
           1001          12,95                   2         11           4              8
           1001          12,95                   2         11           4              8
           1002          20,95                   1         12           2          21,95
           1002          20,95                   1         12           2              2
           1002          20,95                   1         12           2              2
           1002          20,95                   1         12           2              2
    
    12 rows selected.
    

    My query:

    SQL> with shipment_table as (
      2  select 1000 SHIPMENT_ID, 6.95 SHIPMENT_PRICE, 2 SHIPMENT_ADDT_PRICE,
      3         11 PRODUCT_ID, 4 PRODUCT_QTY, 1 VIRTUAL_COLUMN from dual union
      4  select 1000,6.95,2,11,4,2 from dual union
      5  select 1000,100.95,2,11,4,3 from dual union
      6  select 1000,6.95,2,11,4,4 from dual union
      7  select 1001,12.95,2,11,4,5 from dual union
      8  select 1001,12.95,2,11,4,6 from dual union
      9  select 1001,12.95,2,11,4,7 from dual union
     10  select 1001,12.95,2,11,4,8 from dual union
     11  select 1002,20.95,1,12,2,9 from dual union
     12  select 1002,20.95,1,12,2,10 from dual union
     13  select 1002,20.95,1,12,2,11 from dual union
     14  select 1002,20.95,1,12,2,12 from dual)
     15  SELECT shipment_id,
     16         shipment_price,
     17         shipment_addt_price,
     18         product_id,
     19         product_qty,
     20         CASE
     21            WHEN ROW_NUMBER() OVER (PARTITION BY shipment_id
     22                 ORDER BY shipment_addt_price DESC) = 1
     23            THEN
     24               (max(shipment_price) over (PARTITION BY shipment_id))
     25               + (product_qty - 1) * shipment_addt_price
     26            ELSE
     27               product_qty * shipment_addt_price
     28         END price
     29    FROM shipment_table;
    
    SHIPMENT_ID SHIPMENT_PRICE SHIPMENT_ADDT_PRICE PRODUCT_ID PRODUCT_QTY          PRICE
    ----------- -------------- ------------------- ---------- ----------- --------------
           1000           6,95                   2         11           4       106.9500
           1000           6,95                   2         11           4         8.0000
           1000           6,95                   2         11           4         8.0000
           1000         100,95                   2         11           4         8.0000
           1001          12,95                   2         11           4        18.9500
           1001          12,95                   2         11           4         8.0000
           1001          12,95                   2         11           4         8.0000
           1001          12,95                   2         11           4         8.0000
           1002          20,95                   1         12           2        21.9500
           1002          20,95                   1         12           2         2.0000
           1002          20,95                   1         12           2         2.0000
           1002          20,95                   1         12           2         2.0000
    
    12 rows selected.
    

    Max
    http://oracleitalia.WordPress.com

    Published by: Massimo Ruocchio, February 12, 2010 15:10
    Examples added

  • Windows Update driver Fresco Logic USB Hub rot caused the pilot to read device status: the drivers for this device are not installed. (Code 28).

    Windows Update driver Fresco Logic USB Hub rot caused the pilot to read device status: the drivers for this device are not installed. (Code 28). The Roll Back button is not active. Where can I get the previous driver that came with my system. ASUS N53S Windows 7. Thank you very much.

    Hello

    Thanks for posting in the Microsoft Community.

    I understand your annoyance that you cannot update the driver hub USB rot. Please follow the steps below to help you to solve the problem.

    I would like to inform you that a Code 28 error is caused by a driver missing for that piece of hardware.

    There are all sorts of reasons that a driver could not be installed for a device, but your troubleshooting the problem will be the same regardless of the root cause.

    • Remove or reconfigure newly installed unit.
    • Restore the version before your driver update.
    • Use system restore to undo recent changes in Device Manager.

    Step 1: Roll back the driver to the version before your update.

    If you are having problems with your computer or device after upgrading sound driver, you can restore to an earlier device driver. If you are having problems with your computer or device after upgrading sound driver, you can restore to an earlier device driver. If you are having problems with your computer or device after upgrading sound driver, you can restore to an earlier device driver. If you are having problems with your computer or device after upgrading sound driver, you can restore to an earlier device driver. Check out the link below to make back the driver:

    http://Windows.Microsoft.com/en-in/Windows/restore-driver-previous-version#1TC=Windows-7

    When Windows 7 starts up again, it will load with the device driver of this material that you had previously installed.

    I suggest you to uninstall the driver from hub to rot Fresco Logic USB Device Manager and install the most recent on the manufacturer's Web site.

    Tips for solving common driver problems:

    http://Windows.Microsoft.com/en-us/Windows7/tips-for-fixing-common-driver-problems

     

     

    Hope this information is useful. Feel free to get back to us for further questions or problems related to the Windows operating system.

    Thank you.

  • Kindly guide me for small query, try to implement the logic of filtering below

    Hi all

    Ask your kind help in small query below. I need help for Bold Italic clause of the query.

    Without bold italics, this query returns 10 records. With below the case diagram, you can understand my concern.

    My requirement is to add the three parameters of input as I_PROCESS_ID, I_BASE_CCY, I_SEC_CCY filter.  I'm not able to satisfy the CASE 1. Please guide...

    If I put all NULL entries, I get no recording while I need to get all THE records with all three input parameter with null value.

    CASEI_PROCESS_IDI_BASE_CCYI_SEC_CCYExpected resultComments
    1NULL VALUENULL VALUENULL VALUE10 linesNeed help
    2NOT NULLNULL VALUENULL VALUERows filtered on the basis of ID_processusWorks well
    3NULL VALUENOT NULLNOT NULLRows filtered on the basis of BASE_CCY & SEC_CCYWorks well

    SELECT FT. ID_PROCESSUS,

    FT. FEED_DT,

    CARD. NORMALIZED_BASE_CCY,

    CARD. NORMALIZED_SECONDARY_CCY

    OF SAGEDBO. FX_TRANS_REPLICA_90DAYS FT,

    (SELECT DISTINCT BASE_CCY, SECONDARY_CCY

    OF SAGEDBO. FX_CCY_NORMALIZATION_MAP

    ) MAP

    WHERE PI. BASE_CCY = MAP. BASE_CCY

    AND PI. SECONDARY_CCY = MAP. SECONDARY_CCY

    AND)

    (FT. ID_PROCESSUS = I_PROCESS_ID

    OR

    (

    CARD. BASE_CCY = I_BASE_CCY

    AND

    CARD. SECONDARY_CCY = I_SEC_CCY

    )

    )

    );

    So if the I_... are of non-null values, they should be used to filter the results, but if they are null all results should be returned? Try something like this:

    (FT. ID_PROCESSUS = I_PROCESS_ID OR I_PROCESS_ID IS NULL)

    AND

    ((MAP. BASE_CCY = I_BASE_CCY AND MAP. (SECONDARY_CCY = I_SEC_CCY) OR (I_BASE_CCY IS NULL AND I_SEC_CCY IS NULL))

  • Dialog box that says ' Creative Cloud Installer wants to make changes. Type your password for this purpose"- I type my password for Adobe ID (creative cloud), but it will not accept it. who should I go for help with this query?

    Dialog box that says ' Creative Cloud Installer wants to make changes. Type your password for this purpose"- I type my password for Adobe ID (creative cloud), but it will not accept it. who should I go for help with this query?

    It does not ask the cloud your computer admin password password!

  • How to make the simple query for this scenario... ?

    Hello:

    Dummy table provided for simplicity.

    It's my database table (Table_A)

    Date1 | Plane1 | Category | Duration | Fees
    01/01/2011 | A | Gold | 5. 2
    01/01/2011 | C | Money | 4. 11
    01/01/2011 | B | Gold | 6. 2
    01/01/2011 | D | Gold | 2. 4
    01/01/2011 | B | Gold | 3. 5
    01/01/2011 | A | Money | 4. 8
    01/01/2011 | B | Gold | 1. 3

    I need to write a query to get the result below:

    Date1 | Plane1 | Sum_Duration | Sum_Charge | Sum_Gold_Duration | Sum_Gold_Charge | Sum_Silver_Duration | Sum_Silver_Charge
    01/01/2011 | A | 9. 10. 5. 2. 4. 8
    01/01/2011 | B | 10. 10. 10. 10. 0 | 0
    01/01/2011 | C | 4. 11. 0 | 0 | 4. 11
    01/01/2011 | D | 2. 4. 2. 4. 0 | 0

    This query will provide the 1st four columns:

    SELECT Date1,
    base1,
    Sum (Duration) Sum_Duration,
    Sum (load) Sum_Charge
    FROM TABLE_A
    GROUP BY date1, rarateplan

    But I need to know how to get the rest of the columns (i.e. Summary according to categories; from 5 to 8 columns)? Is this can be done in a single query without writing subqueries?

    Please let me know, (with code), the best way.

    Thank you-
    Tanvir

    Use like this:

    SELECT Date1,
    base1,
    Sum (Duration) Sum_Duration,
    Sum (load) Sum_Charge,
    SUM (decode(Category,'Gold',duration,0)) Sum_Gold_Duration,
    SUM (decode(Category,'Gold',charge,0)) Sum_Gold_charge,
    SUM (decode(Category,'Silver',duration,0)) Sum_Silver_Duration,
    SUM (decode(Category,'Silver',charge,0)) Sum_Silver_charge
    FROM TABLE_A
    GROUP BY date1, rarateplan

    Published by: SANT007 on August 11, 2011 11:04

Maybe you are looking for

  • Escalation of the Dispute of Charge

    Hello Several counts of Apple a few months old, I noticed on my checking account. I had problems with this before where my child charged in-app purchases, and Apple has been kind enough to help me with these. When I question them last time I asked if

  • No sound until what I press turn on/off

    I'm having the same issue here: [http://forums.computers.toshiba-europe.com/forums/thread.jspa?threadID=57055] I don't get all the sounds unless I press toggle at the top right of the keyboard. It's nothing to do with windows (windows shows her is pa

  • valve gear

    Hello people NOR wise. I am using the below attached text file to control a series of taps. After several tries, I get errors (200524, etc.) and when it runs the sequence is far away. I have an idea were I'm messing things up, but I need some ideas o

  • [Aspire One] Tilt screen breaks webcam and USB

    I have a netbook Aspire One ZG5 with Windows XP Home edition. If I tilt/adjust the screen at all, I get two problems: (1) I heard the familiar sound of cutting something of a USB port, a USB icon appears in the system tray temporarily.  It is said th

  • G6-1b23ca: upgrade HDD 1 TB - HP Pavilion g6-1b23ca

    I have a HP Pavilion g6-1b23ca (purple) without a HARD drive and was eager to put in a 1 TB HARD drive, but I'm not sure what will be compatible and FAST. . I'm 'hope' to spend less than $100, or even $80 if possible. I use it for most, movies, and g