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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:52:43+00:00 2026-06-04T12:52:43+00:00

i have one sql query as – SELECT name_1, dpid_clid, city FROM dts_master_dividend WHERE

  • 0

i have one sql query as –

SELECT name_1, dpid_clid, city 
 FROM dts_master_dividend 
 WHERE upper(name_1) like upper('%') 
   AND dpid_clid like upper('IN30290243450560%')
 ORDER BY name_1 asc, dpid_clid asc, dividend_type desc

It displays the results as –

ABHINAV  BHARTI IN30290243450560    PUNE
ABHINAV  BHARTI IN30290243450560    DELHI
ABHINAV  BHARTI IN30290243450560    PUNE
ABHINAV  DUBEY  IN30290243450560    PUNE
ABHINAV  BHARTI IN30290243450560    PUNE

But I want my result as –

ABHINAV  BHARTI IN30290243450560    PUNE
ABHINAV  BHARTI IN30290243450560    DELHI
ABHINAV  DUBEY  IN30290243450560    PUNE

That means only unique set of record..
How can I get it?

  • 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-04T12:52:44+00:00Added an answer on June 4, 2026 at 12:52 pm

    Try this

    select name_1, dpid_clid, city 
    from dts_master_dividend 
    where upper(name_1) like upper('%') and dpid_clid like upper('IN30290243450560%')
    group by name_1, dpid_clid ,city
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have sql statement one; select linkscat.id, linkscat.category from linkscat, contentlinks, links where contentlinks.linksid
I have a LINQ to SQL query: from at in Context.Transaction select new {
We're using SQL Server 2000 Query Analyser, and one issue we have is that
I have a few SQL (Select/Update/Insert) syntax that I will run inside PL/SQL one
I have simple function consist of one sql query CREATE FUNCTION `GetProductIDFunc`( in_title char
I have one Linq to SQL query that simply joins three tables and then
anyone know how to optimize SQL query for inserting data from select statement and
I have the following SQL query: SELECT CountryID, [10201] AS CountryGDPPerCapita, [10677] AS LifeExpTotal
I have more than one sql query(25 to be exact) and want to return
I'm looking for a way to optimize one SQL query that I have. I'm

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.