Click here to Skip to main content
16,011,170 members
Home / Discussions / Database
   

Database

 
QuestionWhats wrong with this picture? Pin
Robby22-Aug-02 3:07
Robby22-Aug-02 3:07 
AnswerRe: Whats wrong with this picture? Pin
notadood22-Aug-02 3:12
notadood22-Aug-02 3:12 
GeneralRe: Whats wfdgwith this picture? Pin
Anonymous22-Aug-02 9:18
Anonymous22-Aug-02 9:18 
AnswerRe: Whats wrong with this picture? Pin
Bruce Duncan22-Aug-02 9:34
Bruce Duncan22-Aug-02 9:34 
GeneralDleDbDataAdapter and DSNs Pin
thiggs21-Aug-02 4:02
thiggs21-Aug-02 4:02 
GeneralSQL - SELECT DISTINCT myfield Pin
Tim Rymer20-Aug-02 4:59
Tim Rymer20-Aug-02 4:59 
GeneralRe: SQL - SELECT DISTINCT myfield Pin
Mazdak20-Aug-02 9:02
Mazdak20-Aug-02 9:02 
GeneralThat doesnt work. Pin
Tim Rymer20-Aug-02 9:48
Tim Rymer20-Aug-02 9:48 
Ok, everyone always sees tutorials on how to use "SELECT DISTINCT field" and then they name their field on which they want each record to have a different value in that field. So when you use just that statement, all you get is:

CUSTOMER_NAME
-----------------
Jimmy
Steve
Guido
Barry
Cloud
Kefka
Jonny
-----------------

I'm wondering how i can setup my Sql statement so that i can get the rest of that information with it, in vb6/access 2000.

"SELECT * DISTINCT url FROM Emails WHERE checked = False ORDER BY foundwith"

Passing this into a data object doesnt work, i want to be able get this in a recordset:

CUSTOMER_NAME | ID | CHECKED | FOUNDWITH | URL
------------------------------------------------
Jimmy | 45 | False | 4 | "http://www.web.com"
Cloud | 46 | False | 1 | "http://www.howdy.com"
Kefka | 47 | False | 1 | "http://www.studmuffin.com"
------------------------------------------------

So as long as everyone has been "CHECKED" from that url, then i dont want to look at that "URL".

Hope that explains my problem. Read my example above, does that look like it should work to you? i get

RunTimeError 3075: Missing operator in query expression (* DISTINCT url)

any reason why? thanks in advance.

~Timothy T. Rymer

http://tim.xpertz.com
http://www.digipen.edu
http://www.ttrx.com
GeneralRe: That doesnt work. Pin
DanielO21-Aug-02 3:21
DanielO21-Aug-02 3:21 
GeneralMinor addition Pin
Anonymous21-Aug-02 4:38
Anonymous21-Aug-02 4:38 
GeneralRe: That doesnt work. Pin
Tim Rymer22-Aug-02 3:51
Tim Rymer22-Aug-02 3:51 
GeneralRe: That doesnt work. Pin
Mazdak21-Aug-02 4:25
Mazdak21-Aug-02 4:25 
GeneralRe: That doesnt work. Pin
notadood26-Aug-02 7:44
notadood26-Aug-02 7:44 
GeneralCheck (create table) error Pin
Hans Ruck20-Aug-02 0:40
Hans Ruck20-Aug-02 0:40 
Generalsp_OAMethod type mismatch error Pin
Le centriste19-Aug-02 10:36
Le centriste19-Aug-02 10:36 
GeneralODBC & SQL - Modify the "Table" name in Excel Pin
Stefan_L_0119-Aug-02 10:32
Stefan_L_0119-Aug-02 10:32 
GeneralRe: ODBC & SQL - Modify the "Table" name in Excel Pin
DanielO21-Aug-02 3:44
DanielO21-Aug-02 3:44 
GeneralRe: ODBC & SQL - Modify the "Table" name in Excel Pin
Stefan_L_0121-Aug-02 7:58
Stefan_L_0121-Aug-02 7:58 
GeneralSELECT from multiple tables in a DB Pin
Robby19-Aug-02 8:04
Robby19-Aug-02 8:04 
GeneralRe: SELECT from multiple tables in a DB Pin
notadood20-Aug-02 3:49
notadood20-Aug-02 3:49 
GeneralRe: SELECT from multiple tables in a DB Pin
Robby21-Aug-02 5:56
Robby21-Aug-02 5:56 
GeneralRe: SELECT from multiple tables in a DB Pin
Daniel Turini26-Aug-02 0:54
Daniel Turini26-Aug-02 0:54 
GeneralmySQL and SSQLS w/MFC Pin
monrobot1318-Aug-02 14:40
monrobot1318-Aug-02 14:40 
QuestionHow to connect to a database Pin
Venet18-Aug-02 9:35
Venet18-Aug-02 9:35 
AnswerRe: How to connect to a database Pin
DanielO21-Aug-02 3:26
DanielO21-Aug-02 3:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.