Only one entry for a query

ennrike

Registered User.
Local time
Yesterday, 18:54
Joined
Dec 3, 2010
Messages
25
Hi,

I have a query for selection, for example:

SELECT WorkOrderNumber FROM MyTable WHERE HourPlan > 10

Because I have duplicates of "WorkOrdersNumbers" in MyTable, the query gives me more than one row of a simgle "WorkOrdersNumbers", what should I add to the query to make sure it is only one "WorkOrdersNumbers" per row.

I am aware that I will not get all info of each "WorkOrdersNumbers" but it does not matter for me, I dont want to have duplicates in the result of the query.

Thanks,
 
By the way, I need to use also "TOP", I mean:

SELECT TOP 50 WorkOrderNumber FROM MyTable WHERE HourPlan > 10 ORDER BY Date
 

Users who are viewing this thread

Back
Top Bottom