We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 731b7ef commit 34d575bCopy full SHA for 34d575b
src/jframe/ManageBooks.java
@@ -197,7 +197,7 @@ public void showPieChart() {
197
DefaultPieDataset barDataset = new DefaultPieDataset();
198
199
try {
200
- pst = con.prepareStatement("select book_name, count(*) as status_count from book_details group by quantity");
+ pst = con.prepareStatement("select book_name, count(*) as status_count from book_details group by book_name");
201
rs = pst.executeQuery();
202
while (rs.next()) {
203
barDataset.setValue(rs.getString("book_name"), new Double(rs.getInt("status_count")));
0 commit comments