Let us understand how we can type cast to change the data type of extracted value to its original type.
The sql extension is already loaded. To reload it, use:
%reload_ext sql
env: DATABASE_URL=postgresql://itversity_retail_user:retail_password@localhost:5432/itversity_retail_db
* postgresql://itversity_retail_user:***@localhost:5432/itversity_retail_db
1 rows affected.
* postgresql://itversity_retail_user:***@localhost:5432/itversity_retail_db
1 rows affected.
* postgresql://itversity_retail_user:***@localhost:5432/itversity_retail_db
1 rows affected.
* postgresql://itversity_retail_user:***@localhost:5432/itversity_retail_db
1 rows affected.
* postgresql://itversity_retail_user:***@localhost:5432/itversity_retail_db
1 rows affected.
* postgresql://itversity_retail_user:***@localhost:5432/itversity_retail_db
1 rows affected.
* postgresql://itversity_retail_user:***@localhost:5432/itversity_retail_db
1 rows affected.
* postgresql://itversity_retail_user:***@localhost:5432/itversity_retail_db
1 rows affected.
* postgresql://itversity_retail_user:***@localhost:5432/itversity_retail_db
1 rows affected.
* postgresql://itversity_retail_user:***@localhost:5432/itversity_retail_db
1 rows affected.
* postgresql://itversity_retail_user:***@localhost:5432/itversity_retail_db
1 rows affected.