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

How to extract data in SQL?

Asked by David Edmunds Jul 15, 2024 907 views 1 answer
Share

About this question

 I am currently working as a data analyst for a particular retail company. I need to generate a report that lists all the products in the inventory that have sold more than 100 units in the past months. The company’s database has a table named “Sales” with the following structure:

  • Product_ I’d (Integer)

  • Product_name(varchar)

  • Units_sold(integer)

  • Sales_date(date) 

By using SQL, which statement should I use to extract the name of the products and the total units sold for the product that has sold more than 100 units in the past months? 

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.