Jump to content
Fórum Script Brasil
  • 0

Retornando Blob


Marcelo Braga

Question

Boa tarde Pessoal,

estou realizando uma consulta onde realizo as seguintes operações

CASE

WHEN S.IDSERVICO IN (48,666,470,675,670,517,485,549,661)

AND TIMEDIFF(MT.HORA_FINAL , MT.HORA_INICIO) BETWEEN '11:00:00' AND '23:59:00'

THEN CONVERT (MT.HORA_FINAL - MT.HORA_INICIO= '06:00:00',TIME)

WHEN S.IDSERVICO IN (48,666,470,675,670,517,485,549,661)

AND TIMEDIFF(MT.HORA_FINAL , MT.HORA_INICIO) BETWEEN '10:00:00' AND '12:01:00'

THEN CONVERT (MT.HORA_FINAL - MT.HORA_INICIO = '05:58:00',TIME)

WHEN S.IDSERVICO IN (48,666,470,675,670,517,485,549,661)

AND TIMEDIFF(MT.HORA_FINAL , MT.HORA_INICIO) BETWEEN '09:00:00' AND '11:01:00'

THEN CONVERT (MT.HORA_FINAL - MT.HORA_INICIO = '05:54:00',TIME)

ELSE

TIMEDIFF(MT.HORA_FINAL , MT.HORA_INICIO)

END AS HORATRABALHADA

E estou recebendo como retorno BLOB, já tentei várias formas de resolver esse problema e não consegui ainda.

Alguém sabe alguma coisa sobre?

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...