Forum Replies Created

Viewing 13 posts - 31 through 43 (of 43 total)

  • RE: SSIS Export to Flat File Question

    elee1969 (7/17/2013)


    Not sure if i am doing this correct but i get an error as i followed your advice. I attached a screenshot.

    i figured it out. I forgot to...

  • RE: SSIS Export to Flat File Question

    Not sure if i am doing this correct but i get an error as i followed your advice. I attached a screenshot.

  • RE: SSIS Export to Flat File Question

    sdevanny (7/17/2013)


    How did you add the | to the individual records? If that is easily removable you might try adding a Derived Column Transform and add a new column...

  • RE: Query help

    Luis Cazares (7/3/2013)


    You can use a CASE statement.

    SELECT q.Course_Code, CASE WHEN res.[4a] = 0 THEN 0 ELSE 6-res.[4a] END as [4a],

    ...

    ah thanks luis. 🙂 i knew it would be the...

  • RE: Query help

    any help?

  • RE: query

    manikanta1207 (7/3/2013)


    what is the query to select nth highest salary of emp table

    select MAX(Salary) from Employee;

  • RE: Query help

    elee1969 (7/3/2013)


    Eugene Elutin (7/3/2013)


    like this:

    SELECT q.Course_Code, 6-res.[4a] as [4a],6-res.[4b] as [4b], 6-res.[4c] as [4c], 6-res.[5a] as ,res.[5b],res.[5c],res.[6a],res.[6b],res.[6c],res.[7a],res.[7b],res.[7c],res.[7d],res.[7e] as converted

    FROM

    The above willnot compile as has quite few errors. You should be...

  • RE: Query help

    Eugene Elutin (7/3/2013)


    like this:

    SELECT q.Course_Code, 6-res.[4a] as [4a],6-res.[4b] as [4b], 6-res.[4c] as [4c], 6-res.[5a] as ,res.[5b],res.[5c],res.[6a],res.[6b],res.[6c],res.[7a],res.[7b],res.[7c],res.[7d],res.[7e] as converted

    FROM

    The above willnot compile as has quite few errors. You should be more...

  • RE: Query help

    Eugene Elutin (7/3/2013)


    just replace first line of your SELECT query to:

    SELECT q.Course_Code, 6-res.[4a] as [4a], 6-res.[4b] as [4b], 6-res.[4c] as [4c], 6-res.[5a] as [5a] ... etc.

    like this:

    SELECT q.Course_Code, 6-res.[4a] as...

  • RE: Query help

    Eugene Elutin (7/3/2013)


    6 - X formula will work for you:

    SELECT v, 6-v as converted_v

    FROM (VALUES (1),(2),(3),(4),(5)) v(v)

    Eugene - not sure how i would add this to the query....

  • RE: Query help

    Eugene Elutin (7/3/2013)


    elee1969 (7/3/2013)


    Hello - I was handed a script to modify. I am an accidental DBA. I am confused on how to modify a query to return certain results....

  • RE: I'm infecting my children :-)

    Nice!!

  • RE: study group MCSA SQL Server 2012

    I just ordered my books so waiting on them to get in but would be interested.

Viewing 13 posts - 31 through 43 (of 43 total)