Use and operator as:

WHERE table.Cal LIKE 2009%
      AND table.Cal = 'Jan1'

I hope that solves the issue.




On Wed, May 6, 2009 at 8:13 PM, Yu <vincent2...@gmail.com> wrote:

>
> Hi Dear members,
>
>    I need to extract some data from Database. For instance, I have
> such an column in a table. I wanna extract Jan1 ,Feb2 and records
> starting with 2009
>
>
>   Jan1
>   Feb2
>   20081001
>   20091092
>   20091093
>  20091094
>   20091095
>
>                     I know how to extract records starting with 2009.
> here is what I do
>
>
>       SELECT * FROM table WHERE table.Cal LIKE 2009%  ,but what about
> Jan1 and Feb2?
>
>
>  thanks!
>
> >
>


-- 
Thanks & Regards,

Harmeet Singh

--~--~---------~--~----~------------~-------~--~----~
-------------------------------------------------------------------------------------
Some important links for excel users:
1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
2. Excel tutorials at http://www.excel-macros.blogspot.com
3. Learn VBA Macros at http://www.vbamacros.blogspot.com
4. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 

To post to this group, send email to excel-macros@googlegroups.com
If you find any spam message in the group, please send an email to:
Ayush Jain  @ jainayus...@gmail.com or
Ashish Jain @ 26may.1...@gmail.com
-------------------------------------------------------------------------------------
-~----------~----~----~----~------~----~------~--~---

Reply via email to