Forum Replies Created

Viewing 15 posts - 16 through 30 (of 117 total)

  • Reply To: sql query help

    Jeff Moden wrote:

    Again... if you post some sample data in a readily consumable format, we can help a whole lot more.  See the first link in my signature line below for...

  • Reply To: sql query help

    Steve Collins wrote:

    sqlenthu 89358 wrote:

    I have gone through the two parts of Jeff's articles. But I still couldn't figure out the solution. here's my sample data:

    businessday category itemno value
    2022-01-01...
  • Reply To: sql query help

    I have gone through the two parts of Jeff's articles. But I still couldn't figure out the solution. here's my sample data:

     

    businessday category itemno value
    2022-01-01 xyz banana...
  • Reply To: hierarchy related query

    sqlenthu 89358 wrote:

    My bad Jeff. Apologies and i am making up for that mistake by making you CEO of the example. 🙂 Here is the code:

    This is the hierarchy table:

                

    September 27, 2021 at 1:27 pm

    #3933480

  • Reply To: hierarchy related query

    Really that's good. And don't know why i couldn't think of except clause (maybe overthinking).

    Apologies but i have another set of question. Query actually is little different as i am...

  • Reply To: hierarchy related query

    Lets say this is the second month data with some changes in hierarchy:

    insert into dbo.EmpHierarchy
    select '2021-09-01', 1, '1001', 'Jeff Moden', '-1', NULL, NULL, NULL, NULL, NULL, NULL,...
  • Reply To: hierarchy related query

    My bad Jeff. Apologies and i am making up for that mistake by making you CEO of the example. 🙂 Here is the code:

    This is the hierarchy table:

  • This reply was modified 3 years, 2 months ago by  sqlenthu 89358.
  • Reply To: Question about deadlock

    Both the processes fire update statement to change status from Y to N based on column1 values. Process 1 updates for column1 = "ABC" & Process 2 for column1 =...

  • Reply To: Question about deadlock

    • There's no index on the table. Will creating a cluster or non cluster index solve the issue ?
  • Reply To: Question about deadlock

    Thanks for the link Steve. Though I love Pinal and often enjoy visiting his blogs whenever get free time, I didn't find this particular blog helpful (maybe my naive mind...

  • Reply To: Question about deadlock

    Ok. I was able to get the records in the involved page crating deadlock... What's the best way to handle page lock ?

    All I can think of is to forcing...

  • Reply To: Question related to architecture

    But as of now what do you think Phil ? I really want to go with new database (with new schema in new DB is good idea) but want to...

  • Reply To: Question related to architecture

    Phil, glad I asked. The other system is somewhat very poorly written so we are re engineering it while moving to our system. So lots of table structures will be...

  • Reply To: Question related to architecture

    By system here means application. We have application "A" with database "D". Now another application say "B" with its own database "DB1" on another server is getting merged with our...

  • Reply To: Query help for special condition

    Can anyone please help on this please ?

  • Viewing 15 posts - 16 through 30 (of 117 total)