You are here: Re: Rookie question about query/View « MsSQL Server « IT news, forums, messages
Re: Rookie question about query/View

Posted by bmeyynospamnospam on 06/15/05 01:05

Thanks Stu,
Can I just put the case statement into the grid in MS SQL?
I can't seem to get th egrid to work, or should I not be using the
grid.

Brad

"Stu" <stuart.ainsworth@gmail.com> wrote:

>In MS Access, write a qury that uses an IIF command, and then flip to
>the SQL view from the dropdown. This should show you the SQL syntax
>for entering a command; CASE is similar.
>
>SELECT field1, field2=CASE WHEN field1='NY' THEN 1 ELSE 0 END
>FROM table
>
>
>Hope that helps,
>Stu

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация