Forum Replies Created

Viewing 15 posts - 91 through 105 (of 238 total)

  • RE: select query

    David;

     

    right now I added Status in the license table.

     

    SELECT x.EMPID,COALESCE(a.[NAME],'') AS [NAME],COALESCE(l.LICENSE,'') AS [LICENSE] , COALESCE(l. EMPLSTS,'')

    FROM (SELECT @EMPID AS [EMPID]) x

    LEFT JOIN HREMP_adp a

        ON a.EMPID =...

  • RE: select query

    David:

     

    Thx. Your query is working. If I added the condition on the license which I have two field verify and not expired. how will i write this query. Also as...

  • RE: select query

    Do understand this part:

    (SELECT N'111111' AS [EMPID]) x

    LEFT JOIN @HREMP_adp a ON a.EMPID = x.EMPID

    LEFT JOIN @License l ON l.EMPID = x.EMPID

    where those @HREMP_adp variable come from...

  • RE: trigger did not work.

    this one is working with similiar syntax. It seems it did not consistently. Today I checked the data, just find that out. but I tested. It work well. 

  • RE: Temporary Tables

    Not sure about

    in this link metion about

    Transactions that involve table variables last only for the duration of an update on the table variable. Therefore, table variables...

  • RE: SQL Server has encountered 1 occurrence(s) of IO requests taking longer than 15 seconds to complete

    Since I am new to SQL server DBA, too. If I understand well about this.

    Check the min and max ram assigned to the SQL Server. Make the minimum less than...

  • RE: Problems In Building a Data Warehouse

    the title is Problems In Building a Data Warehouse.

  • RE: Query for Flat name and Address

    David:

     

    Will you please explain to me why you use max here ? Thx.

  • RE: corrupt dbo login account...

    I did Exec sp_changedbowner 'sa' to my database and refreshed the table and check in my object browser. I still have the table as dbo.tablename. I might not understand well...

  • RE: cannot delete user login

    she said an user tried to enter an application and it displays an error message. i do not know whether she need to set up the application account to...

  • RE: several cents off by using sum and avg function

    since it is money , why not return value as money, too.

  • RE: several cents off by using sum and avg function

    since it is money , why not return value as money, too.

  • RE: Consolidating Multiple Stored Procedure Results

    in practice, if it have so many join, it will really slow.

  • RE: how to write this sp

    ALTER           PROCEDURE dbo.DueListWithPreviousTraining_Temp

    @quiz VARCHAR( 25 ),

    @fromdate  datetime     = NULL,                  

    @todate    datetime     = NULL,

    @unit    nchar(5)     = NULL,

    @cc   nvarchar(4000) = NULL,

    @debug     bit          = 0

    as

    DECLARE @sql        nvarchar(4000)                         

                            

    begin                                                                  

    Set...

  • RE: any better way to improve my query proformance

    yes.

    1. find the most recent quiz empl take

    2. not in the current training table.

    -->get the due date.

Viewing 15 posts - 91 through 105 (of 238 total)