Forum Replies Created

Viewing 15 posts - 16,531 through 16,545 (of 18,926 total)

  • RE: Combining SELECT statements

    because " & slid & " in (null, slid) will fail

  • RE: Combining SELECT statements

    or you can just rewrite the where condition like so :

    WHERE slid IN (ISNULL(SQ.SLid,0),ISNULL(DEkeyValue,0))

  • RE: Using Triggers

    HT almost help

  • RE: Combining SELECT statements

    That was my point, your query is basically asking just that.

    SQ.SLid=" & slid & " AND DEkeyValue =" & slid

    is the same as

    A = C and B = C, hence...

  • RE: Combining SELECT statements

    Does this return anything??

    SELECT SQ.*, DEdescription, DEenteredDate

    , sendto.AOcontactNameLast AS SendTo

    , billto.AOcontactNameLast AS BillTo

    , req.AOcontactNameLast AS Requestor

    , DE.*

    FROM schoolrequest SQ

    INNER JOIN academicoffice ST ON SQ.SLsendToId=sendto.AOid

    ...

  • RE: Using Triggers

    This is just how the view wizard optimizes the where conditions. As wrong as it seems, it's often better for performance to have the query written that way. ...

  • RE: Using Triggers

    Hmm, then I think that they either have to wait for the most current data or just accept the 5-10 minutes delay... I don't know any workaround in this situation.

  • RE: Using Triggers

    If you are using 50 views to make this, I would strongly suggest you try to use only the base tables as you might see a big improvement from that....

  • RE: SQL v7.0 Evaluation Period has expired

    Now I need to be shot... forgot that you couldn't access the server .

    I think the faster solution might be to reinstall after all....

  • RE: Using Triggers

    Maybe it's just me, but I don't see a single subquery in there. Also I would definitly run the index tuning wizard just to make sure you're not missing...

  • RE: Versioning Rows for Point-in-time

    The idea of that design is to able to go to the last person who touched the record... not to be able to see the whole thing version by version....

  • RE: SQL v7.0 Evaluation Period has expired

    Is it possible that you didn't reboot since the 120 days limit of a trial version?? IIRC, the evaluation check is done at startup, so unless you reboot, you...

  • RE: Versioning Rows for Point-in-time

    That's not even a best pratice, that's just basic database design.

    It's like if you have a db with cars and their owners over time.

    You'd have a table car, a table...

  • RE: Pulling data from Oracle tables to SQL Server

    Still can't answer that one. The other option you have is to split the select completely like this :

    Create a stored proc on Oracle with the PrevYear, nextyear......

  • RE: Versioning Rows for Point-in-time

    I'm not that rude, am I??

Viewing 15 posts - 16,531 through 16,545 (of 18,926 total)