Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. SQL Server
  3. Question
SQL Server

How to find the table name from the Column name in SQL?

Asked by David Edwards Jul 15, 2024 1.2K views 1 answer
Share

About this question

I am currently engaged as a database manager for a particular retail-based company that uses a large SQL database to store its data. Recently, I have found that one of the data analysts requested a report on the purchase history of the customer. They have a list of names related to columns however they are unsure which tables these columns belong in the database. Given the columns name Customer_id how can I write an SQL query to find the name of the table which contains this particular column? 

Your answer

1 Answer

More SQL Server discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest SQL Server Blogs

Guides, tips and career advice on SQL Server from JanBask experts.