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

Tech-Archive recommends: Speed Up your PC by fixing your registry



Based on the subject, all he needs is a where clause with a string of ANDs (or a negative case with ORs) between each thing that he needs to be true. It is better to do it that way because, what is likely wanted, is to make sure that all tests have passed (been authorized) rather than to check if any test failed and so the problem of NULLs, independent of data type and constraint, is eliminated.

This is a case where your ROI (risk of incarceration) modis might be appropriate!


"--CELKO--" <jcelko212@xxxxxxxxxxxxx> wrote in message news:25e2ed15-a815-4de4-973b-2cce6a76d152@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

MIN (CAST ( TrailerDefects.auth_assigned AS INTEGER)) AS authed <<

Doesn't that seem convoluted to you?

In some versions of SQL Server, BIT was a bit, then later it was a
numeric; numeric data types (like all SQL data types) are NULL-able.
But the proprietary are not the only reason we avoid using assembly
language/ punch card style bit flags.

SQL is a "predicate language" and not a low-level flag language. We
discover a fact by using a search condition which is always right and
not just when it was set. A ample date of an event lets you follow a
history and enforce business rules. That is we would not have
"auth_assigned_flg" but a "authorization_date" instead.

.



Relevant Pages

  • Re: If one item is false, I need a false returning
    ... numeric data types (like all SQL data types) are NULL-able. ... SQL is a "predicate language" and not a low-level flag language. ...
    (microsoft.public.sqlserver.programming)
  • Re: If one item is false, I need a false returning
    ... numeric data types (like all SQL data types) are NULL-able. ... SQL is a "predicate language" and not a low-level flag language. ...
    (microsoft.public.sqlserver.programming)
  • Re: SQLwaterheadretard3 (Was: Is it just me, or is Sqlite3 goofy?)
    ... simple embedded database as SQL-compliant as possible. ... It's just that it's not SQL, ... "If switching to a larger database such as PostgreSQL or Oracle ... has an issue with dynamic data types and in HIS version of Python, ...
    (comp.lang.python)
  • Re: why>?
    ... you're wrong because you're ignorant. ... Follow the links for all the numeric data types. ... SQL Server's Real ... Every .XLS file may be an ODBC data source. ...
    (microsoft.public.excel)
  • Re: Custom Aggregate
    ... All data types are NULL-able. ... SQL. ... Thanks for the useless rant as always Jo. ... not suggesting a bit would be -1, I would suggesting an *integer* would ...
    (microsoft.public.sqlserver.programming)