Re: SQL: If one item is false, I need a false returning



On Fri, 11 Sep 2009 15:54:48 +0100, David wrote:

(snip)
Once I have that working, I then need to extend that part of the query... I
have another field, RepairAuthType. The contents here are restricted from a
list... Now, I need to combine that with the AuthAssigned... as some
AuthAssigned will not need to tell the screen if it is a false, if you can
see what I mean.

Hi David,

Glad you already figured out the first part. I have to admit that I
don't see what you mean for the second. Please post the following
information:

* The design of your tables, as CREATE TABLE statements. Irrelevant
columns may be omitted, but please include all constraints and indexes.

* Some well-chosen rows of sample data, as INSERT statements. Make sure
that they work agains the tables you post, and avoid any locale specific
date formats.

* Expected results from the sample data posted, plus an explanation
(unless it's self-explanatory).

See www.aspfaq.com/5006 for more details.

--
Hugo Kornelis, SQL Server MVP
My SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis
.



Relevant Pages

  • Re: Extracting Duplicates from SQL Server 2000
    ... Here is the query that I used. ... a few well-chosen rows of sample data (as ... My SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis ...
    (comp.databases.ms-sqlserver)
  • Re: Help with Subquery
    ... all you have to do is to remove the ISNULL. ... easily recreate the sample data on my test DB), ... My SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis ...
    (microsoft.public.sqlserver.mseq)
  • Re: multiple cascade paths
    ... I'll address some and snip the rest of the post. ... The only reason to go to SQL Server now is because right ... cascading deletes in some other way. ... most foreign key constraints don't form cycles or multiple cascade ...
    (comp.databases.ms-sqlserver)
  • Re: Query for search engine
    ... > relational database and is not restricted to SQL server. ... > our internet site and SQL for our intranet sites. ... >> Could you please post some DDL, sample data and expected result? ...
    (microsoft.public.sqlserver.programming)
  • Access SUMs Full Column When Using Subquery
    ... I jumped over to SQL Server, and it gave me the results I wanted, so ... Sample Data: Students_02272005_1 ... SELECT clause due to conditions specified on the subquery's WHERE ... Stud_ID Lesson PercentAbove5 ...
    (microsoft.public.access.queries)

Loading