Forum Replies Created

Viewing 15 posts - 7,771 through 7,785 (of 15,381 total)

  • RE: Update command set data has apostrophe in it

    lawson2305 (6/26/2013)


    searching I finally found an answer.

    GilaMonster

    You escape quotes by doubling them.

    I find it strange when you double them it puts in the single quote. Thanks for...

  • RE: Get min and max dates based on end flag

    This isn't too bad to write. Any chance you can post ddl and sample data in a consumable format? (Create tables and inserts so we can hit f5 and get...

  • RE: Return sepcifc data on query

    Luis Cazares (6/26/2013)


    Sean Lange (6/26/2013)


    What would really help is:

    1. Sample DDL in the form of CREATE TABLE statements

    2. Sample data in the form of INSERT INTO statements

    3. Expected results based...

  • RE: IDENTITY_INSERT, and Using Alphanumeric Autoincrement Primary Key

    Steven Willis (6/26/2013)


    Sean Lange (6/26/2013)


    Steven Willis (6/25/2013)


    So in that vein of thought, you CAN do this but not with an identity column which is of course always and only numeric....

  • RE: Modifying A Date So That It Is Neither A Weekend Or Holiday?

    skempf (6/26/2013)


    I have a stored procedure that is used to sync dates between two databases. It looks at the project start date in one database and the production date for...

  • RE: Return sepcifc data on query

    What would really help is:

    1. Sample DDL in the form of CREATE TABLE statements

    2. Sample data in the form of INSERT INTO statements

    3. Expected results based on the sample data

    You...

  • RE: Querying a stored procedure within a stored procedure

    dob111283 (6/26/2013)


    It just said "Error near Offset" and "error near fetch", when I completed the aforementioned query. Only top worked.

    But you still haven't posted the actual query that you ran....

  • RE: Help - Need to parse out some values in the a long text field

    Hi and welcome to the forums. In order to help we will need a few things:

    1. Sample DDL in the form of CREATE TABLE statements

    2. Sample data in the form...

  • RE: Return sepcifc data on query

    bquintana (6/26/2013)


    If I run a query to return an email address from an emails replied to, I get some returnes with multiple email addresses with the email address I want...

  • RE: "Running totals" query

    Barkingdog (6/26/2013)


    I need to create a table of running totals. Suppose initially we start with $50, then write a check for $3 (leaving $47), then write another check for $7...

  • RE: SQL query help

    mamzy10 (6/26/2013)


    will give it ago now n its for work actually but i have very limited knowledge using sql but there are no sql dudes in to this work im...

  • RE: SQL query help

    mamzy10 (6/26/2013)


    Hey guys i need to create a query were i can find out the number of learners there are with a model of 21 and another model eg

    learner ...

  • RE: Very specific query

    kapil_kk (6/26/2013)


    you can do the same thing as Sean did using SUBSTRING also:

    SELECT id,

    SUBSTRING((SELECT ', ' + Term

    FROM Something s2

    WHERE s1.id = s2.id

    and s2.Type = 'Subject'

    ORDER BY s2.Term

    FOR XML...

  • RE: Very specific query

    kapil_kk (6/26/2013)


    Hi Sean,

    I know to print comma seperated values using FOR XML.

    But I was trying the same solution using COALESCE like this:

    DECLARE @var varchar(max)

    SELECT @var = coalesce(@var +',','') + term...

  • RE: Very specific query

    gurjer48 (6/26/2013)


    how for xml path('') works here to get all values in single row?please explain

    thanks and regards

    sudarshan

    Not quite sure what you are asking? Are you asking how does FOR...

Viewing 15 posts - 7,771 through 7,785 (of 15,381 total)