| | |
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 |
Tag cloud for VB.NET
.net 30minutes 2005 2008 access account application arithmetic array arrays basic binary bing button buttons c# center check checkbox code combobox component connectionstring convert crystalreport data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dropdownlist excel file-dialog folder ftp generatetags google gridview hardcopy image images inline insert intel internet listview mobile monitor ms net networking output passingparameters peertopeervideostreaming picturebox picturebox1 plugin port print printing problem problemwithinstallation project reports" save searchbox searchvb.net select serial server soap sorting table tcp text textbox timer toolbox trim update updown user vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web wpf





