We help IT Professionals succeed at work.
Get Started

Need a query to pull only 30 items

Cole100 asked
Last Modified: 2021-04-21
I have built a very simple query to pull customer email address' from the previous week for each of my stores. What I need to do is have only 30 email address' pulled for each store rather than all of them from the week. Any idea's how I would do that?
SELECT dbo_Invoice_Tb.Store_Number, dbo_Invoice_Tb.Customer_Email_Address
FROM dbo_Invoice_Tb
WHERE (((dbo_Invoice_Tb.Customer_Email_Address) Like "*@*") AND ((dbo_Invoice_Tb.Invoice_Date) Between Date()-7 And Date()-1))
ORDER BY dbo_Invoice_Tb.Store_Number, dbo_Invoice_Tb.Customer_Email_Address DESC;

Open in new window

Watch Question
This problem has been solved!
Unlock 1 Answer and 18 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE