Tài liệu thực hành môn CƠ SỞ DỮ LIỆU
Mục tiêu: ! "#$%&' ()(* CSDL mu Toyworld +,( -*#**. /0123*/45/-**!,6 7 89:;";<"=>?:>'+1@ AB*A -,(,C "D1236@ -** )1E*123 -*? $,#** : F GGH! "@ A1IJKLL M*,(*/N 789:;";<"=>?:>',)*B*A -+"@ A1IJKLL O+PQ R*A<$<"@*A"S<1TT U0 /V %& >' 55' ' GGGGG /W (5555 GGGGGO " X/ (5555 GGGGG " 5#, >*)55/ (55 GGGGGY "*( (5555 GGGGGZ /W (5555 GGGGG[ #S (5555 GGGGG\ ") ]** >*)55/ (55 GGGGGH #*9* (5555 GGGGG^ #,] (5555 GGGGG )9** (5555 +_ B@13`)a1IT U+BB -T U K/Bb*cd) E *33\GI*T U K/Bb$(*c+]%/BB@ & 1 Y+e83 _1TT U E5f)T `) C/V>& declare @orddate char(15) declare @totalshippingcharges money declare @msg varchar(120) declare ordershipcharge cursor for select dorderdate,sum(mshippingcharges) from orders group by dorderdate open ordershipcharge fetch ordershipcharge into @orddate,@totalshippingcharges While (@@fetch_status = 0) begin select @msg = @orddate + CONVERT(char(10), @totalshippingcharges) select @msg end close ordershipcharge deallocate ordershipcharge = A18F - _JQ gVJK1IT U+;F) _*` ,M*3 _ Z+0 1T hB)X i V123 /V)*-jZQ E13B i VB123 i53jGG+ 2 [+0 1Tk5k 0 )l>; /V)/mB V1*I/m,6B UA@ 0 l )/V 55" "#$' ( \+PQ fA f_dk J/Q n,0+ H+PQ V,nJQ gV*0 /V/*!.B K & -i5"5)'!FV5o? :#! -V 5o? '!13B /_5!+$p,Q /m B&:*/*P*q ,]* /*P* q + ^+PQ V,n E n0 @131@+ r$Is13B!s"Q =i! G+PQ V,nQ JiV5o,*IV5o 1I @13,6g)1U& 'Q*ItrZ _Q Ji*G+GZ 'Q*I C[1QG _Q JiG+G\ 'Q*I C1QOG _Q Ji*G+G^I* _G+ +1T*8d*A C,( _ & + ,(@ -*,(ul *)*. E*I/B 1I Cgp`* )!@ /+ * 1T*8d*A EI5*1I + + PQ *A8 O+@ *8, - V,n - v ,6 & ;rw')w rwSw _ - v @x'+S+w My)1TJ/B/V6 -=]@ & ;8 - -v 3 4 . '! 13 B /_5!+$p,Q /m B&:*/*P*q ,]* /*P* q + ^+PQ V,n E n0 @ 13 1@+ . @ 13 1@+ r$Is 13 B!s"Q =i! G+PQ V,nQ JiV5o,*IV5o 1I @ 13 ,6g)1U& 'Q*ItrZ. _ Z+0 1T hB)X i V123 /V)*-jZQ E 13 B i VB123 i53jGG+ 2 [+0 1Tk5k 0 )l>; /V)/mB V1*I/m,6B