Reputation: 53
I get over 1 million results from this query. How do I limit it to just the first 10 that I can test with?
Select id, first_name, last_name
from customers
Where country = 'US'
Upvotes: 0
Views: 78
Reputation: 823
Sure! T-SQL
Select TOP 10 id, first_name, last_name
from customers Where country = 'US'
For anything ANSI Compliant see this question which has a similar aim: ANSI SQL version of SELECT TOP 1
Upvotes: 1