Forum Replies Created

Viewing 15 posts - 1,156 through 1,170 (of 10,144 total)

  • RE: t-sql 2012 link 3 tables

    wendy elizabeth (10/6/2016)


    This is only a one time update. I am sorry I did not mention that earlier. I basically just need to place existing data into the tables...

  • RE: conditional where clause

    GilaMonster (10/6/2016)


    Eirikur Eiriksson (10/6/2016)


    Using a conditional IF statement is by far the simplest way of doing this.

    And is prone to the performance-related problems that Chris alluded to.

    https://www.simple-talk.com/content/article.aspx?article=2280

    We must be talking...

  • RE: Can I remove these RAISERROR 44444?

    justinricardo016 (10/6/2016)


    This is the site that anyone who is interested in learning more about SQL server 2005 should care enough to visit. I admire the way that members of this...

  • RE: conditional where clause

    marc.corbeel (10/6/2016)


    Yes but here you include the complete select command in the condition.

    Problem is here that my real query is very complex (about 40 lines), and putting it 2 times...

  • RE: Need help to write stored procedure with this scenario

    pushkarna.anuj (10/5/2016)


    Hello,

    Let's say we have two tables A and B. Both tables have From Dates .i.e. A.FromDate and B.FromDate and both can be joined on MemberID. I need to pull...

  • RE: t-sql 2012 link 3 tables

    "However I want the lockID value in the locker table to be the same value in the Lock

    and the LockCombination tables. Basically I will create rows in the locker...

  • RE: Are the posted questions getting worse?

    drew.allen (10/5/2016)


    With my first article for SSC accepted for publishing, I've already written a second (unrelated) article. I'd like to have a couple of people review it.

    This article is...

  • RE: NEED help please. Join query to a FK. The FK table join is on nullable field

    -- Collect the 12 values of ST.PerformanceConfigChoiceID

    -- for the rows where FK1.DestinationID is NULL.

    -- Probe the ETLCorrelation table for those rows:

    SELECT FK1.SourceTable, FK1.BatchID, FK1.SourceID

    FROM [ETL].[dbo].[ETLCorrelation] FK1

    WHERE FK1.SourceID IN...

  • RE: Deadlock error MERGE

    javirsantos (10/5/2016)


    The XML file I have gotten into a @xml and #XML and the deadlock is still playing.

    The next step would be to post an execution plan here, as a...

  • RE: Assign result of dynamic sql to variable

    sanjaydut26 (10/2/2016)


    Here is the function...

    ALTER FUNCTION [dbo].[ufn_GetHcmDesignFields]

    (

    @ModuleId bigint, -- HCM_DESIGN_FIELDS moduleid with IsExtendable status 1

    @RID bigInt -- table rid

    )

    RETURNS nvarchar(max)

    AS

    BEGIN

    DECLARE @Return...

  • RE: High lob logical reads on a query with just 2 simple tables

    I'm sorry, I don't know the answer to your question - however, Googling revealed this interesting teaser written by Paul White. You may well find pointers (pun intended) to your...

  • RE: Maximum number of CROSS APPLY functions

    Jeff Moden (10/3/2016)


    The Dixie Flatline (10/3/2016)


    While we're on the subject, does anyone know of a reason there could be a performance hit from doing all these cross applies? ...

  • RE: Incorrect syntax

    nazirulfitrifauzi (10/4/2016)


    SELECT 'KESELURUHAN' AS STATE,

    'KESELURUHAN' AS BRANCH,

    dbo.uf_get_koddana(h.funding_scheme) AS Dana,

    Count(*) AS cnt_all,

    Sum(h.approved_limit) AS sum_all,

    Sum(isnull(w.wo_amt,0)) AS sum_wo,

    Sum(isnull(RECOVERED_AMOUNT,0)) AS sum_wb,

    Sum(case when bulantgkbil >= 7 and h.account_status not in (1,9,15) then 1 else 0...

  • RE: One to Many relations

    moranamon (9/30/2016)


    Yes, but what about other entities?

    you can't store FKs from difference entities in the same column in Photos, that's the reason why i created the link table from the...

  • RE: Are the posted questions getting worse?

    BLOB_EATER (10/3/2016)


    ChrisM@Work (10/3/2016)


    BLOB_EATER (9/30/2016)


    Thanks to those that have given me advice! this is a great forum.

    So you and Mrs Blobby are talking to each other again? 😀

    HAHA. that is actually...

Viewing 15 posts - 1,156 through 1,170 (of 10,144 total)