Forum Replies Created

Viewing 15 posts - 2,431 through 2,445 (of 8,761 total)

  • RE: Update flags to values

    Phil Parkin - Thursday, January 26, 2017 12:47 PM

    Eirikur Eiriksson - Thursday, January 26, 2017 12:25 PM

    January 26, 2017 at 12:51 pm

    #1925173

  • RE: Update flags to values

    This is elementary my dear Phil, your illness must have been quite serious 😉
    😎

    ;WITH BASE_DATA AS
    (
      SELECT
       T.Id
       ,X.CV
      ...

  • RE: Update flags to values

    How many columns are in the actual data set?
    😎

  • RE: Convert number to certain value from table

    Joe Torre - Thursday, January 26, 2017 12:11 PM

    Eirikur Eiriksson - Thursday, January 26, 2017 12:05 PM

  • RE: Convert number to certain value from table

    Joe Torre - Thursday, January 26, 2017 11:48 AM

    bryan_gomez032000 - Thursday, January 26, 2017 12:08 AM

    January 26, 2017 at 12:05 pm

    #1925152

  • RE: Convert number to certain value from table

    sajikv2007 - Thursday, January 26, 2017 9:30 AM

    sajikv2007 - Thursday, January 26, 2017 9:28 AM

    Check...

  • RE: Convert number to certain value from table

    Here is a version with 0
    😎

    USE TEEST;
    GO
    SET NOCOUNT ON;

    DECLARE @tbl_value TABLE (Code INT NOT NULL,Name VARCHAR(10) NOT NULL);
    INSERT...

  • RE: Convert number to certain value from table

    Quick suggestion (if I understood the requirements correctly)
    😎

    USE TEEST;
    GO
    SET NOCOUNT ON;

    DECLARE @tbl_value TABLE (Code INT NOT NULL,Name VARCHAR(10) NOT NULL);
    INSERT...

  • RE: SSC Forum Updates

    Strange, when I try this link to a thread https://www.sqlservercentral.com/Forums/FindPost1853845.aspx I get an error that the topic cannot be accessed but this here is fine https://www.sqlservercentral.com/Forums/1852932/Comma-separated-list#bm1853853

    Has that specific post...

  • RE: JSON from within a table

    Quick (obvious) thought if the JSON column is NULL then you may want to use OUTER APPLY
    😎

    USE TEEST;
    GO
    SET NOCOUNT ON;

    IF OBJECT_ID('tempdb..#tmp',...

  • RE: Shrink HUGE data file

    WhiteLotus - Tuesday, January 24, 2017 6:01 PM

    Hi All,
    Last nite I did purging in a big table ( 1 billion records  )...

  • RE: print XML attribute value

    Just a quick thought, if you don't know the actual structure of the XML but you do know the name of the node element and a property value of that...

  • RE: print XML attribute value

    You are very welcome
    😎

    I did post few resources few weeks back on this thread

  • RE: print XML attribute value

    rash3554 - Tuesday, January 24, 2017 4:11 AM

    Thanks.
    But this prints only valueA from <Property Name="paramB" Value="valueA" />

    and not valueY from
    <Property Name="paramB" Value="valueY" />
    How...

  • RE: Just an observation: It seems odd that foreign keys cannot be references to unconstrained superkeys...*

    Those two schemas are not the same
    😎

    Original schema
       
                                       +--------------------+
                                       | Execution          |
                                       +--------------------+
       +--------------------+          | Execution_id       |-+-----------,                                              
       | Questionnaire      |     ,--+<| questionnaire_name |             |                                 
       |--------------------|     |    | Execution_date     |             |        +--------------------+                        
       | Questionnaire_name |-+---|    +--------------------+             |        | Execution_answer   |                        
       +--------------------+     |                                       |        +--------------------+
                                  |    +------------------------------+   '------+<| Execution_id       |  
       +---------------+          |    | Questionnaire_question_usage |   ,------+<| questionnaire_name |  
       | Question      |          |    +------------------------------+   | ,----+<| question_id        |
       +---------------+          '--+<| Questionnaire_name           |>+-' |      | answer_text        |
       | Question_id   |-+-----------+<| Question_id                  |>+---'      +--------------------+
       | Question_text |               +------------------------------+

Viewing 15 posts - 2,431 through 2,445 (of 8,761 total)