Autor Beitrag
GSE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: Do 31.07.03 16:18 
Hi Leutz,
meine Frage ist der Titel

Kurzes Bsp:
in einer Tabelle stehen folgende Werte
Hallo
Test
Hallo
test

mit Select Distinct kommt das raus:
Hallo
Test
test

Also 2mal "Test", will ich aber nicht:
weiß also jmd. wie man nicht CaseSensitive (Groß-, Kleinschreibung beachtend (mit SQl natürlich)) sucht

Wenn ichs so mache: SELECT DISTINCT(UPPER(projekt)) FROM DB.dbf kommt immer: projekt: Das Feld PROJEKT wurde nicht gefunden!Was soll das?

Danke im Vorraus!

mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)
Horst
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 120



BeitragVerfasst: Do 31.07.03 19:46 
Hallo,

um was für eine Datenbank handelt es sich.
ob casesensitive oder nicht hängt von der einstellung
der Datenbank ab.
wenn du es mit upper versucht würde ich es aber nicht klammern.

SELECT DISTINCT UPPER(spaltenname) FROM table

Gruß

Horst
:wave:
GSE Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: Fr 01.08.03 08:05 
Zitat:
SELECT DISTINCT UPPER(spaltenname) FROM table
Funktioniert auch nicht. Er zeigt mir dann immer an, das der Spaltenname den ich angegeben habe nicht existiert (wenn die Spalte projekt heißt, zeigt er mir an: Spalte PROJEKT exisitiert nicht).

Is´ eine DBase, wo kann ich einstellen, ob CaseSensitive oder nicht?

mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)