I have one table person
.
CREATE TABLE PERSON(
ID NUMBER GENERATED BY DEFAULT AS IDENTITY,
first_name VARCHAR2(50),
last_name VARCHAR2(50),
birth_date DATE,
gender CHAR(10),
salary NUMBER(10, 2),
CONSTRAINT PERSON_PK PRIMARY KEY (ID)
);
I need to Populate PERSON
table with 1 million records. The columns should be populated with random values that follows below parameters:
- "first_name" should be populated with a random name from the list of 50 names provided below:
| Aiden | Anika | Ariya | Ashanti | Avery |
| Cameron | Ceri | Che | Danica | Darcy |
| Dion | Eman | Eren | Esme | Frankie |
| Gurdeep | Haiden | Indi | Isa | Jaskaran |
| Jaya | Jo | Jodie | Kacey | Kameron |
| Kayden | Keeley | Kenzie | Lucca | Macauley |
| Manraj | Nur | Oluwatobiloba | Reiss | Riley |
| Rima | Ronnie | Ryley | Sam | Sana |
| Shola | Sierra | Tamika | Taran | Teagan |
| Tia | Tiegan | Virginia | Zhane | Zion |
- "last_name" should be populated with a random name from the list of 50 names provided below:
| Ahmad | Andersen | Arias | Barlow | Beck |
| Bloggs | Bowes | Buck | Burris | Cano |
| Chaney | Coombes | Correa | Coulson | Craig |
| Frye | Hackett | Hale | Huber | Hyde |
| Irving | Joyce | Kelley | Kim | Larson |
| Lynn | Markham | Mejia | Miranda | Neal |
| Newton | Novak | Ochoa | Pate | Paterson |
| Pennington | Rubio | Santana | Schaefer | Schofield |
| Shaffer | Sweeney | Talley | Trevino | Tucker |
| Velazquez | Vu | Wagner | Walton | Woodward |
- duplicate combinations of "first_name" and "last_name" are allowed
- names that are not listed above can still be inserted into the table
- "birth_date" should be populated with a random date between 01-JAN-1970 and 31-DEC-2070
- "birth_date" that falls outside the provided date range can still be inserted into the table
- "gender" is a random value of MALE and FEMALE
- "salary" is a random value between 1.00 and 100000.00
- "salary" that falls outside the provided range can still be inserted into the table
Please share me the query