Forum Replies Created

Viewing 15 posts - 8,086 through 8,100 (of 8,731 total)

  • RE: Issue while joining two tables with no unique columns

    ChrisM@Work (6/6/2013)


    Mark-101232 (6/6/2013)


    ... and identical solutions too!

    Must be correct then!

    I'm not sure they're correct. If a row has factor 0.20 then it will be in both ranges.

    The OP must either...

    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: Trigger with calculations

    I have to be honest and say that I haven't used it before, but as understood by the documentation, it checks which columns where updated according to their position in...

    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: Fizz Buzz interview questions for phone screens?

    Dird (6/5/2013)


    Luis Cazares (6/5/2013)


    The "Numbers" or "Tally" Table: What it is and how it replaces a loop.

    The problem with that is you'd have to create the table separately, when you...

    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: Fizz Buzz interview questions for phone screens?

    Steven Willis (6/5/2013)


    Programming can usually be taught but teaching character, now that's not an employer's job even if it was possible.

      

    You'll be surprised, but programming isn't something you can...

    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: Fizz Buzz interview questions for phone screens?

    Dird (6/5/2013)


    Sean Lange (6/5/2013)


    sk them how they would solve the standard Fizz Buzz problem in t-sql with no loops and no cursors.

    Using recursion? or would you class it as a...

    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: Trigger with calculations

    By the way, are you sure you need "IF (COLUMNS_UPDATED() & 14) > 0" or you just copied from somewhere else?

    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: Trigger with calculations

    You're on the right track. Just as you got the old values from the pseudo-table DELETED, you can get the new values from the pseudo-table INSERTED.;-)

    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: Fizz Buzz interview questions for phone screens?

    You could ask for a query with a LEFT JOIN that need a filter on the right table, knowing that you would look for the condition to be specified 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: To merge several tables into one

    DiverKas (6/5/2013)


    Assuming you have down time, my suggestion would be:

    Merge all your tables into one table with no constraint, with an additional column indicating the source database/table it came from....

    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: To merge several tables into one

    But you have to check all of your dependant tables to update the values. An option is to check your Foreign Keys are specified as ON UPDATE CASCADE.

    It's hard 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: Doubling up of Alpha numeric password

    What came to my mind is that 2 users tried to insert a row at similar times and both got the same ID from the VB function.

    Why don't you have...

    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: To merge several tables into one

    That sounds like a lot of work to do when you think about it.

    You should either add a Client ID to each table to preserve uniqueness when merging all the...

    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: Need some help with some SQL Queries

    If I understood correctly, you need to pivot your data. A great way is to use CROSS TABS[/url]

    With your data pivoted, you can concatenate the columns as you need them.

    --I...

    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: Create FirstName and LastName to Replace Existing FirstName and LastName

    Maybe some code like this

    SELECT FirstName, LastName

    FROM(

    SELECT FirstName,

    ROW_NUMBER() OVER(ORDER BY FirstName) rn

    FROM( SELECT DISTINCT FirstName FROM MyTable)x) a

    JOIN (

    SELECT LastName,

    ROW_NUMBER() OVER(ORDER BY LastName DESC) rn

    FROM( SELECT DISTINCT LastName FROM MyTable)y...

    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: Create FirstName and LastName to Replace Existing FirstName and LastName

    How about using names from AdventureWorks DB?

    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 - 8,086 through 8,100 (of 8,731 total)