Visualizzazione dei risultati da 1 a 2 su 2

Discussione: Lettura da tabella

  1. #1

    Lettura da tabella

    Un mio amico ha un problema nel completare una procedura di interrogazione su una certa tabella.
    Le funzioni per estrarre i record e gestirli poi tramite interfaccia a video sono ovviamente banali, ma ha un problema con la query in quanto non gli restituisce nessun record quando invece sono sicuro che qualche risultato dovrebbe ritornarglielo..potete dare un'occhiata.. grazie.

    Codice PHP:
    select 
    substr
    (d.data_traf,1,4)||'m'||substr(d.data_traf,5,2)||'d'||substr(d.data_tr 
    af
    ,7,2data_traffico
    case 
    max(d.t_contowhen 1 then 'T' when 2 then 'I' else 'N' end||
    '
    ||case max(d.t_conto_debwhen 1 then 'T' when 2 then 'I' else 
    'N' end ||' '||ifnull(tr.descr,rpad(d.v_traf||'?',20)) verso_conti 
    from val_giorno
    :public.val_giorno d 
    loj t_ora
    :w_t_v_traf tr on d.v_traf=tr.verso 
    group by ifnull
    (tr.descr,rpad(d.v_traf||'?',20)) 

  2. #2

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.