Forum Replies Created

Viewing 15 posts - 3,076 through 3,090 (of 8,731 total)

  • RE: how to combine results of these two queries?

    More like this:

    WITH Query1 AS(

    select scholarship_category , COUNT(s.scholarship_id) as [No of applicants]

    from Students s

    join Students_Scholarships_junction j...

  • RE: Divide by Zero

    shaneoneillis (4/11/2016)


    Hi bjaricha,

    You may want to let us know how you got your variables as it could help with the answers to this.

    Also with this

    Need your help thanks

    do...

  • RE: How to convert this procedure as dynamic SQL

    Wild idea:

    Instead of using dynamic SQL, use synonyms for the cross-database calls.

  • RE: What is the difference between Left Outer join and Left Outer join restricted- Interview question

    It depends on the interpretation. A restricted outer join, could be the simple use of a WHERE clause (which shouldn't change the outer join into an inner join) or additional...

  • RE: Today's Random Word!

    crookj (4/8/2016)


    Ed Wagner (4/8/2016)


    TomThomson (4/8/2016)


    Ed Wagner (4/8/2016)


    Pork Chop

    Karate Pig

    Kung Fu Panda

    Splinter (Kung Fu Rat)

    TMNT

  • RE: Today's Random Word!

    Ed Wagner (4/7/2016)


    Manic Star (4/7/2016)


    Grumpy DBA (4/7/2016)


    ThomasRushton (4/7/2016)


    span

    Denard

    Obfuscation

    Hide

    Seek

  • RE: Any idea how to over come this error ?

    mw112009 (4/7/2016)


    While running an ssis package , I get this error..

    [Execute SQL Task] Error: Executing the query

    "exec [dbo].[sp_visits_modified_for_execution] @Run..." failed

    with the following error: "Could not allocate space for...

  • RE: String Manipulations

    Is this what you're looking for?

    DECLARE @tbl_MediumResults TABLE(

    Answer VARCHAR(8000)

    );

    INSERT INTO @tbl_MediumResults

    SELECT '{"Sunday:"[3,4,5,]},{"Monday:"[1,6,]},{"Tuesday:"[5,6,7,]},{"Wednesday:"[6,7,]},{"Thurday:"[5,6,]},{"Friday:"[5,6,]},{"Saturday:"[1,6,7,]},'

    UNION ALL

    Select '2,3,4,5,6'

    SELECT Answer,

    CASE

    ...

  • RE: Asian characters when moving from Varchar to Nvarchar

    Maybe the package is using an incorrect code page for your varchar column.

    This is weird as it's changing the values completely.

  • RE: Creating dynamic master insert proc with identity column needing to be omited

    Lynn Pettis (4/7/2016)


    This:

    INSERT into [JP_CDM].[case]

    SELECT

    *

    --ucn,

    --lcn,

    --court_id,

    --case_initiation_date,

    --case_restriction_flag,

    --county,

    --date_disposed,

    --recurrent_flag,

    --intestate_testate_flag,

    --case_referred_to_mediation_flag,

    --contested_flag,

    --jury_trial_flag,

    --outstanding_warsumcap_flag,

    --pro_se_flag,

    --record_source,

    --record_state,

    --create_user,

    --create_date,

    --maint_user,

    --maint_date

    FROM

    #case_tmpTable;

    select * from #case_tmpTable

    Is not going to work as there are not an equal number of columns between...

  • RE: Help me find this constraint and remove it ? - Syntax Help

    EXECUTE sp_help 'MEMBER_IN'

    Or view dependencies.

  • RE: Msforeachtable

    ram302 (4/7/2016)


    I know this is an old post, but how does this work? I have tried the following:

    EXECUTE sp_MSforeachtable

    'EXECUTE master.dbo.xp_cmdshell ''osql -E -S "MYSQLSERVER" -d "MyDB" -q "sp_help ''?''" '...

  • RE: Where to start?

    maylar (4/7/2016)


    So far the online docs have been worthless. I don't need to learn about databases, I just need to understand how to navigate within this admin tool. I've worked...

  • RE: Duplpicate rows appearing

    As I figured, you're employees and products are unrelated, but somehow you want them both on the same data set. As you're trying to describe projects, maybe a single row...

  • RE: How to split records evenly into 4 tables from one table is sql

    You could use the NTILE function.

    WITH

    E(n) AS(

    SELECT n FROM (VALUES(0),(0),(0),(0),(0),(0),(0),(0),(0),(0))E(n)

    ),

    E2(n) AS(

    SELECT a.n FROM E a, E b

    ),

    E4(n) AS(

    ...

Viewing 15 posts - 3,076 through 3,090 (of 8,731 total)