Ask a Question related to ASP.NET General, Design and Development.
-
Jerry III #1
Re: Creating a 'View'
First, this is a SQL question, not asp.net question.
Second, you need to use CASE, WHEN is just a part of that:
CASE WHEN [status] = 'ACTIVE' THEN [status] ELSE NULL END
BTW why don't you just use bit for active, it would be a lot faster and you
wouldn't have to worry about the proper spelling and casing...
Jerry
"Micheal" <frooyo@sbcglobal.net> wrote in message
news:e8Pn6VDXDHA.2344@TK2MSFTNGP09.phx.gbl...another> I want to create a 'view' but have a condition on a column based on'Active',> column. Basically, I want to do this:
>
> CREATE VIEW MyView
> AS
> SELECT [id] AS dept_id,
> [name] AS dept_name,
> url WHEN STATUS = 'ACTIVE'
> FROM department
> WHERE event_sharing = 'on'
>
>
> What I want to do is only display the URL field when the Status => and if Status <> 'Acitve' I want to return a null/blank URL field.
>
>
Jerry III Guest
-
View-View Event Processing
I am not getting View to View Event processing to work. I have looked through most of the Flex 2 and Flex 3 docs plus several of the Flex books to... -
Creating a View
How about using fully qualified names? .. should work... Jerry "Micheal" <frooyo@sbcglobal.net> wrote in message... -
An example for creating a web custom control with full design view.
Hi, I know I should use the ControlDesigner class if I want to implement design mode behavior for a composition based control. However, do you know... -
Standard View vs. Layout View
view>table view joe "lilyeq" <webforumsuser@macromedia.com> wrote in message news:bfm6gt$qla$1@forums.macromedia.com... making tables. In... -
Wierd error when going to Design View from HTML view
When I go from HTML view (in a webform) to Design View I get the following error: Could not open in Design view. Quote values differently inside a...



Reply With Quote

