Click here to Skip to main content
15,905,420 members
Home / Discussions / Database
   

Database

 
QuestionMySQL-incorrect information in file frm Pin
PeriyasamyRamachandran9-Nov-10 23:24
PeriyasamyRamachandran9-Nov-10 23:24 
AnswerRe: MySQL-incorrect information in file frm Pin
Luc Pattyn10-Nov-10 7:21
sitebuilderLuc Pattyn10-Nov-10 7:21 
GeneralRe: MySQL-incorrect information in file frm Pin
PeriyasamyRamachandran10-Nov-10 17:12
PeriyasamyRamachandran10-Nov-10 17:12 
QuestionSQL where Clause help needed Pin
Member 44205349-Nov-10 23:11
Member 44205349-Nov-10 23:11 
AnswerRe: SQL where Clause help needed Pin
Blue_Boy9-Nov-10 23:31
Blue_Boy9-Nov-10 23:31 
AnswerRe: SQL where Clause help needed Pin
Scubapro10-Nov-10 1:07
Scubapro10-Nov-10 1:07 
AnswerRe: SQL where Clause help needed Pin
Chris Meech10-Nov-10 6:51
Chris Meech10-Nov-10 6:51 
QuestionBasic Question from a newbie Pin
JohnnyG9-Nov-10 14:49
JohnnyG9-Nov-10 14:49 
There is probably a really easy answer to this series of questions but I'm sort of a newbie in designing a database.

I know what a relational database is. I'm just not that familiar with designing one. My problem: Let's say I want to design a GUI interface for a kiosk for a library or bookstore. There could be several implementations and it could even be thought of as HTML links but the GUI looks nicer. The reason for this comparison is because I want the categories and sub categories to be dynamic, based on information stored in tables and obtained through queries.

I was thinking that I could have a table of main categories called "cats", and a table of sub categories called "sub cats", and of course a table for all of the books with a sub-category field. If a GUI is used, a blob for the image that represents the category or sub category can be assigned a field in the tables.

If I query the cats table and display all of the menu selections for the main categories and then when a main menu selection is made, say for "biographies", I can query for the second level menu items by looking for records in the "sub cat" table with a "Parent" field of "Biographies" which I imagine this could be only two records like "Biographies" and "Auto Biographies" and then drill down to the books table with a query to either of those two sub categories if a menu selection is made.

The problem I have understanding is a many-to-one relationship and how to implement it. I've discussed the first and 2nd level menus but if there is a third level menu and a book, item, or even a fourth level menu, can belong to more than one sub category, basically a sub cat or item with more than one parent, what do I do? Does this require multiple blank fields in one of the sub cat or book tables? Or, should this be implemented through using a primary key that encompasses many fields, or, even possibly should I have a field that declares what level menu the sub cat belongs in?
AnswerRe: Basic Question from a newbie PinPopular
Jörgen Andersson9-Nov-10 23:54
professionalJörgen Andersson9-Nov-10 23:54 
GeneralRe: Basic Question from a newbie Pin
PIEBALDconsult10-Nov-10 2:10
mvePIEBALDconsult10-Nov-10 2:10 
GeneralRe: Basic Question from a newbie Pin
JohnnyG10-Nov-10 2:36
JohnnyG10-Nov-10 2:36 
QuestionGetting InvalidCastException using VS2005 TableAdapter generator to call a stored procedure Pin
Brian C Hart8-Nov-10 18:49
professionalBrian C Hart8-Nov-10 18:49 
AnswerRe: Getting InvalidCastException using VS2005 TableAdapter generator to call a stored procedure Pin
John Gathogo8-Nov-10 19:05
John Gathogo8-Nov-10 19:05 
GeneralRe: Getting InvalidCastException using VS2005 TableAdapter generator to call a stored procedure Pin
Brian C Hart8-Nov-10 20:06
professionalBrian C Hart8-Nov-10 20:06 
QuestionOracle ALL_TAB_COLUMNS Pin
Mycroft Holmes7-Nov-10 13:33
professionalMycroft Holmes7-Nov-10 13:33 
AnswerRe: Oracle ALL_TAB_COLUMNS Pin
Jörgen Andersson7-Nov-10 20:20
professionalJörgen Andersson7-Nov-10 20:20 
GeneralRe: Oracle ALL_TAB_COLUMNS Pin
Mycroft Holmes7-Nov-10 21:13
professionalMycroft Holmes7-Nov-10 21:13 
GeneralRe: Oracle ALL_TAB_COLUMNS [modified] Pin
Jörgen Andersson7-Nov-10 21:43
professionalJörgen Andersson7-Nov-10 21:43 
GeneralRe: Oracle ALL_TAB_COLUMNS Pin
Mycroft Holmes7-Nov-10 22:26
professionalMycroft Holmes7-Nov-10 22:26 
GeneralRe: Oracle ALL_TAB_COLUMNS Pin
Jörgen Andersson7-Nov-10 23:05
professionalJörgen Andersson7-Nov-10 23:05 
Questionhow to insert variable values in SQL server using INSERT INTO statement? Pin
MahaKh4-Nov-10 20:41
MahaKh4-Nov-10 20:41 
AnswerRe: how to insert variable values in SQL server using INSERT INTO statement? Pin
RaviRanjanKr5-Nov-10 6:32
professionalRaviRanjanKr5-Nov-10 6:32 
AnswerRe: how to insert variable values in SQL server using INSERT INTO statement? Pin
PIEBALDconsult6-Nov-10 3:59
mvePIEBALDconsult6-Nov-10 3:59 
GeneralRe: how to insert variable values in SQL server using INSERT INTO statement? Pin
MahaKh6-Nov-10 23:49
MahaKh6-Nov-10 23:49 
GeneralRe: how to insert variable values in SQL server using INSERT INTO statement? Pin
PIEBALDconsult7-Nov-10 3:12
mvePIEBALDconsult7-Nov-10 3:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.