Forum Replies Created

Viewing 15 posts - 1,081 through 1,095 (of 3,489 total)

  • RE: Query Question

    Yes, it does.
    SELECT  dbo.mdhomadm.Patient_Number, dbo.mdhomadm.Diagnosis9_1, dbo.mdhomadm.Diagnosis9_2, dbo.mdhomadm.Diagnosis9_3, dbo.mdhomadm.Diagnosis9_4, dbo.mdhomadm.Diagnosis9_5,
       dbo.mdhomadm.Diagnosis9_6, dbo.mdhomadm.Diagnosis9_7, dbo.mdhomadm.Diagnosis9_8, dbo.mdhomadm.Diagnosis9_9, dbo.mdicdcde.ICD_Code_Description
    FROM  dbo.mdhomadm LEFT OUTER JOIN
       dbo.mdicdcde ON dbo.mdhomadm.Diagnosis9_1 = dbo.mdicdcde.ICD_Code

    The problem is...

  • RE: Query Question

    dougsto - Monday, January 28, 2019 1:43 PM

    I have a table that contains multiple fields:
    Diagnosis1
    Diagnosis2
    Diagnosis3
    Diagnosis4
    Diagnosis5
    Diagnosis6
    Diagnosis7
    Diagnosis8
    Diagnosis9
    each field only contain codes, the descriptions are...

  • RE: trying to learn SQL development

    Grant Fritchey - Monday, January 28, 2019 9:15 AM

    Glad to hear the book was useful. Thank you!

    In that case, hit the stairways...

  • RE: How sql query use in Pivot table ?

    akhterhussain80 - Friday, January 25, 2019 7:52 PM

    SELECT  EmpID, ReportingDate, CASE WHEN [Days] IS null AND EXISTS         (SELECT ...

  • RE: How sql query use in Pivot table ?

    Can you post a CREATE TABLE script and the INSERT scripts for this?
    And maybe fix up your SQL so we can read it?

  • RE: Combining Two Queries into Single Query

    jkramprakash - Thursday, January 24, 2019 10:01 AM

    It is working fine.But it is also required two queries.Instead of ProductCodes table i am using...

  • RE: pick random (shuffle by dept) employees from employees table and update main table with employee name

    This should get you started. Since you're new here, I created your table and added some data. If you want a tested answer, you should provide this.
    CREATE...

  • RE: Is sp_send_dbmail Asynchronous?

    Okay, thanks!  (Finally got the e-mail from my database!... where do they go when they get lost between my computer and gmail?) So I know the code works...
    Guess...

  • RE: Is sp_send_dbmail Asynchronous?

    I'll have a read. From a quick scan, I'd basically have to use a unique subject and search for that and the recipient's e-mail in the table, and if not...

  • RE: Combining Two Queries into Single Query

    like this?
    CREATE TABLE [dbo].[ProductCodes](
        [F_Product] [char](1) NOT NULL,
        [F_TextCode] [char](7) NOT NULL,
        [F_Phrase] [varchar](5) NOT NULL
    );
    GO

    INSERT INTO ProductCodes VALUES
    ('A','MANU001','TEST1'),
    ('A','MANU002','TEST2'), ...

  • RE: Is sp_send_dbmail Asynchronous?

    no. my requirement was super simple. Essentially, when an employee is assigned a task/drug protocol/whatever, send him an e-mail advising him of it. I had asked about this maybe pre-Service...

  • RE: Import many databases

    Maybe they're waiting for you to post your plan for them to comment on?

  • RE: Ways to search Faster In Ms SQL Server

    Got context?

  • RE: Is sp_send_dbmail Asynchronous?

    Oh, okay. That's what I was wondering. Thanks for the explanation. I was reading the documentation and it wasn't totally clear.

    Thanks, Lowell (and everybody). That answers my question.

  • RE: very slow select

    There query appears to be missing an alias:
    SELECT o2a.SOURCE_ID source_id, o2a.VALUE 
    FROM CR2Copy..OBJECT_TO_ATTRIBUTE

    should be
    SELECT o2a.SOURCE_ID source_id, o2a.VALUE 
    FROM CR2Copy..OBJECT_TO_ATTRIBUTE AS o2a

Viewing 15 posts - 1,081 through 1,095 (of 3,489 total)