hello!
i have a table named schoolentry. it contain the following cols
name,subject, course.
there is a dropdown. there are 26 names in the dropdown. data is being entered in the database table from some other web page. now i want that when i select an element from dropdown and click on button it shows me the last entered close value of that name from the database. can some body tell me how is it possible?
Loading
Sam HobbsPosted Oct 5, 2011, 12:48 PM
I think that what you are describing is often called a master-detail. I tried to search for articles in this web site and there probably is at least one article but it is not as easy to find as it should be. So try a search such as this. The following are among the results and hopefully they are relevant to what you are doing.
Javeed M ShaikhPosted Oct 5, 2011, 11:34 AM
Please do not forget to mark "Accepted Answer"
Jean PaulPosted Oct 5, 2011, 11:29 AM
If your table contains the Id column then solution of Mr. Javeed would be an appropriate one.
Otherwise, I believe your table do not have the id column or any lastUpdatedTime column
-- I believe this will work for you, but not the best way for achieving it. (Prefer: auto number id column for all tables)
Javeed M ShaikhPosted Oct 5, 2011, 11:21 AM
select close from dailychange where rowid = (select max(rowid) from dailychange where symbol = "yoursymbol");
Please do not forget to mark "Accepted Answer"