Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BigQuery, MySQL, SQLite and SQL Server support #27

Merged
merged 4 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,23 @@ export DBPORT=5432
```

#### Snowflake
To setup the data in snowflake, you would need to have the snowflake cli installed ([instructions](https://docs.snowflake.com/en/user-guide/snowsql-install-config)), and have your credentials configured as per the [docs](https://docs.snowflake.com/en/user-guide/snowsql-config). You can then run the following command to setup the data:
To set up the data in snowflake, you would need to have the snowflake cli installed ([instructions](https://docs.snowflake.com/en/user-guide/snowsql-install-config)), and have your credentials configured as per the [docs](https://docs.snowflake.com/en/user-guide/snowsql-config). You can then run the following command to setup the data:
```sh
./setup_snowflake.sh
```
This will create 1 database per database in the repo as before, using `public` as the default schema.

Note that the same sql files work for both the postgres and snowflake databases, so you can use the same sql files to setup both databases.

#### BigQuery, MySQL, SQLite, SQL Server
To set up the data in these systems, you would need your credentials to be configured in `utils_dialects`. You can then run the following command to set up the databases:
```
python translate_ddl_dialect.py
```
This will create one new SQL file per database per dialect.
For SQLite, the `.db` files will be saved in the folder `sqlite_dbs`.
Note that BigQuery, MySQL and SQLite do not support schemas and hence the SQL files will be modified to skip schema creation.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very helpful! Thanks for laying this down so clearly :D

### Python Library

This is the recommended way to access the schema from the json files in a python environment. To use the python library in your code, navigate to this repository and install it using pip:
Expand Down
42 changes: 21 additions & 21 deletions defog_data/advising/advising.sql
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ CREATE TABLE public.course_offering (
has_final_exam boolean,
textbook text,
class_address text,
allow_audit text DEFAULT 'n'::text
allow_audit text DEFAULT 'false'::text
);


Expand Down Expand Up @@ -176,21 +176,21 @@ INSERT INTO public.comment_instructor (instructor_id, student_id, score, comment
;

INSERT INTO public.course (course_id, name, department, number, credits, advisory_requirement, enforced_requirement, description, num_semesters, num_enrolled, has_discussion, has_lab, has_projects, has_exams, num_reviews, clarity_score, easiness_score, helpfulness_score) VALUES
(1, 'Introduction to Computer Science', 'Computer Science', 'CS101', 3, NULL, NULL, 'This course introduces the basics of computer science.', 2, 2, true, false, true, false, 10, 5, 3, 4),
(2, 'Advanced Calculus', 'Mathematics', 'MATH201', 4, 'CS101', NULL, 'This course covers advanced topics in calculus.', 1, 3, false, false, true, true, 5, 4, 2, 3),
(3, 'Introduction to Physics', 'Physics', 'PHYS101', 3, NULL, 'MATH201', 'This course provides an introduction to physics principles.', 2, 1, true, true, true, true, 8, 4, 3, 5),
(4, 'Distributed Databases', 'Computer Science', 'CS302', 3, NULL, 'CS101', 'This course provides an introduction to distributed databases.', 2, 2, true, true, false, true, 4, 2, 1, 5)
(1, 'Introduction to Computer Science', 'Computer Science', 'CS101', '3', NULL, NULL, 'This course introduces the basics of computer science.', 2, 2, true, false, true, false, 10, 5, 3, 4),
Copy link
Member

@rishsriv rishsriv May 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix here! TIL that Postgres likely automatically casted this to a string earlier

(2, 'Advanced Calculus', 'Mathematics', 'MATH201', '4', 'CS101', NULL, 'This course covers advanced topics in calculus.', 1, 3, false, false, true, true, 5, 4, 2, 3),
(3, 'Introduction to Physics', 'Physics', 'PHYS101', '3', NULL, 'MATH201', 'This course provides an introduction to physics principles.', 2, 1, true, true, true, true, 8, 4, 3, 5),
(4, 'Distributed Databases', 'Computer Science', 'CS302', '3', NULL, 'CS101', 'This course provides an introduction to distributed databases.', 2, 2, true, true, false, true, 4, 2, 1, 5)
;

INSERT INTO public.course_offering (offering_id, course_id, semester, section_number, start_time, end_time, monday, tuesday, wednesday, thursday, friday, saturday, sunday, has_final_project, has_final_exam, textbook, class_address, allow_audit) VALUES
(1, 1, 1, 1, '08:00:00', '10:00:00', 'John Smith', NULL, NULL, 'Jane Doe', NULL, NULL, NULL, true, false, 'Introduction to Computer Science', '123 Main St', true),
(2, 2, 1, 1, '10:00:00', '12:00:00', NULL, NULL, 'Gilbert Strang', NULL, NULL, NULL, NULL, true, true, 'Advanced Calculus', '456 Elm St', false),
(3, 3, 2, 1, '08:00:00', '10:00:00', 'John Smith', NULL, NULL, 'Jane Doe', NULL, NULL, NULL, false, true, 'Introduction to Physics', '789 Oak St', true),
(4, 4, 2, 1, '16:00:00', '18:00:00', NULL, NULL, 'John Smith', 'Brendan Burns', NULL, NULL, NULL, false, true, 'Distributed Systems', '789 Oak St', true),
(5, 1, 3, 1, '08:00:00', '10:00:00', NULL, 'John Smith', 'Jane Doe', NULL, NULL, NULL, NULL, true, false, 'Introduction to Computer Science', '123 Main St', true),
(6, 2, 3, 1, '10:00:00', '12:00:00', 'Gilbert Strang', NULL, NULL, NULL, NULL, NULL, NULL, true, true, 'Advanced Calculus', '456 Elm St', false),
(7, 3, 4, 1, '14:00:00', '16:00:00', NULL, NULL, 'Jane Doe', NULL, 'John Smith', NULL, NULL, false, true, 'Introduction to Physics', '789 Oak St', true),
(8, 4, 4, 1, '16:00:00', '18:00:00', NULL, NULL, 'John Smith', NULL, 'Brendan Burns', NULL, NULL, false, true, 'Distributed Systems', '789 Oak St', true)
(1, 1, 1, 1, '08:00:00', '10:00:00', 'John Smith', NULL, NULL, 'Jane Doe', NULL, NULL, NULL, true, false, 'Introduction to Computer Science', '123 Main St', 'true'),
(2, 2, 1, 1, '10:00:00', '12:00:00', NULL, NULL, 'Gilbert Strang', NULL, NULL, NULL, NULL, true, true, 'Advanced Calculus', '456 Elm St', 'false'),
(3, 3, 2, 1, '08:00:00', '10:00:00', 'John Smith', NULL, NULL, 'Jane Doe', NULL, NULL, NULL, false, true, 'Introduction to Physics', '789 Oak St', 'true'),
(4, 4, 2, 1, '16:00:00', '18:00:00', NULL, NULL, 'John Smith', 'Brendan Burns', NULL, NULL, NULL, false, true, 'Distributed Systems', '789 Oak St', 'true'),
(5, 1, 3, 1, '08:00:00', '10:00:00', NULL, 'John Smith', 'Jane Doe', NULL, NULL, NULL, NULL, true, false, 'Introduction to Computer Science', '123 Main St', 'true'),
(6, 2, 3, 1, '10:00:00', '12:00:00', 'Gilbert Strang', NULL, NULL, NULL, NULL, NULL, NULL, true, true, 'Advanced Calculus', '456 Elm St', 'false'),
(7, 3, 4, 1, '14:00:00', '16:00:00', NULL, NULL, 'Jane Doe', NULL, 'John Smith', NULL, NULL, false, true, 'Introduction to Physics', '789 Oak St', 'true'),
(8, 4, 4, 1, '16:00:00', '18:00:00', NULL, NULL, 'John Smith', NULL, 'Brendan Burns', NULL, NULL, false, true, 'Distributed Systems', '789 Oak St', 'true')
;

INSERT INTO public.course_prerequisite (pre_course_id, course_id) VALUES
Expand Down Expand Up @@ -263,12 +263,12 @@ INSERT INTO public.student (student_id, lastname, firstname, program_id, declare
;

INSERT INTO public.student_record (student_id, course_id, semester, grade, how, transfer_source, earn_credit, repeat_term, test_id, offering_id) VALUES
(1, 1, 1, 'A', 'in-person', NULL, 'Yes', NULL, 1, 1),
(1, 2, 1, 'A', 'in-person', NULL, 'Yes', NULL, 1, 2),
(1, 3, 2, 'A', 'in-person', NULL, 'Yes', NULL, 1, 3),
(1, 4, 2, 'A', 'in-person', NULL, 'Yes', NULL, 1, 4),
(2, 2, 1, 'C', 'in-person', NULL, 'Yes', NULL, 1, 2),
(2, 1, 1, 'B', 'online', NULL, 'Yes', NULL, 1, 1),
(3, 2, 1, 'B+', 'in-person', NULL, 'Yes', NULL, 1, 2),
(3, 4, 2, 'B+', 'in-person', NULL, 'Yes', NULL, 1, 4)
(1, 1, 1, 'A', 'in-person', NULL, 'Yes', NULL, '1', 1),
(1, 2, 1, 'A', 'in-person', NULL, 'Yes', NULL, '1', 2),
(1, 3, 2, 'A', 'in-person', NULL, 'Yes', NULL, '1', 3),
(1, 4, 2, 'A', 'in-person', NULL, 'Yes', NULL, '1', 4),
(2, 2, 1, 'C', 'in-person', NULL, 'Yes', NULL, '1', 2),
(2, 1, 1, 'B', 'online', NULL, 'Yes', NULL, '1', 1),
(3, 2, 1, 'B+', 'in-person', NULL, 'Yes', NULL, '1', 2),
(3, 4, 2, 'B+', 'in-person', NULL, 'Yes', NULL, '1', 4)
;
104 changes: 52 additions & 52 deletions defog_data/atis/atis.sql
Original file line number Diff line number Diff line change
Expand Up @@ -327,13 +327,13 @@ INSERT INTO public.compartment_class (compartment, class_type) VALUES
;

INSERT INTO public.days (days_code, day_name) VALUES
(1, 'Monday'),
(2, 'Tuesday'),
(3, 'Wednesday'),
(4, 'Thursday'),
(5, 'Friday'),
(6, 'Saturday'),
(7, 'Sunday')
('1', 'Monday'),
('2', 'Tuesday'),
('3', 'Wednesday'),
('4', 'Thursday'),
('5', 'Friday'),
('6', 'Saturday'),
('7', 'Sunday')
;

INSERT INTO public.dual_carrier (main_airline, low_flight_number, high_flight_number, dual_airline, service_name) VALUES
Expand All @@ -350,16 +350,16 @@ INSERT INTO public.dual_carrier (main_airline, low_flight_number, high_flight_nu
;

INSERT INTO public.equipment_sequence (aircraft_code_sequence, aircraft_code) VALUES
(1, 'B747'),
(2, 'A320'),
(3, 'B737'),
(4, 'A380'),
(5, 'B777'),
(6, 'A330'),
(7, 'B787'),
(8, 'A350'),
(9, 'E190'),
(10, 'CRJ200')
('1', 'B747'),
('2', 'A320'),
('3', 'B737'),
('4', 'A380'),
('5', 'B777'),
('6', 'A330'),
('7', 'B787'),
('8', 'A350'),
('9', 'E190'),
('10', 'CRJ200')
;

INSERT INTO public.fare (fare_id, from_airport, to_airport, fare_basis_code, fare_airline, restriction_code, one_direction_cost, round_trip_cost, round_trip_required) VALUES
Expand All @@ -376,29 +376,29 @@ INSERT INTO public.fare (fare_id, from_airport, to_airport, fare_basis_code, far
;

INSERT INTO public.fare_basis (fare_basis_code, booking_class, class_type, premium, economy, discounted, night, season, basis_days) VALUES
('ABC', 'First', 'First Class', 'Yes', 'No', 'No', 'No', 'Regular', 30),
('DEF', 'Business', 'Business Class', 'Yes', 'No', 'No', 'No', 'Regular', 30),
('GHI', 'Economy', 'Economy Class', 'No', 'Yes', 'Yes', 'No', 'Regular', 30),
('JKL', 'First', 'First Class', 'Yes', 'No', 'No', 'No', 'Regular', 30),
('MNO', 'Business', 'Business Class', 'Yes', 'No', 'No', 'No', 'Regular', 30),
('PQR', 'Economy', 'Economy Class', 'No', 'Yes', 'Yes', 'No', 'Regular', 30),
('STU', 'First', 'First Class', 'Yes', 'No', 'No', 'No', 'Regular', 30),
('VWX', 'Business', 'Business Class', 'Yes', 'No', 'No', 'No', 'Regular', 30),
('YZ', 'Economy', 'Economy Class', 'No', 'Yes', 'Yes', 'No', 'Regular', 30),
('AAA', 'First', 'First Class', 'Yes', 'No', 'No', 'No', 'Regular', 30)
('ABC', 'First', 'First Class', 'Yes', 'No', 'No', 'No', 'Regular', '30'),
('DEF', 'Business', 'Business Class', 'Yes', 'No', 'No', 'No', 'Regular', '30'),
('GHI', 'Economy', 'Economy Class', 'No', 'Yes', 'Yes', 'No', 'Regular', '30'),
('JKL', 'First', 'First Class', 'Yes', 'No', 'No', 'No', 'Regular', '30'),
('MNO', 'Business', 'Business Class', 'Yes', 'No', 'No', 'No', 'Regular', '30'),
('PQR', 'Economy', 'Economy Class', 'No', 'Yes', 'Yes', 'No', 'Regular', '30'),
('STU', 'First', 'First Class', 'Yes', 'No', 'No', 'No', 'Regular', '30'),
('VWX', 'Business', 'Business Class', 'Yes', 'No', 'No', 'No', 'Regular', '30'),
('YZ', 'Economy', 'Economy Class', 'No', 'Yes', 'Yes', 'No', 'Regular', '30'),
('AAA', 'First', 'First Class', 'Yes', 'No', 'No', 'No', 'Regular', '30')
;

INSERT INTO public.flight (flight_id, flight_days, from_airport, to_airport, departure_time, arrival_time, airline_flight, airline_code, flight_number, aircraft_code_sequence, meal_code, stops, connections, dual_carrier, time_elapsed) VALUES
(1, 'mon,wed', 'ORD', 'JFK', 1577836800, 1577840400, 'AA123', 'AA', 'AA123', 1, 'BF', 0, 0, 'AA123', 3600),
(2, 'tue,thu', 'ORD', 'JFK', 1577844000, 1577854000, 'UA456', 'UA', 'UA456', 2, 'LN', 1, 1, 'UA456', 10000),
(3, 'wed', 'ORD', 'JFK', 1577851200, 1577854900, 'AA789', 'AA', 'AA789', 3, 'DN', 0, 0, 'AA789', 3700),
(4, 'thu', 'ORD', 'JFK', 1577858400, 1577873400, 'WN012', 'WN', 'WN012', 4, 'BS', 1, 1, 'WN012', 15000),
(5, 'fri', 'ORD', 'LAX', 1577865600, 1577869600, 'AS345', 'AS', 'AS345', 5, 'BF', 0, 0, 'AS345', 4000),
(6, 'sat,mon', 'JFK', 'ORD', 1577872800, 1577884800, 'AA124', 'AA', 'AA123', 6, 'LN', 1, 1, 'B678', 12000),
(7, 'sun', 'JFK', 'ORD', 1577880000, 1577883700, 'UA457', 'UA', 'UA457', 7, 'DN', 0, 0, 'UA457', 3700),
(8, 'mon', 'JFK', 'LAX', 1577887200, 1577897200, 'F934', 'F9', 'F934', 8, 'BS', 1, 1, 'F934', 10000),
(9, 'tue', 'LAX', 'ORD', 1577894400, 1577898400, 'HA567', 'HA', 'HA567', 9, 'LS', 0, 0, 'HA567', 4000),
(10, 'wed,mon', 'LAX', 'ORD', 1577901600, 1577921600, 'VX890', 'VX', 'VX890', 10, 'DS', 1, 1, 'VX890', 20000)
(1, 'mon,wed', 'ORD', 'JFK', 1577836800, 1577840400, 'AA123', 'AA', 'AA123', '1', 'BF', 0, 0, 'AA123', 3600),
(2, 'tue,thu', 'ORD', 'JFK', 1577844000, 1577854000, 'UA456', 'UA', 'UA456', '2', 'LN', 1, 1, 'UA456', 10000),
(3, 'wed', 'ORD', 'JFK', 1577851200, 1577854900, 'AA789', 'AA', 'AA789', '3', 'DN', 0, 0, 'AA789', 3700),
(4, 'thu', 'ORD', 'JFK', 1577858400, 1577873400, 'WN012', 'WN', 'WN012', '4', 'BS', 1, 1, 'WN012', 15000),
(5, 'fri', 'ORD', 'LAX', 1577865600, 1577869600, 'AS345', 'AS', 'AS345', '5', 'BF', 0, 0, 'AS345', 4000),
(6, 'sat,mon', 'JFK', 'ORD', 1577872800, 1577884800, 'AA124', 'AA', 'AA123', '6', 'LN', 1, 1, 'B678', 12000),
(7, 'sun', 'JFK', 'ORD', 1577880000, 1577883700, 'UA457', 'UA', 'UA457', '7', 'DN', 0, 0, 'UA457', 3700),
(8, 'mon', 'JFK', 'LAX', 1577887200, 1577897200, 'F934', 'F9', 'F934', '8', 'BS', 1, 1, 'F934', 10000),
(9, 'tue', 'LAX', 'ORD', 1577894400, 1577898400, 'HA567', 'HA', 'HA567', '9', 'LS', 0, 0, 'HA567', 4000),
(10, 'wed,mon', 'LAX', 'ORD', 1577901600, 1577921600, 'VX890', 'VX', 'VX890', '10', 'DS', 1, 1, 'VX890', 20000)
;

INSERT INTO public.flight_fare (flight_id, fare_id) VALUES
Expand Down Expand Up @@ -428,11 +428,11 @@ INSERT INTO public.flight_leg (flight_id, leg_number, leg_flight) VALUES
;

INSERT INTO public.flight_stop (flight_id, stop_number, stop_days, stop_airport, arrival_time, arrival_airline, arrival_flight_number, departure_time, departure_airline, departure_flight_number, stop_time) VALUES
(2, 1, 2, 'DFW', 1577847600, 'UA', 'UA456', 1577851200, 'UA', 'UA456', 3600),
(4, 1, 4, 'DEN', 1577862000, 'WN', 'WN012', 1577865600, 'WN', 'WN012', 3600),
(6, 1, 6, 'DFW', 1577876400, 'AA', 'AA123', 1577880000, 'AA', 'AA123', 3600),
(8, 1, 1, 'LAX', 1577890800, 'F9', 'F934', 1577894400, 'F9', 'F934', 3600),
(10, 1, 3, 'JFK', 1577905200, 'VX', 'VX890', 1577908800, 'VX', 'VX890', 3600)
(2, 1, '2', 'DFW', 1577847600, 'UA', 'UA456', 1577851200, 'UA', 'UA456', 3600),
(4, 1, '4', 'DEN', 1577862000, 'WN', 'WN012', 1577865600, 'WN', 'WN012', 3600),
(6, 1, '6', 'DFW', 1577876400, 'AA', 'AA123', 1577880000, 'AA', 'AA123', 3600),
(8, 1, '1', 'LAX', 1577890800, 'F9', 'F934', 1577894400, 'F9', 'F934', 3600),
(10, 1, '3', 'JFK', 1577905200, 'VX', 'VX890', 1577908800, 'VX', 'VX890', 3600)
;

INSERT INTO public.food_service (meal_code, meal_number, compartment, meal_description) VALUES
Expand Down Expand Up @@ -471,16 +471,16 @@ INSERT INTO public.month (month_number, month_name) VALUES
;

INSERT INTO public.restriction (restriction_code, advance_purchase, stopovers, saturday_stay_required, minimum_stay, maximum_stay, application, no_discounts) VALUES
('NONE', 14, 2, 'No', 7, 30, 'One-Way', 'Yes'),
('NONE', 14, 2, 'No', 7, 30, 'One-Way', 'Yes'),
('NONE', 14, 2, 'No', 7, 30, 'One-Way', 'Yes'),
('NONE', 14, 2, 'No', 7, 30, 'One-Way', 'Yes'),
('NONE', 14, 2, 'No', 7, 30, 'One-Way', 'Yes'),
('NONE', 14, 2, 'No', 7, 30, 'One-Way', 'Yes'),
('NONE', 14, 2, 'No', 7, 30, 'One-Way', 'Yes'),
('NONE', 14, 2, 'No', 7, 30, 'One-Way', 'Yes'),
('NONE', 14, 2, 'No', 7, 30, 'One-Way', 'Yes'),
('NONE', 14, 2, 'No', 7, 30, 'One-Way', 'Yes')
('NONE', 14, '2', 'No', 7, 30, 'One-Way', 'Yes'),
('NONE', 14, '2', 'No', 7, 30, 'One-Way', 'Yes'),
('NONE', 14, '2', 'No', 7, 30, 'One-Way', 'Yes'),
('NONE', 14, '2', 'No', 7, 30, 'One-Way', 'Yes'),
('NONE', 14, '2', 'No', 7, 30, 'One-Way', 'Yes'),
('NONE', 14, '2', 'No', 7, 30, 'One-Way', 'Yes'),
('NONE', 14, '2', 'No', 7, 30, 'One-Way', 'Yes'),
('NONE', 14, '2', 'No', 7, 30, 'One-Way', 'Yes'),
('NONE', 14, '2', 'No', 7, 30, 'One-Way', 'Yes'),
('NONE', 14, '2', 'No', 7, 30, 'One-Way', 'Yes')
;

INSERT INTO public.state (state_code, state_name, country_name) VALUES
Expand Down
12 changes: 6 additions & 6 deletions defog_data/broker/broker.sql
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ INSERT INTO sbCustomer (sbCustId, sbCustName, sbCustEmail, sbCustPhone, sbCustAd
('C012', 'Olivia Johnson', 'olivia.johnson@email.com', '555-987-6543', '321 Elm St', 'Newtown', 'NJ', 'USA', '08801', '2023-01-05', 'active'),
('C013', 'Ethan Davis', 'ethan.davis@email.com', '555-246-8135', '654 Oak Ave', 'Someville', 'NY', 'USA', '10002', '2023-02-12', 'active'),
('C014', 'Ava Wilson', 'ava.wilson@email.com', '555-135-7902', '987 Pine Rd', 'Anytown', 'CA', 'USA', '90001', '2023-03-20', 'active'),
('C015', 'Emma Brown', 'emma.brown@email.com', '555-987-6543', '789 Oak St', 'Newtown', 'NJ', 'USA', '08801', DATE_TRUNC('month', NOW()) - INTERVAL '5 months', 'active'),
('C016', 'sophia martinez', 'sophia.martinez@email.com', '555-246-8135', '159 Elm Ave', 'Anytown', 'CA', 'USA', '90001', DATE_TRUNC('month', NOW()) - INTERVAL '4 months', 'active'),
('C017', 'Jacob Taylor', 'jacob.taylor@email.com', '555-135-7902', '753 Pine Rd', 'Someville', 'NY', 'USA', '10002', DATE_TRUNC('month', NOW()) - INTERVAL '3 months', 'active'),
('C018', 'Michael Anderson', 'michael.anderson@email.com', '555-864-2319', '321 Cedar Ln', 'Yourtown', 'CA', 'USA', '92101', DATE_TRUNC('month', NOW()) - INTERVAL '2 months', 'active'),
('C019', 'Isabella Thompson', 'isabella.thompson@email.com', '555-753-1904', '987 Maple Dr', 'Anothertown', 'FL', 'USA', '33101', DATE_TRUNC('month', NOW()) - INTERVAL '1 month', 'active'),
('C020', 'Maurice Lee', 'maurice.lee@email.com', '555-370-2648', '654 Oak St', 'Mytown', 'TX', 'USA', '75000', DATE_TRUNC('month', NOW()), 'active');
('C015', 'Emma Brown', 'emma.brown@email.com', '555-987-6543', '789 Oak St', 'Newtown', 'NJ', 'USA', '08801', DATE_TRUNC('month', CURRENT_DATE) - INTERVAL '5 months', 'active'),
('C016', 'sophia martinez', 'sophia.martinez@email.com', '555-246-8135', '159 Elm Ave', 'Anytown', 'CA', 'USA', '90001', DATE_TRUNC('month', CURRENT_DATE) - INTERVAL '4 months', 'active'),
('C017', 'Jacob Taylor', 'jacob.taylor@email.com', '555-135-7902', '753 Pine Rd', 'Someville', 'NY', 'USA', '10002', DATE_TRUNC('month', CURRENT_DATE) - INTERVAL '3 months', 'active'),
('C018', 'Michael Anderson', 'michael.anderson@email.com', '555-864-2319', '321 Cedar Ln', 'Yourtown', 'CA', 'USA', '92101', DATE_TRUNC('month', CURRENT_DATE) - INTERVAL '2 months', 'active'),
('C019', 'Isabella Thompson', 'isabella.thompson@email.com', '555-753-1904', '987 Maple Dr', 'Anothertown', 'FL', 'USA', '33101', DATE_TRUNC('month', CURRENT_DATE) - INTERVAL '1 month', 'active'),
('C020', 'Maurice Lee', 'maurice.lee@email.com', '555-370-2648', '654 Oak St', 'Mytown', 'TX', 'USA', '75000', DATE_TRUNC('month', CURRENT_DATE), 'active');


-- sbTicker
Expand Down
Loading
Loading