Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6089613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:07:11+00:00 2026-05-23T12:07:11+00:00

My current query: SELECT DACTIONMILLIS, DACTIONDATE INTO WF_DACTIONMILLIS, WF_DACTIONDATE FROM WORKFLOWHISTORY WHERE ddocname=? and

  • 0

My current query:

SELECT DACTIONMILLIS, DACTIONDATE INTO WF_DACTIONMILLIS, WF_DACTIONDATE 
FROM WORKFLOWHISTORY 
WHERE ddocname=? and LOWER(DACTION)=?
and lower(DWFSTEPNAME)=?
and lower(DUSER)=? 
and rownum = 1
ORDER BY DACTIONDATE desc;

But because the rownum is applied before the order by I’m getting invalid results. I found the following topic on stackoverflow: How do I limit the number of rows returned by an Oracle query after ordering? but that discusses a select, not a select into

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T12:07:11+00:00Added an answer on May 23, 2026 at 12:07 pm
    SELECT DACTIONMILLIS, DACTIONDATE INTO WF_DACTIONMILLIS, WF_DACTIONDATE 
    FROM (
        SELECT DACTIONMILLIS, DACTIONDATE, WF_DACTIONDATE 
        FROM WORKFLOWHISTORY 
        WHERE ddocname=? and LOWER(DACTION)=?
        and lower(DWFSTEPNAME)=?
        and lower(DUSER)=? 
        ORDER BY DACTIONDATE desc
    )
    WHERE rownum = 1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My current query reads: SELECT entry_id, user_id, cat_id, AVG( rating ) as avg_rate FROM
with my current query and loop: $sched = mysql_query(SELECT * FROM `shows` ORDER BY
My current query: SELECT Series.*, Episodes.* FROM Series, Episodes WHERE EpisodeAirDate > '.time().' AND
Current query SELECT * FROM employee AS E INNER JOIN credential AS C ON
Here is my current query: SELECT sac.cred, s.status, (SELECT NVL (csl.census_dates, tl.census_dates) FROM schema.sections
Current query : SELECT order_id AS OrderNumber, ordName, ordLastName, question, answer FROM cart_survey JOIN
Current Query: SELECT DISTINCT HSP.HSP_ACCOUNT_ID, HSP.HSP_ACCOUNT_NAME, HSP.ADM_DATE_TIME, HSP.DISCH_DATE_TIME, HSP.TOT_CHGS, HSP_ACCT_MULT_DRGS.DRG_ID_TYPE_ID, HSP_ACCT_MULT_DRGS.DRG_MPI_CODE FROM C.HSP HSP
the current SQL query works fine locally on MAMP 1.8.4 running MySQL 5.1.37. SELECT
Is is possible to query the current browser from within an applet? I would
I'm trying to get the query string from a string (not the current URL).

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.