| | |
Starting Trouble!!Please help!!
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Sep 2008
Posts: 22
Reputation:
Solved Threads: 0
Im havin a heck of a problem. I have a database with 800 tables. All the tables are the same with the same fields. Each table is a survey form. My table structure is as follows:
FPC_Code | FPC_Product | Price | oos | osd
the above sturucture is the same for all my tables. Now what i have to do is as follows:
I have one master table Which conatins a range of prices which each product can fall between. FPC_Code being my primary key:
FPC_Code | LowerPrice |upperPrice.
Now i have to compare each product in my master table with all the 800 tables and check whether the price in each table falls with in the 'UpperPrice' and 'Lowerprice' price bracket of the master table. Pls note that each table contains 200 products.
I have an idea how to start it but need a lil jump start.
Any help will be much appreciated.
FPC_Code | FPC_Product | Price | oos | osd
the above sturucture is the same for all my tables. Now what i have to do is as follows:
I have one master table Which conatins a range of prices which each product can fall between. FPC_Code being my primary key:
FPC_Code | LowerPrice |upperPrice.
Now i have to compare each product in my master table with all the 800 tables and check whether the price in each table falls with in the 'UpperPrice' and 'Lowerprice' price bracket of the master table. Pls note that each table contains 200 products.
I have an idea how to start it but need a lil jump start.
Any help will be much appreciated.
What is your idea of how to start?
I guess I would make a loop that loops through the list of each table. At each loop, create a sql statement that joins the current table to the master table on the FPC_Code. Within the query, put in a WHERE statement to compare the Price of the records to the LowerPrice and UpperPrice in the master table.
Let me know if that's enough of a jump start.
I guess I would make a loop that loops through the list of each table. At each loop, create a sql statement that joins the current table to the master table on the FPC_Code. Within the query, put in a WHERE statement to compare the Price of the records to the LowerPrice and UpperPrice in the master table.
Let me know if that's enough of a jump start.
![]() |
Similar Threads
- How to set up password to keep Windows from starting??? (Windows NT / 2000 / XP)
- Trouble writing code for arithmetic calculations of complex numbers (C++)
- windows messanger wont stop starting on startup (Windows NT / 2000 / XP)
- Trojan Downloader and AVG trouble (Viruses, Spyware and other Nasties)
- Help ! I need help starting up on Php ! (PHP)
- EliteBar trouble (Viruses, Spyware and other Nasties)
Other Threads in the VB.NET Forum
- Previous Thread: write on random access file
- Next Thread: General VB Question
| Thread Tools | Search this Thread |
"crystal .net .net2005 30minutes 2005 2008 access arithmetic array assignment basic binary bing box button buttons center check code combobox component connectionstring convert crystalreport data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dosconsolevb.net dropdownlist editvb.net excel file-dialog firewall folder ftp google hardcopy image images isnumericfuntioncall listview login math memory mobile ms mssqlbackend mysql navigate net networking opacity output peertopeervideostreaming picturebox picturebox1 port print printpreview problemwithinstallation project record reports" save savedialog searchbox serial soap sorting string tcp temp text textbox timer toolbox trim updown upload useraccounts usercontrol vb vb.net vb.netcode vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet view visual visualbasic visualbasic.net visualstudio web wpf





