English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have a table with almost 50,000 telephone numbers. I need to select 100 different telephone numbers ... any help ??

Thank you.

2006-12-04 09:05:47 · 3 answers · asked by evollutionmp 1 in Computers & Internet Programming & Design

3 answers

In each row, is the telephone number unique? If so, the just:


SELECT TOP 100 * FROM TELEPHONE_NUMBERS;

should deliver what you need. Without more detail, your question cannot be answered adequately.

2006-12-04 09:09:55 · answer #1 · answered by WickedSmaht 3 · 0 0

Try:
SELECT TOP 100 DISTINCT phone_number FROM numbers_table

where numbers_table is the table with the phone numbers and phone_number is the name of the phone number field.

2006-12-04 09:12:37 · answer #2 · answered by romulusnr 5 · 0 0

select distinct numbers from table limit 100;
it will extract 100 numbers independent .. i mean not duplicates ..
good luck

2006-12-04 10:36:53 · answer #3 · answered by luckilian 1 · 0 0

fedest.com, questions and answers