SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseSQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old March 29th, 2002, 08:28 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
I need to take data from 2 tables in the same time! help!!

<i><b>Originally posted by : Alejandro (akuzner@brinkster.net)</b></i><br /><br />Hi, I have a problem trying to display the name of an Author from the Authors tables when I take the Author Id from the books table.<br />In asp was very easy to do but in Asp.net i can't do it.<br />I will like to receive some help.<br />thanks!!

Reply With Quote
  #2  
Old March 29th, 2002, 01:11 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Lou E (capnlou@aol.com)</b></i><br />More information, please... how are you retreiving your data. You can do a join in the sql text you are using. That is the best way. Another alternative is adding a books table to a dataset, then adding the authors table, then adding a DataRelation on the dataset, then use the GetChildRows method of the row you are currently at in the books table. doing this requires more overhead and more explanation than i have time for. Stick with the sql join:<br /><br />Select b.*, a.* From Books b INNER JOIN Authors a ON b.AuthID = a.AuthID<br /><br /><br /><br /><br />------------<br />Alejandro at 3/29/2002 6:28:40 AM<br /><br /><br />Hi, I have a problem trying to display the name of an Author from the Authors tables when I take the Author Id from the books table.<br />In asp was very easy to do but in Asp.net i can't do it.<br />I will like to receive some help.<br />thanks!!

Reply With Quote
  #3  
Old July 17th, 2002, 03:41 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Jimit Patadiya (info@stpwebhosting.com)</b></i><br />It is as simple as it was with the asp. In your sql query you can refrence two tables like... "select * from authors, authorsid where authorsid.id = " & authorid...<br /><br />So it is as simple as like with Classic ASP Programming.<br /><br />Thanks,<br />Jimit Patadiya<br />http://www.stpwebhosting.com<br /><br /><br />------------<br />Lou E at 3/29/2002 11:11:09 AM<br /><br />More information, please... how are you retreiving your data. You can do a join in the sql text you are using. That is the best way. Another alternative is adding a books table to a dataset, then adding the authors table, then adding a DataRelation on the dataset, then use the GetChildRows method of the row you are currently at in the books table. doing this requires more overhead and more explanation than i have time for. Stick with the sql join:<br /><br />Select b.*, a.* From Books b INNER JOIN Authors a ON b.AuthID = a.AuthID<br /><br /><br /><br /><br />------------<br />Alejandro at 3/29/2002 6:28:40 AM<br /><br /><br />Hi, I have a problem trying to display the name of an Author from the Authors tables when I take the Author Id from the books table.<br />In asp was very easy to do but in Asp.net i can't do it.<br />I will like to receive some help.<br />thanks!!

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > I need to take data from 2 tables in the same time! help!!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway