Jump to content

how to search multiple fields of all tables in a database?


jjk2

Recommended Posts

how do i search multiple fields from uniform but multiple number of tables in a database?

 

so a database called School contains 300 tables for each school.

 

how can i do search multiple fields across all 300 tables ?

 

 

Link to comment
Share on other sites

  • 2 weeks later...

You won't get an easy answer because you are designing your database in the wrong way (sorry, don't know a nicer way to put that).

 

If you have 300 different schools, you should be using ONE table for all of your data about the schools.  You differentiate between the different schools within that one table by having a column called "SchoolID" or something like that.

 

I'm not sure if that's enough information to get you sorted out, but you definitely do NOT want to have 300 different tables because there are 300 different schools.  You're missing a key element of database design there.

 

Good luck!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.