JavaFX program  Create a JavaFX GUI that allows the user to retrieve records from the product table in the example database. The GUI should allow the user to specify desired fields, desired order, and a where condition. Display only the desired fields in the desired order for the desired where condition. You may display the records in the GUI in any way you wish.   database below

A Guide to SQL
9th Edition
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Philip J. Pratt
Chapter2: Database Design Fundamentals
Section: Chapter Questions
Problem 15RQ
icon
Related questions
Question

JavaFX program 

Create a JavaFX GUI that allows the user to retrieve records from the product table in the example database. The GUI should allow the user to specify desired fields, desired order, and a where condition. Display only the desired fields in the desired order for the desired where condition.
You may display the records in the GUI in any way you wish.

 

database below

 

--
Table structure for table `product
CREATE TABLE IF NOT EXISTS `product (
vin char(6) NOT NULL,
make varchar(16) NOT NULL,
model varchar(16) NOT NULL,
year int(4) NOT NULL,
color varchar(12) NOT NULL,
`price` decimal (9,2) NOT NULL,
PRIMARY KEY ('vin`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
Dumping data for table `product
INSERT INTO `product` (`vin`, `make`, `model`, `year`, `color`, `price`) VALUES
('12345A', 'Chevrolet', 'Volt', 2013, 'silver', 34000.00),
('22222V', 'Chevrolet', 'Malibu', 2013, 'red', 24000.00),
('35542C', 'Cadillac', 'Escalade', 2012, 'black', 72000.00),
('49879X', 'Buick', 'Lacrosse', 2013, 'white', 38000.00),
('58932H', 'Chevrolet', 'Camaro SS', 2012, 'yellow', 33000.00),
('60842G', 'Buick', 'Enclave', 2013, 'silver', 42000.00),
('77776M', 'Cadillac', 'CTS-V Coupe', 2013, 'blue', 40000.00),
('88789T', 'GMC', 'Terrain', 2012, 'red', 31000.00),
('90201K', 'Bugatti', 'Veyron', 2013, 'red', 1900000.00),
('99090P', 'Chevrolet', 'Spark', 2013, 'green', 14000.00);
/*140101 SET
*/;
CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT
CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*140101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*140101 SET
Transcribed Image Text:-- Table structure for table `product CREATE TABLE IF NOT EXISTS `product ( vin char(6) NOT NULL, make varchar(16) NOT NULL, model varchar(16) NOT NULL, year int(4) NOT NULL, color varchar(12) NOT NULL, `price` decimal (9,2) NOT NULL, PRIMARY KEY ('vin`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- Dumping data for table `product INSERT INTO `product` (`vin`, `make`, `model`, `year`, `color`, `price`) VALUES ('12345A', 'Chevrolet', 'Volt', 2013, 'silver', 34000.00), ('22222V', 'Chevrolet', 'Malibu', 2013, 'red', 24000.00), ('35542C', 'Cadillac', 'Escalade', 2012, 'black', 72000.00), ('49879X', 'Buick', 'Lacrosse', 2013, 'white', 38000.00), ('58932H', 'Chevrolet', 'Camaro SS', 2012, 'yellow', 33000.00), ('60842G', 'Buick', 'Enclave', 2013, 'silver', 42000.00), ('77776M', 'Cadillac', 'CTS-V Coupe', 2013, 'blue', 40000.00), ('88789T', 'GMC', 'Terrain', 2012, 'red', 31000.00), ('90201K', 'Bugatti', 'Veyron', 2013, 'red', 1900000.00), ('99090P', 'Chevrolet', 'Spark', 2013, 'green', 14000.00); /*140101 SET */; CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*140101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*140101 SET
Expert Solution
steps

Step by step

Solved in 2 steps with 7 images

Blurred answer
Knowledge Booster
Data Binding
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr