Forum Replies Created

Viewing 15 posts - 301 through 315 (of 530 total)

  • RE: Update Trigger Question

    One (additional) way to avoid trigger recursion is using an INSTEAD OF trigger. You probably will have to rewrite your trigger since the original update will not be executed...

  • RE: Accessing SQL Server 2000 DB from UNIX.(Urgent)

    You could use a JDBC driver. Don't know if any ODBC-like drivers exist on Unix.

  • RE: TOP 5 Projects for Employees

    I'm not going to write a query here. Just some ideas. If you need more help, I'm glad to help you out.

    Your query will look something like

     
  • RE: Join of 2 tables to create a 3rd

    Yep, your analysis is correct.

    There are two ways depending on the data.

    1. Is description and budget_version always the same for one project?

    In this case, you can use

     
  • RE: Join of 2 tables to create a 3rd

    Try this ... (without the INSERT INTO)

    
    
    SELECT name, descrip, version
    FROM projects_600
    GROUP BY name, descrip, version
    UNION
    SELECT name,...
  • RE: How to match sets of records

    Jeremy, your query is correct, I think. If I'm not mistaking, using NOT IN should be avoided because of performance issues. I'm sure you can find some reference in older...

  • RE: How to match sets of records

    And here's the complete query again, with matching brackets. Sorry for that...

    
    
    SELECT T3.groupid FROM
    (SELECT groupid FROM #GROUP
    ...
  • RE: How to match sets of records

    Here goes nothing ...

    We want to retrieve all groupid's from the 'receiving' user that comply with the requiremens.

    
    
    SELECT T3.groupid FROM

    The main FROM clause... A subquery to...

  • RE: How to match sets of records

    OK. Changed it a bit.

    First use the previous query, but just get all 'rows' where a null is present and group by groupid of the person that receives the share.

    Now...

  • RE: Set-based solution possible?

    Use the code tags... You can insert them using the hash key button on the 'Format' bar over the message box.

  • RE: SQL SERVER STALLED

    Are you sure the Server is 'busy', or do you have a number of locks on the data?

    In the first case, I'm afraid you cannot do a lot, besides from...

  • RE: How to match sets of records

    I am not sure I get the complete picture, but I'll give it a shot anyway.

    Isn't it possible to use an self full outer join (or is it full outer...

  • RE: List this ... in active directory

    Just a wild guess here...

    Active Directory allows you to 'publish' the 'location' of an 'entity' on the network. Such an entity can be a user or a computer, but it...

  • RE: How to do this in SQL?

    I don't see a solution to your problem in a single query. The problem lies in the assignment of a unique Trip_ID in the new table.

    However, you could do it...

  • RE: outer join problem - sql 92 syntax

    Trying to build it from scratch :

    1. Start from the DAY table that should contain an entry for each day.

    2. Adding the STORE and PRODUCT table. You want to have...

Viewing 15 posts - 301 through 315 (of 530 total)