Forum Replies Created

Viewing 15 posts - 2,506 through 2,520 (of 8,731 total)

  • RE: Compare multiple rows in same column

    Y.B. (7/14/2016)


    What you originally proposed isn't that complicated...

    I suggest that you follow the link I posted. There's a similar version of your code which runs about 4 times slower than...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Today's Random Word!

    HappyGeek (7/14/2016)


    djj (7/14/2016)


    Manic Star (7/14/2016)


    Reader

    LIbrary

    Data

    Capture

    Pokemon

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Compare multiple rows in same column

    Check the following post: http://www.sqlservercentral.com/Forums/FindPost1275453.aspx

    You could follow the whole discussion as well.

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Assistance with CROSS APPLY with multiple tables

    Why do you think that you need to use the APPLY operator? You should probably change the joins to the SQL-92 format, but that won't improve performance.

    The query seems to...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Today's Random Word!

    crookj (7/14/2016)


    Ray K (7/14/2016)


    djj (7/14/2016)


    Ed Wagner (7/14/2016)


    ChrisM@Work (7/14/2016)


    Revenant (7/14/2016)


    djj (7/14/2016)


    Ed Wagner (7/14/2016)


    Luis Cazares (7/14/2016)


    crookj (7/14/2016)


    Ed Wagner (7/14/2016)


    Grumpy DBA (7/14/2016)


    Ed Wagner (7/14/2016)


    ThomasRushton (7/14/2016)


    Ray K (7/13/2016)


    Lucy

    Lastic

    Elastic

    Plastic

    Melt

    patty

    burger

    Beef

    Pork

    Porcupine

    Concubine

    Python

    Monty

    Full

    Metal

    Alchemist

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Query Question for New Guy

    j-1064772 (7/14/2016)


    A minor pet peeve on writing style: being accustomed to reading from left to right and top to bottom

    FROM Mission AS m

    LEFT JOIN [Primary] AS p ON...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Converting Date

    No need to remove the dash (-).

    DECLARE @cDate nvarchar(50) = 'May - 2016' ;

    SELECT CONVERT( date, '01 - ' + @cDate );

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: The View Insert

    Sean Lange (7/14/2016)


    Great question. Oddly after answering I decided to see if it really would correctly. I ran the create table and view scripts. Then ran the insert statement. It...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Today's Random Word!

    crookj (7/14/2016)


    Ed Wagner (7/14/2016)


    Grumpy DBA (7/14/2016)


    Ed Wagner (7/14/2016)


    ThomasRushton (7/14/2016)


    Ray K (7/13/2016)


    Lucy

    Lastic

    Elastic

    Plastic

    Melt

    patty

    burger

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Microsoft SQL Developer Certification For beginers

    Have you at least checked the Microsoft page? https://www.microsoft.com/en-us/learning/exam-70-461.aspx#books

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Nested quotes help

    This can get you a copy-paste-exec code. Be careful with it.

    DECLARE @command varchar(1000) ;

    SELECT @command = 'SELECT ''USE [?]'';

    select ''DROP USER '' + QUOTENAME( u.name)

    from master..syslogins l

    right...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Are the posted questions getting worse?

    jasona.work (7/14/2016)


    ChrisM@Work (7/14/2016)


    SQLRNNR (7/13/2016)


    ChrisM@Work (6/29/2016)


    tindog (6/29/2016)


    ChrisM@Work (6/29/2016)


    tindog (6/29/2016)


    ChrisM@Work (6/29/2016)


    tindog (6/29/2016)


    Now Wales are after independence from England to 'safeguard' their future...despite the fact that they also voted in favour of Brexit...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: how to set NULLs to Zero

    Try this:

    SELECT cmoOrganizationID

    ,cmoName

    ,omlPartGroupID

    ,sum(CASE WHEN Year_ = 2013 THEN omlExtendedPriceBase ELSE 0 END) AS [2013]

    ,sum(CASE...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Query Question for New Guy

    You need to be sure that the information is correct. In SQL queries, it's very easy to get information that seems correct but it isn't. I gave you what seemed...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Columns to row

    peter 67432 (7/13/2016)


    Exacty! thanks!

    Do you understand how the code works? Please, post questions you might have or you might not be able to support it.

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2

Viewing 15 posts - 2,506 through 2,520 (of 8,731 total)