Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

QUERIES AND SINTAX

Posted on 2008-10-06
6
Medium Priority
?
189 Views
Last Modified: 2013-11-11
What is the syntax for :

SELECT     *
FROM         dbo.[TableName]
WHERE     (Status = 'NULL') If I want a view to show all records that have a NULL value in a specified field.

Thanks.
0
Comment
Question by:gabepcsolutions
  • 2
  • 2
  • 2
6 Comments
 
LVL 11

Expert Comment

by:indianguru2
ID: 22651867
SELECT     *
FROM         dbo.[TableName]
WHERE     (Status is 'NULL')
0
 
LVL 66

Expert Comment

by:Jim Horn
ID: 22651869
SELECT *
FROM TableName
WHERE Status IS NULL

btw, it's spelled Syntax.  
0
 
LVL 11

Accepted Solution

by:
indianguru2 earned 1000 total points
ID: 22651872
Sorry this one ...

SELECT     *
FROM         dbo.[TableName]
WHERE     (Status is NULL)
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:gabepcsolutions
ID: 22651914
Thanks guys.

How do I copy one or multiple tables from one database to another ?
0
 
LVL 66

Assisted Solution

by:Jim Horn
Jim Horn earned 1000 total points
ID: 22651951
>How do I copy one or multiple tables from one database to another ?
EE etiqute dictates that you ask this as a separate question, as it's completely different from your original question, and not as a follow-on.
0
 

Author Comment

by:gabepcsolutions
ID: 22651985
You're right, sorry.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
Recursive SQL is one of the most fascinating and powerful and yet dangerous feature offered in many modern databases today using a Common Table Expression (CTE) first introduced in the ANSI SQL 99 standard. The first implementations of CTE began ap…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question