Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > How to list

Reply
Thread Tools

How to list

 
 
Paulo Roberto
Guest
Posts: n/a
 
      12-14-2007
Hi, I need the following results:

NameOfExam1 NameOfExam2 NameOfExam3 ...
NamePacient

12/10/2007 01/01/2007 ...
Paul 12/12/2007 01/03/2007 ...
20/12/2007 01/03/2007 ...

.... ...
.... ...

So I have some tables:

PacientTable:
Code -> AutoNumber
Name -> char(50)

ExamTable:
Code -> AutoNumber
NameOfExam -> Char(50)

ScheduleExams:
PacientCode -> Number PK
ExamCode -> Number PK
DateScheduled -> DateTime PK

if I feed the tables with the example showed above, we'd have:

PacientTable:
1 Paul

ExamTable:
1 NameOfExam1

ScheduleExams:
1 1 12/10/2007
1 1 12/12/2007
1 1 20/12/2007

I cannot think a logic to list the table above on <table>trs and tds

Should it be done using more than 1 recordset? What you suggest? Can you
help me ?

Thanks a lot!




 
Reply With Quote
 
 
 
 
Anthony Jones
Guest
Posts: n/a
 
      12-14-2007
"Paulo Roberto" <> wrote in message
news:elX%...
> Hi, I need the following results:
>
> NameOfExam1 NameOfExam2 NameOfExam3

....
> NamePacient
>
> 12/10/2007 01/01/2007 ...
> Paul 12/12/2007 01/03/2007 ...
> 20/12/2007 01/03/2007 ...
>
> ... ...
> ... ...
>
> So I have some tables:
>
> PacientTable:
> Code -> AutoNumber
> Name -> char(50)
>
> ExamTable:
> Code -> AutoNumber
> NameOfExam -> Char(50)
>
> ScheduleExams:
> PacientCode -> Number PK
> ExamCode -> Number PK
> DateScheduled -> DateTime PK
>
> if I feed the tables with the example showed above, we'd have:
>
> PacientTable:
> 1 Paul
>
> ExamTable:
> 1 NameOfExam1
>
> ScheduleExams:
> 1 1 12/10/2007
> 1 1 12/12/2007
> 1 1 20/12/2007
>
> I cannot think a logic to list the table above on <table>trs and tds
>
> Should it be done using more than 1 recordset? What you suggest? Can you
> help me ?


Look up the documentation on the keyword JOIN in for your database. Or
Google
SQL JOINS. Top reference to W3Schools would be a good place to start.

--
Anthony Jones - MVP ASP/ASP.NET


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Memory issues when storing as List of Strings vs List of List OW Ghim Siong Python 2 11-30-2010 12:22 PM
Appending a list's elements to another list using a list comprehension Debajit Adhikary Python 17 10-18-2007 06:45 PM
Why does list.__getitem__ return a list instance for subclasses ofthe list type? dackz Python 0 02-06-2007 04:44 PM
Difference Between List x; and List x(); , if 'List' is a Class? roopa C++ 6 08-27-2004 06:18 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57