1 a Sắc son b Sắt son 2 a Xâm lược b Xâm lượt 3 a Ẩu đả b Ẩu đã 4 a Sán lạn b Xán lạn c Sáng lạng 5 a Lủng củng b Lũng cũng 6 a Trăn trối b Trăng trối 7 a Vẩn vơ b Vẫn vơ 8 a Trà đạp b Chà đạp 9 a Xả.
Trang 2a Create ktbh.dbf
2 Append
Tên
hàng
Mã
hàng
Tên người bán
Mã người bán
Ngày bán hàng
Số lượng
Đơn giá
Thuế VAT
Thành tiền
Sách S01 Trần
Mai Thùy
NB01 21/03/2021 120 50.000
Vở V01 Đinh NB03 5/3/2021 100 8.000
Trang 3Văn Nam Sách S01 Hoàng
Mai Linh
NB02 9/9/2021 80 50.000
Bút B01 Đinh
Trung Tấn
NB05 20/03/2021 110 5.000
Bút B02 Trần
Mai Thùy
NB01 21/03/2021 90 4.000
Thước
kẻ
T01 Nguyễn
Thị Lan
NB04 14/04/2021 95 5.000
Sách S02 Trần
Mai Thùy
NB01 20/12/2020 70 40.000
Thước
kẻ
T02 Trần
Mai Thùy
NB01 1/10/2020 60 3.000
Thước
kẻ
T01 Hoàng
Mai Linh
NB02 10/9/2020 80 5.000
Bút B02 Đinh
Văn Nam
NB03 10/8/2021 100 4.000
Trang 4c List all fields MH,TENNB, SL for SL>100 and month (NGAY)=03 and
Year (NGAY)= 2021
d.
replace all VAT with SL*DG*0.1
replace all TT with SL*DG+VAT
e index on TENNB+MH to VDE for ngay= date (2021,03,21)
LIST all
f.
sum SL to KQF for year (NGAY)=2020 and MANB="NB01"
?KQF
g.
INDEX ON MANB+ STR ( day (NGAY),2) TO VDG FOR MONTH (NGAY)=03
AND YEAR (NGAY)=2021
TOTAL ON MANB+ STR ( day (NGAY),2) TO KQG FIELDS TT
USE KQG
LIST ALL FIELDS MANB, NGAY, TT TO PRINTER
Trang 6a create pxn.dbf
… ẢNH
* append
b
replace all TT with KL*DG*1.1
Trang 7replace all TT with KL*(DG-0.05*DG)*1.1 for left (TKCO,3)="152"
and month (NGAY)=02 or month (NGAY)= 03
c
index on MK+ str (10^7-KL) to VDC for left (TKCO,3)='152' and
month (NGAY)=05 and year (NGAY)=2021
LIST all to printer
d.
replace DG with DG-0.12*DG for left (TKCO,3)='152' and
MAVT='X30' and ngay= date (2021,03,27)
e.
index on MAVT + str ( month (NGAY),2) to VDE for
left (TKNO,3)='152' and year (NGAY)=2020
total on MAVT + str ( month (NGAY),2) to KQE fields TT
use KQE
list all
f.
- sum TT,KL to a,b for left (TKCO,3)='152' and MAVT='S02' and
month (NGAY)>3 and month (NGAY)<7 and year (NGAY)=2021
?’Don gia xuat binh quan cua vat tu S02 la:’, a/b
- sum TT,KL to c,d for left (TKCO,3)='152' and MAVT='M03' and
month (NGAY)>3 and month (NGAY)<7 and year (NGAY)=2021
?’Don gia xuat binh quan cua vat tu S03 la:’, c/d
g.
index on TENVT to VDG for left (TKCO,3)='152' and
year (NGAY)=2020
total on TENVT to KGG fields TT
USE KGG
index on -TT to g
GOTO top
list next 1 fields TENVT
Trang 10a create xnvt.dbf
nhập
vụ (X/N)
ARNH
b append
Trang 11c
list all for LNV=.T and month(NGAY)<4 and year(NGAY)=2021
Trang 12replace all TT with DG*KL*1.1
e.
index on TT to VDE for LNV=.F
goto top
list next 1 fields SP,TT,LNV
f CHÚ Ý NHẬP- XUẤT>0
Gia su ton dk=0
Sum KL to c for LNV=.F and MAVT=’SAT6’ and ngay<=date(2021,03,21)
Sum KL to d for LNV=.T and MAVT=’SAT6’ and ngay<=date(2021,03,21)
?’khoi luong ton cua vt…’, a-d
g.
index on MAVT +str(day(NGAY),2) +str(month(NGAY),2) to VDG for LNV=.F
and year(NGAY)=2021
total on MAVT +str(day(NGAY),2)+ str(month(NGAY),2) to KQG fields TT
use KQG
list all
Trang 14a create tamung.dbf
…ANH
* append
…anh
b
list all fields MADT for ngay=date(2021,01,10) and left(TKNO,3)=’141’ to printer
c.
replace all ST with 5000000 for left(TKNO,3)=’141’ and SOCT=’CT10’
d.
index on MADT+str(day(NGAY),2) +str(month(NGAY),2)+str(year(NGAY)) to
VDD for left(TKNO,3)=’141’
list all fields MADT,NGAY to printer
e
Trang 15sum ST to KQE for left(TKNO,3)=’141’ and MADT=’NV01’ and
month(NGAY)=12 and year(NGAY)=2020
?”…’, KQE
f.
index on MADT to VDF for left(TKCO,3)=’141’ and ngay<=date()
total on MADT to KQF fields ST
use KQF
list all
Trang 17b.
c.
replace all VAT with SL*DG*0.1
replace all TT with SL*DG
replace all STPT with TT+VAT
d.
index on SP to VDD for month(NGAY)>03 and month(NGAY)<07 and
year(NGAY)=2021
list all
e.
sum TT,SL to a,b for MH=’Ti vi’
?a/b
f.
index on NGAY to VDG for month(NGAY)=06 and year(NGAY)=2021
total on NGAY to KQG fields TT
use KQG
list all to printer