Forum Replies Created

Viewing 15 posts - 1,381 through 1,395 (of 2,452 total)

  • RE: Add a string to every result of the view

    SELECT *,'pedro' FROM VW_DEVOLVESELECCAO

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

  • RE: String occurrence count with Cross apply

    appreciate that you have provided sample data....but in your "real" world and to ensure scalability for a solution...can you tell us approx. number of rows in @t table and confirm...

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

  • RE: Is Killing Database Shrink via SSMS a risk?

    http://www.sqlservercentral.com/Forums/Topic917650-146-1.aspx

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

  • RE: Creating Lat Lon Grid table from list of

    is this as simple as a cross join?

    eg:

    SELECT TOP 186 IDENTITY(INT, 4070039 , 37) AS lat

    INTO dbo.lat

    FROM ...

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

  • RE: How to join to a comma delimited list

    does your function return id or pallet?...this would possibly provide a "join"

    maybe better if you posted create table/insert sample data scripts and your expected results...am sure this will result is...

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

  • RE: select the record with the most recent order date

    itortu (6/16/2014)


    no duplicates, different quote number and quote date

    may not be relevant ...but I beg to differ on duplicates in your test data

    script

    insert into dbo.salesquotestest values('QUO-10566-0', 'X16093', '10024', '2', ...

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

  • RE: select the record with the most recent order date

    I think you have duplicate rows in the data...can you please check.

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

  • RE: The fun factor: Magical numbers and other peculiarities

    my effort...too much time on my hands 😀

    DECLARE @Question VARCHAR(100) =

    'The Answer to the Ultimate Question of Life, the Universe, and Everything'

    DECLARE @Source VARCHAR(100) =

    'The Hitchhikers Guide to the...

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

  • RE: Counting the characters in a string before a space

    cbrammer1219 (6/14/2014)


    I will give this a try in a little while, I appreciate all that have stuck through this post. I will mark answered if this is a solution or...

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

  • RE: Counting the characters in a string before a space

    Jeff...+1 many times 🙂

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

  • RE: Counting the characters in a string before a space

    if as OP was specific about "spaces"...heres a first cut ....may be a start??;-)

    --drop table #tempcall

    SELECT

    ID = IDENTITY(INT, 1, 1),

    RTRIM(LTRIM(REPLACE(REPLACE(REPLACE(REPLACE(SUBSTRING(calldata,0,7),'-',''),'%',''),'+',''),'/','-'))) as...

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

  • RE: Grouping Dates in a Table by 4 weeks at a time

    Tallboy (6/13/2014)


    1234, 10/1/14, 42.75, 84.00

    1234, 9/2/14, 11.25, 12.00

    1111, 10/1/14, 10.50, 23.00

    maybe I misread your requirements...but I thought that the week end date was a Sunday?

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

  • RE: Split csv records to seperate columns

    who set the requirement?

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

  • RE: Problem with openquery and Progress odbc

    jorichard31 (6/13/2014)


    Hi Team,

    Select tmp.* from openquery( [LinkedServerName], 'select * from viewname1' ) as tmp. When I executed this query, I am getting below error. Could you please help?...

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

  • RE: Splitting a single column into multiple rows

    Sean Lange (6/13/2014)


    While I agree that the DelimitedSplit8K function is likely to be of help here I want to point out that the datatype containing the csv data is varchar(max)...

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