Forum Replies Created

Viewing 5 posts - 46 through 50 (of 50 total)

  • RE: Exclusions Join

    Hi

    The tables first need to be joined. The rows to be excluded can be filtered using a where clause or by specifying the criteria in the join itself.

    from table2

    join table1...

  • RE: Deleting rows from a table...best way?

    Hi

    Why is there an extra 7 in the code?

    I would use the ffg script to get midnight a week ago:

    select dateAdd(dd,datediff(dd,0,getdate()-7),0)

    but if I wanted to keep everything from this...

  • RE: CONDITIONAL WHERE CLAUSE

    How is it that your application or SQL knows who is running the query? Are you checking SUSER_NAME(), USER_NAME() as explained above?

  • RE: Copy data from table1.fieldA to table2.fieldB

    Hi

    Just wondering if there is a way to link the 2 tables? Is EmployeeNumber the primary key? I'm sure its a fairly easy update script if the 2 tables were...

  • RE: how to select 90% records from a table?

    The nested example is a good example as an explanation.

    In the real world we would change the ORDER BY clause for one of the select statements. For instance, when...

Viewing 5 posts - 46 through 50 (of 50 total)