Forum Replies Created

Viewing 15 posts - 1,201 through 1,215 (of 2,452 total)

  • RE: Concatenate many rows in one AND group by ?

    oops...my bad ...sorry :blush:

    seems that the sample data I created for you had some leading spaces in the columns !!

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Concatenate many rows in one AND group by ?

    jbalbo (6/25/2015)


    Thanks imex,

    That worked exactly as I needed.

    Sorry for the bad explanation..

    Thanks AGain

    but doesnt this solution still give duplicates in "delivery method" and " contact method" ?

    I thought...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Concatenate many rows in one AND group by ?

    seems this is your second post on this subject.....you will probably get a better response if you provide the required create table / insert data statement that provide a readily...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Problem with trigger

    J Livingston SQL (6/24/2015)


    ve got this problem with this exercise

    maybe useful to see the original exam question....just a thought

    maybe not 😉

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Problem with trigger

    ve got this problem with this exercise

    maybe useful to see the original exam question....just a thought

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: query about nulls

    for example

    SELECT

    A

    , B

    FROM Table

    WHERE (A IS NULL)

    AND (B IS NOT NULL)

    ...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: order by desc and asc on same column

    sqlinterset (6/23/2015)


    Please see attachement

    what version of excel are you using?

    in 2013 you can manually move rows to sort your requirements

    and to echo others...without a YEAR this may prove troublesome for...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: order by desc and asc on same column

    sqlinterset (6/23/2015)


    Actually ordering in ssms is being done through this way. But when i am pasting same query in excel pivot tables then this is giving data in normal order...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: order by desc and asc on same column

    sqlinterset (6/22/2015)


    I have a table has data of all months. i want to have this table data in the form as first it lists data

    from 1 month to current...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: order by desc and asc on same column

    LoudClear (6/22/2015)


    Please show us your table, the data in it, and the results you want to see.

    Better yet, give us the DDL for the table, INSERT statements for your data,...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Northwind Databse Qurey Questions

    does this make any sense to you........

    SELECT distinct O.EmployeeID

    FROM Orders O

    WHERE O.OrderDate BETWEEN '1998-01-01' AND GETDATE()

    SELECT distinct O.EmployeeID

    FROM Orders O

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Northwind Databse Qurey Questions

    Eric_Shao (6/21/2015)


    Hi SS,

    Thanks for your answer, but the question ask specifically to use right join and sub query to solve the problem:-)

    well....I think the answer is 9 employees and you...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Northwind Databse Qurey Questions

    see if this helps.......as I read your homework, the question relates to employees not number of orders

    SELECT

    O.EmployeeID

    , E.FirstName + ' ' + E.LastName AS Fullanme

    FROM Orders...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Help with Query - Counting item Occurrence over a rolling 72 hour period

    jparks 85798 (6/18/2015)


    Thanks for the suggestions. You are correct, looking back my sample data does not contain enough to illustrate what I am looking for. Let...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Help with Query - Counting item Occurrence over a rolling 72 hour period

    jparks 85798 (6/18/2015)


    All,

    My first post here and i'm still relatively new to t-sql. I have searched around and I am completely stuck on where to even start. I am using...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

Viewing 15 posts - 1,201 through 1,215 (of 2,452 total)