Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is the SQL Query to Insert values from JavaFX DatePicker into the Bdate attribute from the Employee SQL table. For example: @FXML private DatePicker

What is the SQL Query to Insert values from JavaFX DatePicker into the Bdate attribute from the Employee SQL table.

For example:

@FXML

private DatePicker date;

String sql = "insert into employee (fname, minit, lname,.........) values (?,?,?,?,?)";

.....What's next? Please help! How do I insert value from DatePicker to this?

image text in transcribed

Figure 5.6 One possible database state for the COMPANY relational database schema. EMPLOYEE Fname Minit Lname Sex Salary Super ssn Dno B Smith 123456789 1965-01-09 731 Fondren, Houston, TX M 30000 333445555 5 FranklinT Wong 333445555 1955-12-08 638 Voss, Houston, TX M 40000 888665555 5 JZelaya 999887777 1968-01-19 3321 Castle, Spring, TX F 25000 9876543214 JenniferSWallace 9876543211941-06-20 291 Berry, Bellaire, TXF 43000 888665555 4 Ramesh K Narayan 666884444 1962-09-15 975 Fire Oak, Humble, TX M 38000 3334455555 Joyce AEnglish453453453 1972-07-31 5631 Rice, Houston, TXF 25000 333445555 5 AhmadV Jabbar 9879879871969-03-29 980 Dallas, Houston, TX M 25000 987654321 4 Address James E Borg 888665555 1937-11-10450 Stone, Houston, TXM55000 NULL DEPARTMENT DEPT LOCATIONS Dnumber Dlocation Houston Stafford Bellaire Sugarland Houston Dnumber Dname Research Administration Headquarters Mgr ssn 333445555 987654321 888665555 Mgr_start date 1988-05-22 199501-01 1981-06-19 4 4 WORKS ON PROJECT Essn 123456789 123456789 666884444 453453453 453453453 333445555 333445555 333445555 333445555 999887777 999887777 987987987 987987987 987654321 987654321 888665555 Pno Hours Pnumber Plocation Dnum Bellaire Sugarland Houston Stafford Houston Stafford Pname ProductX ProductY ProductZ Computerization10 Reorganization Newbenefits 3 40.0 20.0 20.0 4 3 DEPENDENT Dependent_name Sex Relationship Essn 333445555 333445555 333445555 987654321 123456789 123456789 123456789 30.0 10.0 35.0 Theodore Jo Abner Michael F 1986-04-05Daughter M 1983-10-25 Son F 1958-05-03Spouse M 1942-02-28 Spouse M 1988-01-04 Son F 1988-12-30 Daughter F 1967-05-05 Spouse 20.0 20 NULL Elizabeth Figure 5.6 One possible database state for the COMPANY relational database schema. EMPLOYEE Fname Minit Lname Sex Salary Super ssn Dno B Smith 123456789 1965-01-09 731 Fondren, Houston, TX M 30000 333445555 5 FranklinT Wong 333445555 1955-12-08 638 Voss, Houston, TX M 40000 888665555 5 JZelaya 999887777 1968-01-19 3321 Castle, Spring, TX F 25000 9876543214 JenniferSWallace 9876543211941-06-20 291 Berry, Bellaire, TXF 43000 888665555 4 Ramesh K Narayan 666884444 1962-09-15 975 Fire Oak, Humble, TX M 38000 3334455555 Joyce AEnglish453453453 1972-07-31 5631 Rice, Houston, TXF 25000 333445555 5 AhmadV Jabbar 9879879871969-03-29 980 Dallas, Houston, TX M 25000 987654321 4 Address James E Borg 888665555 1937-11-10450 Stone, Houston, TXM55000 NULL DEPARTMENT DEPT LOCATIONS Dnumber Dlocation Houston Stafford Bellaire Sugarland Houston Dnumber Dname Research Administration Headquarters Mgr ssn 333445555 987654321 888665555 Mgr_start date 1988-05-22 199501-01 1981-06-19 4 4 WORKS ON PROJECT Essn 123456789 123456789 666884444 453453453 453453453 333445555 333445555 333445555 333445555 999887777 999887777 987987987 987987987 987654321 987654321 888665555 Pno Hours Pnumber Plocation Dnum Bellaire Sugarland Houston Stafford Houston Stafford Pname ProductX ProductY ProductZ Computerization10 Reorganization Newbenefits 3 40.0 20.0 20.0 4 3 DEPENDENT Dependent_name Sex Relationship Essn 333445555 333445555 333445555 987654321 123456789 123456789 123456789 30.0 10.0 35.0 Theodore Jo Abner Michael F 1986-04-05Daughter M 1983-10-25 Son F 1958-05-03Spouse M 1942-02-28 Spouse M 1988-01-04 Son F 1988-12-30 Daughter F 1967-05-05 Spouse 20.0 20 NULL Elizabeth

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

Students also viewed these Databases questions