dbWriter Home
IP to Country Look up
Site Map

IP to Country DB

Free Databases:

ASP Code

ASP Links

VB Script functions:
Array
Case/Select
In String (inStr)
Replace

HTML code:
SELECT Color
SELECT Countries
SELECT Language
SELECT State/Province

SQL:

SQL Functions:
Delete leading Char
Get Browser
Long number from IP

Stored Procedures:

SQL Tricks:
Delete ALL duplicates
Delete dup records

MISC
IP Address Owner
MS SQL Server

Mortgage Calcs:
how much is my payment
Loan Amortization
Loan Calculator
Mortgage Calculator
Motrgage Pay Off

dbWriter License

Link to US

Links

Contact US
 

SQL Distinct

We will use the Northwind database table to illustrate the usage of  SQL DISTINCT

 

EmployeeID   LastName FirstName Title TitleOfCourtesy BirthDate
1   Davolio Nancy Sales Representative Ms. 12/8/1948
2   Fuller Andrew Vice President, Sales Dr. 2/19/1952
3   Leverling Janet Sales Representative Ms. 8/30/1963
4   Peacock Margaret Sales Representative Mrs. 9/19/1937
5   Buchanan Steven Sales Manager Mr. 3/4/1955
6   Suyama Michael Sales Representative Mr. 7/2/1963
7   Fuller Robert Sales Representative Mr. 5/29/1960
8   Callahan Laura Inside Sales Coordinator Ms. 1/9/1958
9   Dodsworth Anne Sales Representative Ms. 1/27/1966
 

SELECT DISTINCT LastName
FROM Employees

 

The result:

Buchanan
Callahan
Davolio
Dodsworth
Fuller
Leverling
Peacock
Suyama

 

Note that only one Fuller is in the Result.
Partners/Links © 2005 - 2008 dbWriter.com All Rights Reserved
This site is protected by the dbWriter IPtoCountry MS/SQL database!!
Site map | Link to US
Contact Us

Sign up for PayPal and start accepting credit card payments instantly.