Ads

Ads

Translate

Wednesday, 20 March 2013

Filter data per tanggal

By Fajar  |  March 20, 2013 1 comment


Mat malam Agan2 sekalian,,
Mohon Bantuannya,, Misalnya data Daftar Chek-In Banyakkkkkkkkkk,,
dan saya ingin Memfilter data tersebut dari Tanggal 3/17/2013 sampai 3/19/2013.

Sintaknya bagaiman ,, mohon pencerahan..???

Terimakasi :D
Gusrio Tendra
di coba om :D

adoquery1.SQL.Clear;
adoquery1.SQL.Add('select * from check_in where tanggal between '''+ formatdatetime('mm/dd/yyyy',datetimepicker1.Date) +''' and '''+ formatdatetime('mm/dd/yyyy',datetimepicker2.Date) +''' ');
adoquery1.Open;
Edited  Unlike  1  Monday at 01:08
Endra Wijaya
MYSQL,
Query.Close;
Query.SQL.Clear;
Query.SQL.Add('Select * From tablename');
Query.SQL.Add('where tgl_checkin Between "'+ FormatDateTime('yyyy-mm-dd',Datepicker1.Date)+'"');
Query.SQL.Add('And "'+ FormatDateTime('yyyy-mm-dd',Datepicker2.Date)+'"');
Query.SQL.Add('Order by no_registrasi Asc');
Query.Open;

beda database beda kayake,

Author: Fajar

Hello, I am Author, decode to know more: In commodo magna nisl, ac porta turpis blandit quis. Lorem ipsum dolor sit amet, consectetur adipiscing elit. In commodo magna nisl, ac porta turpis blandit quis. Lorem ipsum dolor sit amet.

1 comment:

  1. bener Kata mas Endra Wijaya Beda DataBase beda Codingnya

    ReplyDelete

Best Post This Year

Install Fortesreport community Delphi 7 dan RX Berlin

Download  Pertama2 kita harus punya file installernya terlebih dahulu, download  https://github.com/fortesinformatica/fortesrepo...

Total Pageviews

© 2014 Fajar Priyadi. WP themonic converted by Bloggertheme9. Published By Gooyaabi Templates | Powered By Blogger
TOP