Forum Replies Created

Viewing 15 posts - 1,531 through 1,545 (of 2,452 total)

  • RE: Concatenating rows from aliased tables on MSSQL 2005 server

    domingo.sqlservercentral (3/26/2014)


    ... and I need this rows concatenated as below:

    2014-03-25 12:31:00.000StationIDAnnie LennoxDave StewartEurythmicsDave StewartEMI1IDshortinfo

    2014-03-25 13:33:00.000TrafficBob Dylan, Louis ArmstrongPaul McCartney, Bob DylanGlenn Miller, Pet Shop BoysWarner2TRAFFICshortinfo

    2014-03-25 14:38:00.000CarpetPaul McCartney, Bob Dylan, Mike...

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

  • RE: Concatenating rows from aliased tables on MSSQL 2005 server

    Sean Lange (4/4/2014)


    domingo.sqlservercentral (4/4/2014)


    ... and? Please...

    Well you gave us a bunch of data and said "here is my results". Results of what? Presumably a query.

    The problem is that...

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

  • RE: How many Databases are you managing

    jrp12 (4/3/2014)


    Hello DBA's

    just wondering who is managing maximum number of Databases?

    PLEASE REPLY

    Thank You

    what is your definition of "managing".....??

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

  • RE: Ms.Access update query emulate to SQL

    Briceston (3/24/2014)


    Thanks for the replies guys, however, I had figured out the answer shortly after my post. My apologizes for not updating the thread.

    Glad to hear you solved the issue.

    for...

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

  • RE: Ms.Access update query emulate to SQL

    have you looked at the T-SQL CASE statement....this may provide what you require

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

  • RE: Nedd query using sql server .

    would help if you could provide DDL...(do you know how to do this?.....create table statement / insert data statement)

    what is the significance of the "TYPE" code...you provide "A","B","P"...does this mean...

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

  • RE: Nedd query using sql server .

    are your billed amounts and payment amounts/adjustments in separate tables?

    can you provide more details on the table structure (DDL create statememts)

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

  • RE: carry forward values from previous rows

    ivar_SQL (3/23/2014)


    Thanks for the response...

    Here Michael has total 26 Business points for his total trips and based on that he should get 6 promotional points for the first 20...

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

  • RE: carry forward values from previous rows

    a proof of concept on 1 million rows of test data

    USE [tempdb]

    GO

    /*Drop and Create a test table */

    IF OBJECT_ID('tempdb..tblRedeems_TST', 'U') 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: carry forward values from previous rows

    ivar_SQL (3/23/2014)


    Hi,

    I am working on a rewards program and I have a table whenever customer completes a trip, his total fare,business points earned for that particular trip and respective...

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

  • RE: carry forward values from previous rows

    for clarification...are you asking for an update on business/promo points on the entire table or are you expecting that points will be automatically calculated on a new row being...

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

  • RE: Compare tables with more than 4.9 million records

    food for thought.......note index

    SELECT TOP 5000000

    TranID = IDENTITY(INT, 1, 1)

    INTO Table1

    FROM ...

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

  • RE: Concatenating rows from aliased tables on MSSQL 2005 server

    sample data would help us help you....do you know how to provide this?

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

  • RE: display order

    SELECT house_no

    FROM <yourtable>

    ORDER BY REPLACE(house_no, '-', '')

    you have asked this question numerous times......can you please explain why the solutions provided have...

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

  • RE: display order

    have we been here before ???

    http://www.sqlservercentral.com/Forums/Topic1520462-3077-1.aspx

    ________________________________________________________________
    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,531 through 1,545 (of 2,452 total)