Forum Replies Created

Viewing 15 posts - 4,531 through 4,545 (of 8,731 total)

  • RE: Set field value in select statement

    Is '2015/01/01' a fixed value for the query or is it a value that can change from one row to another?

    If it's a scalar value, you should change your query...

    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: can a foreign nationals find a job in BI position ?

    SQLRNNR (8/4/2015)


    Luis Cazares (8/4/2015)


    Companies and government can hire aliens in the USA. However, it's harder to get a job because they will prefer citizens who know the culture.

    That and 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: But we've always done it that way…

    Grant Fritchey (8/4/2015)


    xsevensinzx (8/3/2015)


    In my years working in software development from a marketing perspective, the right way always seems a bit too subjective from the people who are advocating change....

    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!

    SQLRNNR (8/4/2015)


    Ed Wagner (8/4/2015)


    Eirikur Eiriksson (8/4/2015)


    djj (8/4/2015)


    Ed Wagner (8/3/2015)


    SQLRNNR (8/3/2015)


    whereisSQL? (8/3/2015)


    djj (8/3/2015)


    Punishment

    Spank

    Flog

    Lash

    Whip

    Tail

    Head

    Duck

    Goose

    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 Parent and Child Data

    This can be a complicated issue and it's called relational division. You can search the web about it and you'll find lots of information to learn about it.

    Your sample data...

    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: LEFT JOIN with a large partitioned table

    You're right, SQL Server 2014 has a new cardinality estimator which will change the behavior of some queries.

    That said, you can't change a LEFT JOIN for an INNER JOIN. They're...

    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 convert Image datatype to String in MSSQL?

    nsca.dev (8/4/2015)


    Please ignore the previous query that I tried.

    I tried this " select (CONVERT(VARCHAR(MAX),(convert(varbinary(max),body)))) from Table " and I got 86 records whereas there are more than 2000 records...

    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: can a foreign nationals find a job in BI position ?

    Companies and government can hire aliens in the USA. However, it's harder to get a job because they will prefer citizens who know the culture.

    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 convert Image datatype to String in MSSQL?

    Why? What do you expect to get? The varbinary is the correct way to keep an image on SQL Server.

    EDIT: You're getting all the question marks because you use varchar...

    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: Delete duplicate rows from ANY table.

    ben.brugman (8/4/2015)


    Gazareth (8/4/2015)

    Either of these should work, but you're back to the problem of determining column names:

    Yes back to the problem of determining the column names. And then de solution...

    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: Multiple dimensions Vs. Single dimension and hierarchy

    I would go with the second option because it allows you more flexibility as you don't depend on traversing the hierarchy using the same route each time. I'm assuming that...

    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: tsql puzzle IIF

    Here's an example on how you can do it, you might need to adapt the code as necessary. This article explains the method used: http://www.sqlservercentral.com/articles/comma+separated+list/71700/

    SELECT DISTINCT

    task_id,

    ...

    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: Display the record using GroupBY

    Check this for examples on how to solve the problem:

    http://stackoverflow.com/questions/10591044/how-write-sql-to-select-the-maximum-value-in-each-group

    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 compare a list of values

    If you only need the ITEM_ID, you can use INTERSECT AND EXCEPT.

    SELECT ITEM_ID

    FROM @t4 t4

    JOIN @t2 t2 ON t4.CAT_ID = t2.CAT_ID

    WHERE t2.CAT_NAME = 'WHITE'

    INTERSECT

    SELECT ITEM_ID

    FROM @t4 t4

    JOIN @t2...

    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: But we've always done it that way…

    Wayne West (8/3/2015)


    Wellington also had the advantage of having the gentleman English magician Jonathan Strange, at least according to a recent documentary that I saw on the subject. 😛

    Is he...

    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 - 4,531 through 4,545 (of 8,731 total)