How to find a particular column in a database which is having n Number of tables.
Finding a particular column from a database which is having more number of tables. Let's suppose we have sales data which contains some n number of tables and one need to find any particular column in database . Here, taking example of sales database which has some 13 number of columns and in some of the tables there is some common column like " order_id ", "customer_id". So, manually it will be hectic or time consuming to find in each table. Here is the python script to find the particular desired columns from all tables of the database. Database_name = "sales" Tables : customers table : contains customer information such as name, address, and contact details. orders table : contains information about customer orders, including order date, product details, and total cost. employees table : contains employee information such as name, address, and contact details. products table : contains information about the products that are available for purcha