Merhaba arkadaslar
asagıdaki SQL sorgusunda dt1 ve dt2 icindeki degerleri editi1 ve edit2 nin textine atayarak arama yapmak istiyorum bu SQL cumlesinin dogru yazılımı ne olmalı?
dm.qt.SQL.Add('select sicil_no,gurup, sum(Gramaj),COUNT(*) from TBL_Tartim where tarih between '''+DateTimeToStr(dt1.DateTime)+''' and '''+DateTimeToStr(dt2.DateTime)+''' and sicil_no LIKE ''' + edit3.text+ '%'' and lot_no LIKE ''' + dcb2.text + '%'' GROUP BY sicil_no,gurup ') ;
yapmak istedigim asagıdaki
dm.qt.SQL.Add('select sicil_no,gurup, sum(Gramaj),COUNT(*) from TBL_Tartim where tarih between '''+ edit1.Text +''' and '''+ edit1.Text +''' and sicil_no LIKE ''' + edit3.text + '%''and lot_no LIKE ''' + dcb2.text + '%'' GROUP BY sicil_no,gurup ') ;