View Single Post
Old 11-22-2004, 05:18 PM   #13 (permalink)
Crow T. Robot
Registered User
 
Join Date: Nov 2004
Posts: 14
Crow T. Robot is on a distinguished road
See the post you quoted again. I changed a lot of stuff. And it is only command line, though I think the JOptionPane will make some windows for text. Maybe not.

As for my SQL coding, I just need to know one thing. How do I choose a specific author with SELECT?

Edit: Here's the code I have for that so far.

Code:
//select all authors from authors table
{
SELECT*FROM authors
}

//select all publishers from publishers table
{
SELECT*FROM publishers
}

select author, list all books for author including title, year, and ISBN
{
SELECT copyright, title, ISBN, firstName, lastName
FROM titles
INNER JOIN authors
ON title.lastName=authors.lastName
WHERE lastName LIKE ’Nieto’
	ORDER BY lastName
}

//select a specific publisher, list all books published by them, include title, year, and ISBN
{
SELECT publisher, title, ISBN
	FROM titles
	INNER JOIN publishers
		ON publishers.publisher=titles.publisher
	WHERE publisher LIKE ‘Random House’
	ORDER BY title
}

Last edited by Crow T. Robot; 11-22-2004 at 05:45 PM.
Crow T. Robot is offline   Reply With Quote