Click here to Skip to main content
15,913,587 members
Home / Discussions / Database
   

Database

 
AnswerRe: Retrive data from Access table Pin
Blue_Boy15-Nov-10 9:51
Blue_Boy15-Nov-10 9:51 
GeneralRe: Retrive data from Access table Pin
jschell16-Nov-10 9:00
jschell16-Nov-10 9:00 
GeneralRe: Retrive data from Access table Pin
Eddy Vluggen16-Nov-10 9:15
professionalEddy Vluggen16-Nov-10 9:15 
QuestionAdding mysql data to postgresql Pin
franrtorres7714-Nov-10 1:51
franrtorres7714-Nov-10 1:51 
AnswerRe: Adding mysql data to postgresql Pin
Eddy Vluggen16-Nov-10 0:11
professionalEddy Vluggen16-Nov-10 0:11 
AnswerRe: Adding mysql data to postgresql Pin
RaviRanjanKr17-Dec-10 18:36
professionalRaviRanjanKr17-Dec-10 18:36 
QuestionMySQL Select help required Pin
djhankypark12-Nov-10 12:11
djhankypark12-Nov-10 12:11 
AnswerRe: MySQL Select help required Pin
Luc Pattyn12-Nov-10 12:55
sitebuilderLuc Pattyn12-Nov-10 12:55 
OK, you need two joins to the same tables (once for from, once for to; and both once for name, once for image); this will only work when you use aliases to discriminate the identical tables.

This will not be correct, but indicates the technique; try something like this:
SELECT FU.Name, TU.Name FROM Comments
JOIN User as FU ON Comments.Message_From=FU.Auto_ID
JOIN User as TU ON Comments.Message_To=TU.Auto_ID
WHERE Comments.Auto_ID=MessageID


which, once correct, you can extend to also handle the images.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


GeneralRe: MySQL Select help required Pin
djhankypark23-Nov-10 7:29
djhankypark23-Nov-10 7:29 
GeneralRe: MySQL Select help required Pin
Luc Pattyn23-Nov-10 7:43
sitebuilderLuc Pattyn23-Nov-10 7:43 
QuestionTimeourt Pin
logicon12-Nov-10 1:00
logicon12-Nov-10 1:00 
AnswerRe: Timeourt Pin
Goutam Patra12-Nov-10 1:44
professionalGoutam Patra12-Nov-10 1:44 
AnswerRe: Timeourt Pin
Luc Pattyn12-Nov-10 2:24
sitebuilderLuc Pattyn12-Nov-10 2:24 
GeneralUse a where clause Pin
David Mujica12-Nov-10 3:08
David Mujica12-Nov-10 3:08 
GeneralRe: Use a where clause Pin
Luc Pattyn12-Nov-10 3:10
sitebuilderLuc Pattyn12-Nov-10 3:10 
GeneralOops, my bad Pin
David Mujica12-Nov-10 5:32
David Mujica12-Nov-10 5:32 
GeneralRe: Use a where clause Pin
logicon12-Nov-10 9:03
logicon12-Nov-10 9:03 
GeneralRe: Use a where clause Pin
PIEBALDconsult12-Nov-10 9:36
mvePIEBALDconsult12-Nov-10 9:36 
GeneralRe: Use a where clause Pin
Mycroft Holmes12-Nov-10 10:58
professionalMycroft Holmes12-Nov-10 10:58 
GeneralRe: Use a where clause Pin
PIEBALDconsult12-Nov-10 15:23
mvePIEBALDconsult12-Nov-10 15:23 
AnswerRe: Timeourt Pin
thatraja12-Nov-10 2:47
professionalthatraja12-Nov-10 2:47 
AnswerRe: Timeourt Pin
jschell16-Nov-10 9:03
jschell16-Nov-10 9:03 
QuestionCreate table from xml file Pin
Hum Dum11-Nov-10 22:07
Hum Dum11-Nov-10 22:07 
AnswerRe: Create table from xml file Pin
Eddy Vluggen13-Nov-10 9:18
professionalEddy Vluggen13-Nov-10 9:18 
GeneralRe: Create table from xml file Pin
Hum Dum14-Nov-10 19:05
Hum Dum14-Nov-10 19:05 

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.