Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

Re: FN-FORUM ASP select multiple tables

date posted 7th January 2003 23:04

> if you can alter the database then do so, sounds a very bad db design if
> you're grabbing the same fields for different products - far better to
have
> a 'product_type' table containing all the handhelds, systems... etc table
> names with a 'products' table and then have a relationship between the 2
> tables. from those 2 tables you can then build views to retrieve the data
> in a much nicer looking, and much more efficient manner.

ok cheers but changing the databse at this stage will mean going back
through the site and doing a fair bit of editing. As it stands the tables
will
only ever contain six to a maximum of ten records each so it shouldn't
cause any headaches.

> from the way your db set-up sounds you'll get issues when you have lots of
> data requests.

The multiple table query I need to do just grabs special offers across
the tables. This is the one and only time multiple tables will
be accessed in one go and it only needs to return three to five records.

As I said in my last mail it seemed the easiest way to keep track of
products to have a table per product for such a small database.

cheers,

Darren





----- Original Message -----
From: "David Eckersall" [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Tuesday, January 07, 2003 10:39 PM
Subject: Re: FN-FORUM ASP select multiple tables


> if you can alter the database then do so, sounds a very bad db design if
> you're grabbing the same fields for different products - far better to
have
> a 'product_type' table containing all the handhelds, systems... etc table
> names with a 'products' table and then have a relationship between the 2
> tables. from those 2 tables you can then build views to retrieve the data
> in a much nicer looking, and much more efficient manner.
>
> from the way your db set-up sounds you'll get issues when you have lots of
> data requests.
>
> on the other hand if its a client db and they're being recalcitrant over
> having a proper db design then build relevant views and pray to any
passing
> deitys you dont get the blame when they whine about how long it takes to
> process a request!
>
> ----- Original Message -----
> From: [EMAIL REMOVED]
> To: [EMAIL REMOVED]
> Sent: Tuesday, January 07, 2003 8:52 PM
> Subject: FN-FORUM ASP select multiple tables
>
>
> > yet again I turn to the forum after a fruitless google.
> >
> > I have a database in which I need the select statement
> > to access multiple tables. I have a solution but it seems
> > rather clunky if I extend it as far as I need to. This works
> > for two -
> >
> > SELECT Ref, Manufacturer, Model, Price, Category,
> > Special_Offer, Special_Text FROM Laptops
> > UNION SELECT Ref, Manufacturer, Model, Price, Category,
> > Special_Offer, Special_Text FROM Handhelds, Systems
> >
> > I need to reference 10 tables all with the same selected
> > field names in common. I know there must be and easier way
> > could somebody point me in the right direction.
> >
> > tia,
> >
> > Darren Yates
> > [EMAIL REMOVED]
> > http://dittodesign.co.uk
> >
> >
> >
> >
> >
> > ========
> > Advertise with Freelancers.net +Additions+
> > http://www.freelancers.net/advert.php
> >
> >
> > Freelancers and Freelance Jobs:
> > http://www.freelancers.net
> >
> > Forum FAQs:
> > http://freelancers.netrickery.com
> >
> > To unsubscribe please email:
> > [EMAIL REMOVED]
> >
> > If you have difficulties unsubscribing please email:
> > [EMAIL REMOVED]
>
>
> ========
> Advertise with Freelancers.net +Additions+
> http://www.freelancers.net/advert.php
>
>
> Freelancers and Freelance Jobs:
> http://www.freelancers.net
>
> Forum FAQs:
> http://freelancers.netrickery.com
>
> To unsubscribe please email:
> [EMAIL REMOVED]
>
> If you have difficulties unsubscribing please email:
> [EMAIL REMOVED]



Messages by Day
January 31st 2003
January 30th 2003
January 29th 2003
January 28th 2003
January 27th 2003
January 26th 2003
January 25th 2003
January 24th 2003
January 23rd 2003
January 22nd 2003
January 21st 2003
January 20th 2003
January 19th 2003
January 18th 2003
January 17th 2003
January 16th 2003
January 15th 2003
January 14th 2003
January 13th 2003
January 12th 2003
January 11th 2003
January 10th 2003
January 9th 2003
January 8th 2003
January 7th 2003
January 6th 2003
January 5th 2003
January 4th 2003
January 3rd 2003
January 2nd 2003
January 1st 2003


Messages by Month
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000