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

  • Home
  • SEARCH
  • 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 908437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:43:06+00:00 2026-05-15T16:43:06+00:00

I have a table with 14 columns in Oracle. All the columns are of

  • 0

I have a table with 14 columns in Oracle. All the columns are of integer type. i need to check no two columns in one row have same integer value in them. How can i do this using SQL. Or is it only possible to do using PL/SQL?

  • 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-15T16:43:07+00:00Added an answer on May 15, 2026 at 4:43 pm

    Check the following examples.
    Firstly I group the values into a collect. I’ve used the built in SYS.DBMS_DEBUG_VC2COLL but it is better if you create your won.
    Then I take that collection then do a MULTISET UNION DISTINCT with an empty collection of the same type. That will remove duplicated entries.

    select * from
     (select sys.dbms_debug_vc2coll(1,2,3) a, 
             sys.dbms_debug_vc2coll(1,2,3) multiset union distinct sys.dbms_debug_vc2coll() b
     from dual)
    where a=b;
    
    select * from
     (select sys.dbms_debug_vc2coll(1,2,3,1) a, 
             sys.dbms_debug_vc2coll(1,2,3,1) multiset union distinct sys.dbms_debug_vc2coll() b
     from dual)
    where a=b
    

    Finally I compare that DISTINCT’d collection with the original collection. If they match, then the collection already only had unique values.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have an oracle table with two columns: type varchar2 and data varchar2.
I have two columns(column1, column2) in my oracle database table named as demo .
I have an Oracle table which has a name,value,time columns.Basically the table is for
Suppose I have a table NAME with the columns PART_TYPE and VALUE. Each type
I have 3 columns in Oracle database having table mytable and i want records
I have an oracle table with a column from type SYS.XMLTYPE and a storage
The table columns have the data type BLOB and CLOB. What are the corresponding
I have table with two columns (startdate & enddate) and I have two submission
I have a table with columns 'id', 'name', 'value', 'uniqueConst' in both databases. Now
I have a table whose columns are varchar(50) and a float . I need

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.