Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)

  • RE: Recent Dates Query

    Try this

    select id,pmt2.account,pmt2.date

    from PaymentTable pmt2,

              ( select distinct account,max(Date) date

                        from PaymentTable

                        group by (account))pmt1

    where pmt2.account=pmt1.account

    and pmt2.date=pmt1.date

    Have a great day

     

  • RE: Complicated Query

    Try this

    select

    distinct TABLE1.ID ID,TABLE1.FIRESTNAME FIRSTNAME,LASTNAME,

  • RE: days calculation problem in oracle

    Try this

    select (Todate-FromDate) "NoOfdays" from dual.

  • RE: Including Sl.No column with the record set

    Try this

    select tempemp.rank,tempemp.empno,ename,age

    from emp,(select rank=count(*),empno=A.empno

              from  (select empno from emp)A,

                    (select empno from emp)B

    where A.empno>=B.empno

    group by A.empno)tempemp

    where tempemp.empno=emp.empno

         

  • RE: Error 512: Subquery returned more than 1 value....

    If the you are equating one value from the outer query but the subquery returns more than one value in that case this type of error occurs.

Viewing 5 posts - 1 through 5 (of 5 total)