Solved

How do I return a list of unique account numbers?

Posted on 2008-06-17
2
219 Views
Last Modified: 2010-03-20
I have a table that lists all the billing codes assigned to each account.  I want to create a table that will lists the account that don't have a certain code and put those records into a new table.  Since the same account number can be listed multiple times in the table I am querying, how do I get the account to only appear once in the table I want to create?

Thanks.
0
Comment
Question by:vsllc
2 Comments
 
LVL 16

Accepted Solution

by:
brad2575 earned 500 total points
ID: 21806298
You just do a "Select Distinct AccountNumber " 

The distinct keyword gets unique numbers.

0
 

Author Comment

by:vsllc
ID: 21807559
Thanks.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

As they say in love and is true in SQL: you can sum some Data some of the time, but you can't always aggregate all Data all the time! Introduction: By the end of this Article it is my intention to bring the meaning and value of the above quote to…
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now