Solved

QUERIES AND SINTAX

Posted on 2008-10-06
6
181 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 11

Expert Comment

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

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 250 total points
ID: 22651872
Sorry this one ...

SELECT     *
FROM         dbo.[TableName]
WHERE     (Status is NULL)
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:gabepcsolutions
ID: 22651914
Thanks guys.

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

Assisted Solution

by:Jim Horn
Jim Horn earned 250 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

749 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