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 9167029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:17:29+00:00 2026-06-17T15:17:29+00:00

I have a table that contains the following data: – DATEURM IDV UNID –

  • 0

I have a table that contains the following data:

- DATEURM     IDV    UNID
- 2013-02-02  15259  W0L0TGF0572 
- 2013-02-02  15259  W0L0TGF0572
- 2013-02-02  15674  ZFA18503158 
- 2013-02-02  16157  ZFA18503158
- 2013-02-02  16157  ZFA18503158
- ...

and i use this query to select data from it:

SELECT * FROM TBL order_date WHERE DATEURM BETWEEN DATE 'today'+10 AND DATE 'today'+40 order by DATEURM asc ROWS 50

What I would like is to not get duplicate rows of the UNID column and the result be something like:

- DATEURM  IDV UNID
- 2013-02-02  15259  W0L0TGF0572 
- 2013-02-02  16157  ZFA18503158
- ...

I played around with DISTINCT and GROUP BY but didn’t manage to get any good result after a few hours 🙁

  • 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-06-17T15:17:30+00:00Added an answer on June 17, 2026 at 3:17 pm

    From your comment, you say now you want one row per unid and you don’t mind which other values you get, so try this:

    SELECT unid, min(dateurm) dateurm, min(idv) idv 
      FROM order_date
     WHERE DATEURM BETWEEN current_date + 10 AND current_date + 40
     group by unid
     order by 2
    

    over the same data I get:

    UNID        DATEURM             IDV
    =========== ========== ============ 
    W0L0TGF0572 2013-02-02        15259
    ZFA18503158 2013-02-02        15674
    
    SQL>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table that contains the following data: +----+----------+ | ID | ParentID
I have a table, Orgs, that contains the following data: ID Name AddressID 0
I have the following div that contains the table and its data queried from
I have a table that contains the following sample data:- ID Description 1 John
I have a table that contains the following columns: ID int, DISTANCE float, EVENT
I have the following requirement. I have a table with a column that contains
I have a table that contains all the data about users . Users can
I have a table that contains some meta data in an XML field. For
I have a table that contains a VARCHAR2 column called COMMANDS. The data in
Alright, so I have a table named Users that contains the following columns: Username

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.