Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sql: distinct

Status
Not open for further replies.

anneoctaaf

Programmer
Dec 15, 2003
104
NL
I'm using a select as the data source of a datawindow. Now i need all the fields that are NOT empty, but i don't want any doubles:
select distinct(field)
from table
where field <> ""

PB has a problem with distinct, what is de correct function in PB?

Thanx
 
select distinct field
from table
where field <> ""

what database are u connecting to?
 
In my database painter that works fine, but i have to make a computed field or something and then in de "modify expression" window i get an error if i put distinct field
I'm using SELECT as a datasource for my dw. so i actually need a function of a computed field, but there is no distict function fgor computed fields. Do you know which other function does the same?

Thanx
 
u cannot use distinct in the "modify expression" window as DISTINCT is not a Powerscript fn. Instead try using "Surpress repeating values"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top