|
Books database query
I have a simple program in which basically I must use the books database. Well, it would be simple except I don't know how to start it, and have virtually no SQL code to reference. Damn textbook doesn't give any.
The program must simply select all authors from the authors table, select all publishers from the publishers table, select a specific author and list all books for that author, including title, year, and ISB. The information should be alphabetically ordered by last name then first name. Select a specific publisher and list all books published by them, including title, year, and ISBN. Organize it alphabetically. This must all be done through predefined queries I make. And it must be displayed in a JComboBox. I know most of the GUI, though.
This is my focus now, but I'd appreciate it if I could get help on how to provide at least 3 queries.
|