CREATE TOP 5 LIST PER DATE

G

Guest

hi

i am a beginner and I am trying to get a top 3 downtime per date for a
machine.
I copied this from another help section

In (Select Top 3 [DOWNTIME] From [5 - TREND BY CAUSE Line 2] Where
[DATE]=[SHIFT DATA ENTRY].[DATE] Order By [DOWNTIME] Desc)

but instead of giveing me report like below
300 12/7
200 12/7
50 12/7
500 11/7
450 11/7
10 11/7

It only gives me top 3 downtime regardless of date like
500 11/7
450 11/7
300 12/7

please help, thanks.
 
G

Guest

What are the table names you are working with? What are the field names and
datatype of the fields?
It looks like you wanted data from a single date ( Where [DATE]=[SHIFT DATA
ENTRY].[DATE] ) but your results show two dates.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top