Forum Replies Created

Viewing 15 posts - 466 through 480 (of 2,452 total)

  • RE: Add New Column with RowID

    I don't want to use ISO_TIMe because it's easier to order with rowid as INT.

    well I disagree.....on the assumption that you wish to plot the course of the hurricane, how...

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

  • RE: Is there an "easy" way to do this?

    maybe

    DECLARE @str VARCHAR(100) = 'Discontinued Rx # 0011122657 via Prescription File'

    SELECT SUBSTRING(@str,19,10)

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

  • RE: Is there an "easy" way to do this?

    cory.bullard76 (8/2/2016)


    Hello, I consider myself to be decent at SQL....I don't use it as much anymore. I have a column of data that I only want to pull the...

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

  • RE: Add New Column with RowID

    Nusc (8/1/2016)


    I prefer to update the table in management studio. the idea is the provide as very little code in the sql query wizard for map services in SSRS.

    ok...but do...

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

  • RE: Add New Column with RowID

    Nusc (8/1/2016)


    Yes I am.

    THe datetime data is unique. I guess I could have done it that way.

    I want to update the table with the spatial data so that when I...

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

  • RE: Add New Column with RowID

    hmmm...been trying to second guess what you are trying to do......are you lokking to plot the track of hurricanes?

    if so...then I think you need to get data that provide a...

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

  • RE: Add New Column with RowID

    Phil Parkin (8/1/2016)


    A quick side note: it's hurricane, not hurracane, I think.

    but in this thread its also been called "cleandata" and the column "year" is now called "season". 😛

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

  • RE: Using Geography Maps

    Nusc (8/1/2016)


    Hi,

    is anyone familiar with building maps with SQL Query?

    I am trying to find follow this example:

    https://dba.stackexchange.com/questions/24954/convert-spatial-points-data-to-line-data-for-use-in-line-layer-in-sql-server-rep

    But I run into errors when I use my own data such as:

    A .NET...

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

  • RE: Add New Column with RowID

    try

    LEFT OUTER JOIN

    hurracane b

    ON

    b.rowid = a.rowid + 1

    AND b.season = a.season

    ...

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

  • RE: Add New Column with RowID

    Nusc (8/1/2016)


    J Livingston SQL (8/1/2016)


    suggest you change

    indexid = ROW_NUMBER() OVER (PARTITION BY [Name] ORDER BY [Name])

    to this

    ROW_NUMBER() OVER(PARTITION BY NAME, YEAR ORDER BY Latitude)

    I still get the following error:

    (88407 row(s)...

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

  • RE: Add New Column with RowID

    Nusc (8/1/2016)


    why are you changing to decimals?

    Because of this working example:

    https://dba.stackexchange.com/questions/24954/convert-spatial-points-data-to-line-data-for-use-in-line-layer-in-sql-server-rep

    This is precisely what I need to do.

    looking at that example...they are casting to varchar from a decimal...you already have...

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

  • RE: Add New Column with RowID

    Nusc (8/1/2016)


    No. If you open the csv file and sort by year and name that's still not true.

    That's something I need to fix. Furthermore, I need to change the data...

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

  • RE: Add New Column with RowID

    Nusc (8/1/2016)


    J Livingston SQL (8/1/2016)


    here is your spread sheet data for "Emily" setup for others to use.

    you will see that "Emily" does have a rowid of 1`......

    No, not for...

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

  • RE: Add New Column with RowID

    here is your spread sheet data for "Emily" setup for others to use.

    you will see that "Emily" does have a rowid of 1`......

    CREATE TABLE hurracane(

    Year ...

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

  • RE: Lookup value from one table based on values in another table

    please read this article and post back with some set up scripts and expected results

    https://spaghettidba.com/2015/04/24/how-to-post-a-t-sql-question-on-a-public-forum/

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

Viewing 15 posts - 466 through 480 (of 2,452 total)