SunQuest
           Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase Help

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 Codewalkers Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old March 26th, 2003, 04:10 AM
madhombre madhombre is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: WI
Posts: 247 madhombre User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
what;s the best way too.....

I have a piece of code which looks in a db based on a query and shows the info.

now what I want to do is have serveral of these
each pulling a different value.

example

say I have a db of books.
I want to show a bit about each book of a certain category.

I have 10 boxes on the screen, each one holds the info about one book. BUT each bit has it's own query.

What is the best way to have a master query then have the child queries get there results from that?

create a dummy db, use some kind of built-in transaction type deal or something else?

Thanks


Reply With Quote
  #2  
Old March 26th, 2003, 09:50 AM
xs0 xs0 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Ljubljana, Slovenia
Posts: 760 xs0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: what;s the best way too.....

Well, if you have a query like this

SELECT * FROM books WHERE id=12

just change it to

SELECT * FROM books WHERE id IN (12,15,192,4300)

which will return the 4 books. If you have some different arrangement of your tables, please post the details..

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > what;s the best way too.....


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 4 hosted by Hostway