Click here to Skip to main content
15,887,421 members
Home / Discussions / Database
   

Database

 
AnswerRe: Reg:Integral Accounting Enterprise Pin
Ashfield22-Jul-08 8:46
Ashfield22-Jul-08 8:46 
GeneralSSIS Configurations Pin
Mycroft Holmes21-Jul-08 23:44
professionalMycroft Holmes21-Jul-08 23:44 
GeneralRe: SSIS Configurations Pin
SimulationofSai22-Jul-08 8:48
SimulationofSai22-Jul-08 8:48 
GeneralRe: SSIS Configurations Pin
Mycroft Holmes22-Jul-08 16:11
professionalMycroft Holmes22-Jul-08 16:11 
QuestionNot able to call dll through PL /SQL Pin
Neeraj Sinha21-Jul-08 23:23
Neeraj Sinha21-Jul-08 23:23 
AnswerRe: Not able to call dll through PL /SQL Pin
Mike Dimmick22-Jul-08 3:44
Mike Dimmick22-Jul-08 3:44 
AnswerRe: Not able to call dll through PL /SQL Pin
Wendelius22-Jul-08 6:15
mentorWendelius22-Jul-08 6:15 
Questionquerying all items... the best method? [modified] Pin
gethomast21-Jul-08 22:56
gethomast21-Jul-08 22:56 
I have problems on quering or better numerating all items from a specified table.
Here are my tables (Third normal form):

MailTable: Id, Created, Subject
AddressTable: Id, Name
SenderTable: MailTableId, AddressTableId
RecipientTable: MailTableId, AddressTableId, State

Now i want to make a query to numerate alle senders and recipients for one mail.

My query:

select m.Id, m.Created, m.Subject, sender.Name, recipient.Name
from MailTable as m
join SenderTable as s on s.MailTableId = m.Id
join AddressTable as sender on sender.Id = s.AddressTableId
join RecipientTable as r on s.MailTableId = m.Id
join AddressTable as recipient on recipient.Id = r.AddressTableId

The result:
1 | 2008-01-01 | Test | sender1@domain.tld | recipient1@domain.tld
1 | 2008-01-01 | Test | sender1@domain.tld | recipient2@domain.tld
2 | 2008-01-02 | Test | sender3@domain.tld | recipient3@domain.tld
etc.

My target:
1 | 2008-01-01 | Test | sender1@domain.tld | recipient1@domain.tld,recipient2@domain.tld
2 | 2008-01-02 | Test | sender3@domain.tld | recipient3@domain.tld

How do I achive this, whithout using time-consuming queries?
The bad way is to lookup for every mail all recipients, but this is not the best way!
Should I compare all records and extract my desired information?

Please Help me. Thanks!

modified on Tuesday, July 22, 2008 5:09 AM

AnswerRe: querying all items... the best method? Pin
Mycroft Holmes22-Jul-08 0:01
professionalMycroft Holmes22-Jul-08 0:01 
GeneralRe: querying all items... the best method? [modified] Pin
gethomast22-Jul-08 0:42
gethomast22-Jul-08 0:42 
AnswerRe: querying all items... the best method? Pin
leoinfo22-Jul-08 2:48
leoinfo22-Jul-08 2:48 
GeneralRe: querying all items... the best method? Pin
Mycroft Holmes22-Jul-08 3:54
professionalMycroft Holmes22-Jul-08 3:54 
GeneralRe: querying all items... the best method? Pin
leoinfo22-Jul-08 8:54
leoinfo22-Jul-08 8:54 
GeneralRe: querying all items... the best method? Pin
Mycroft Holmes22-Jul-08 14:45
professionalMycroft Holmes22-Jul-08 14:45 
GeneralRe: querying all items... the best method? Pin
Mycroft Holmes22-Jul-08 16:24
professionalMycroft Holmes22-Jul-08 16:24 
Questionretreving the gridview row in color from sqlserver using boundfields Pin
santosh04221-Jul-08 18:54
santosh04221-Jul-08 18:54 
AnswerRe: retreving the gridview row in color from sqlserver using boundfields Pin
Mycroft Holmes21-Jul-08 19:57
professionalMycroft Holmes21-Jul-08 19:57 
QuestionFunction returning a table Pin
Kushi Bobby21-Jul-08 18:49
Kushi Bobby21-Jul-08 18:49 
AnswerRe: Function returning a table PinPopular
Mycroft Holmes21-Jul-08 20:01
professionalMycroft Holmes21-Jul-08 20:01 
QuestionBackup Database And Move Stored Procedures Pin
mehrnoosh21-Jul-08 18:18
mehrnoosh21-Jul-08 18:18 
AnswerRe: Backup Database And Move Stored Procedures Pin
John_Adams21-Jul-08 19:44
John_Adams21-Jul-08 19:44 
GeneralRe: Backup Database And Move Stored Procedures Pin
mehrnoosh22-Jul-08 19:25
mehrnoosh22-Jul-08 19:25 
Generalneed to layout the database [modified] Pin
keyboard warrior21-Jul-08 13:06
keyboard warrior21-Jul-08 13:06 
QuestionRe: need to layout the database Pin
Paul Conrad21-Jul-08 13:14
professionalPaul Conrad21-Jul-08 13:14 
AnswerRe: need to layout the database Pin
keyboard warrior21-Jul-08 14:16
keyboard warrior21-Jul-08 14:16 

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.