Forum Replies Created

Viewing 15 posts - 5,071 through 5,085 (of 10,144 total)

  • RE: How to Convert Semi colon Separated Values into Column

    Gosh :blush: thanks! Hang around here, read the articles...you'll soon pick it up.

  • RE: Query to get rows if value contains result of another query

    winmansoft (3/7/2013)


    ChrisM@Work (3/7/2013)


    yes - do this instead:

    DECLARE @Parameter VARCHAR(8000)

    SET @Parameter = 'seh,jyo,mhf'

    SELECT *

    INTO #Elements

    FROM dbo.DelimitedSplit8K (@Parameter,',')

    SELECT m.*

    FROM...

  • RE: Grouping records by time interval

    SELECT MAX(Ticket_Closed_DateTime)

    FROM Tussen_Tickets

    -- returns '2013-01-17 10:22:00.000'

  • RE: How to Convert Semi colon Separated Values into Column

    DECLARE @ItemCod VARCHAR(8000) = 'T1;T2;T3;'

    DECLARE @ItemName VARCHAR(8000) = 'Pencil Box;Eraser;Mouse Pad;'

    DECLARE @Amount VARCHAR(8000) = '1900;2000;8900;'

    SELECT

    c.ItemNumber,

    ItemCod = c.Item,

    ItemName = n.Item,

    Amount = a.Item

    FROM dbo.DelimitedSplit8K(@ItemCod,';') c

    INNER JOIN...

  • RE: IN Vs INNER JOIN

    purushottam2 (3/7/2013)


    Which one is more performance oriented query?

    1. SELECT 1 FROM table1 WHERE Id IN (SELECT Id FROM table2)

    2. SELECT 1 FROM table1 t1 INNER JOIN table2 t2 ON t1.Id...

  • RE: Performing strange conditional COUNT

    This is called "Islands and Gaps". An island is a set of rows where the dates are consecutive, bounded by rows with non-consecutive dates. Jeff Moden has a great Spackle...

  • RE: Query to get rows if value contains result of another query

    winmansoft (3/6/2013)


    Thank you

    I found that i can do this

    DECLARE @Parameter VARCHAR(8000)

    SET @Parameter = 'seh,jyo,mhf'

    DECLARE @Elements TABLE

    (

    ...

  • RE: The Beer Cooler Thread

    Revenant (3/6/2013)


    I am calling it a day. I will head to Black Raven http://blackravenbrewing.com/ to down a pint of their Totem Ale (or two).

    BTW, the linked page gives you a...

  • RE: Grouping records by time interval

    geert.de.vylder (3/6/2013)


    ChrisM@Work (3/6/2013)


    I've no idea, Geert. Folks here on SSC will help you with coding decisions; this is more of a business decision. A date filter seems sensible to me...

  • RE: Grouping records by time interval

    geert.de.vylder (3/6/2013)


    ChrisM@Work (3/6/2013)


    I've no idea, Geert. Folks here on SSC will help you with coding decisions; this is more of a business decision. A date filter seems sensible to me...

  • RE: Splitting a string into fields

    If there really are always four elements, then you could use PARSENAME (look it up in BOL):

    ;WITH SampleData AS (

    SELECT MyString = 'Scrap : Part Assembly : Surface Defects :...

  • RE: Grouping records by time interval

    geert.de.vylder (3/6/2013)


    ChrisM@Work (3/6/2013)


    I meant in terms of potentially reducing the rowcount.

    Let's call a set from this table containing the same day, all of the intervals, and the same Event_Channel,...

  • RE: Grouping records by time interval

    geert.de.vylder (3/6/2013)


    ChrisM@Work (3/6/2013)


    This data set obviously isn't what you were expecting to see, even though it exactly meets your requirements. What would you like to do with it?

    I have to...

  • RE: Data Issue

    Ratheesh.K.Nair (3/6/2013)


    Thanks Chris for the reply.

    Problem i am facing is When selecting I am getting same data while using symbol F or F as search criteria both are giving the...

  • RE: Grouping records by time interval

    geert.de.vylder (3/6/2013)


    ...But the columns DVBIntern, DVBExtern, Tijdsduur, WrapUp, OnHold and Talk are all NULL or zero...

    That sounds about right. The matrix table contains 1,180,224 rows (all dates and event channels...

Viewing 15 posts - 5,071 through 5,085 (of 10,144 total)