Reply
SELECT year FROM table1 (without duplicate)
Old 06-01-2008, 11:32 PM SELECT year FROM table1 (without duplicate)
Nazi370's Avatar
Skilled Talker

Posts: 70
Name: Nazirul
Trades: 0
Hi !
Good Day..

How do we select , for example a year in a column name year without duplicating it...

i want to list down all the year for activity in a dropdownlist... but the years duplicated


such, 2002,2003,2004,2002,2002,...

and i have to create new table to generate the require years...

thanks
Nazi370 is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 06-02-2008, 07:11 AM Re: SELECT year FROM table1 (without duplicate)
chrishirst's Avatar
Super Moderator

Posts: 26,381
Location: Blackpool. UK
Trades: 0
SELECT DISTINCT
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | Crowded Nightclub? | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-02-2008, 10:07 PM Re: SELECT year FROM table1 (without duplicate)
Nazi370's Avatar
Skilled Talker

Posts: 70
Name: Nazirul
Trades: 0
thanks man... you are great!!

sorry i forgot the command DISTINCT ...
Nazi370 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to SELECT year FROM table1 (without duplicate)
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.08561 seconds with 13 queries