Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

DC 1 5 Duya rayt wan stored f nsh n we nem fHW _ 9 _ xxxx ( ) we go rit n di k

DC15 Duya rayt wan stored fnshn we nem fHW_9_xxxx() we go ritn di ks id we di ks nem gt wan givn paramita patn string. Yu f yuz LIKE f di pattem mach. Duya luk na di Ks tebul. 9.1> pik fHW_9_demo('Z') as autput; 9.3> pik fHW_9_demo(") as tput; Di SQL stetmnt we de p go kam bak Di SQL stetmnt we de p go ritn I autput 1|tput I +-+---+| N rkd n fn.1| Duya input valid string. I 9.2> select fHW_9_demo('M') as output;Di SQL stetmnt we de p go rituin 9.4> pik fHW_9_demo(null) as autput; Duya input valid string I 10.Duya rayt wan stored fnshn we nem fHW_10_xXxx () we go ritn di totl pemnt mnt f wan givn studnt ID n wan ia Duya luk na Studnt, Ks, Studnt_Ks tebul dn > pik fHW_10_demo(2000,1001) as autput; f studnt ID: 1001 na ia: 2000|.400|. Di SQL stetmnt we de p go ritn 10.4(5 pts)> pik fHW_10_demo(2017, null) as tput; Di SQL stetmnt we de p go ritn |tput tput | Duya input valid ia.|+--+| Duya, put valid studnt id.| mysql> desc Studnt dn; | Fild | Tayp | Null we n gt wan bt | Ki | Diflt f| Ekstra +-+-- Isid | int (11)1 N PRI NUL | fs_nem | varchar (20) we dn kl | NO | NULL | las nem | varchar (20) we dn kl | NO | NULL | batde f yu | deti we dn mek | NO | NULL | major | varchar (20) we dn kl | NO | NULL | zipkd f di | varchar (10) we dn kl | NO | NULL +---+--6 row in set (0.00 sek) mysql> pik * frm Studnt dn; +----------+-| sid | fs_nem | las_nem f| batde major | zipkd 1|1001 we dn kl | Austin |1002 we dn kl | Meri |1003 we dn kl | Kldia |1004 we dn kl | Andru |1005 we dn kl |ln |1007 we dn kl | Sera | Huang | Smit | Lee | Lin na | Wu | Lee 1990-01-01 C. S.|071231976-02-08 IT |08348 na di |1987-03-21| Math |913841947-08-25| Bayoloji |07101 na di |1997-01-25 Di wan dn we de wok | C. S. Di wan dn we de wok |07083 na di |1995-09-15 Di wan dn we de wok | IT |041016 row in set (0.00 sek) mysql> desc Ks dn; | Fild | Tayp | Null we n gt wan bt | Ki | Diflt f| Ekstra | cid | varchar (20) we dn kl | NO | nem | varchar (20) we dn kl | NO | kredit dn f| int(11) we dn kl | NO +---3 row in set (0.00 sek)| PRI | NULL T.| NULL I. | NULL ----- mysql> pik * frm Ks dn; cid | nem | kredit dn f|| CPS1231 we gt f du wit | Javal we dn kl | CPS2231 we gt f du wit | Java2| CPS2232 we gt f du wit | Data Strukch| CPS3500 we gt f du wit | Wb Progrm we dn de mek | CPS3740 we gt f du wit | Database Introdukshn || CPS5920 we gt f du wit | Database Sistem dn T | CPS5921 we gt f du wit | Data Mayning 4144131313137 row in set (0.00 sek) mysql> desc Studnt_Ks; | Fild | di wan dn we de wok | Null we n gt wan bt | Ki | Diflt f| Ekstra +--+- Isid | int(11) we dn kl | NO MUL | NULL | cid | varchar (20) we dn kl | NO | MUL | NULL 1 ia 1 ia | int (11) we dn kl | NO | NULL | smsta f| varchar (20) we dn kl | NO | NULL | gred we dn kl | char(2) we dn kl | YES | NULL +------+--5 row in set (0.00 sek) mysql> pik *+-------| sid | cid frm Studnt_Ks; --------| ia | smsta f| gred we dn kl ||1001 we dn kl | CPS2231 we gt f du wit |2013 we dn kl | Fl |1003 we dn kl | CPS2231 we gt f du wit |2015 we dn kl | Spring |1004 we dn kl | CPS2231 we gt f du wit |2014 we dn kl | Spring |1001 we dn kl | CPS2232 we gt f du wit |2016 we dn kl | Fl |1004 we dn kl | CPS2232 we gt f du wit |2014 we dn kl | Spring |1005 we dn kl | CPS2231 we gt f du wit |2016 we dn kl | Spring |1007 we dn kl | CPS2231 we gt f du wit |2015 we dn kl | Spring |1003 we dn kl | CPS5920 we gt f du wit |2016 we dn kl | Fl |1007 we dn kl | CPS3740 we gt f du wit |2014 we dn kl | Fl |1003 we dn kl | CPS5921 we gt f du wit |2016 we dn kl | Spring |1001 we dn kl | CPS3500 we gt f du wit |2017 we dn kl | Spring |1003 we dn kl | CPS2231 we gt f du wit |2014 we dn kl | F

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And SQL For DB2

Authors: James Cooper

1st Edition

1583473572, 978-1583473573

More Books

Students also viewed these Databases questions

Question

1 and aj 2. p 10 011 100 1011

Answered: 1 week ago

Question

4. Explain the strengths and weaknesses of each approach.

Answered: 1 week ago

Question

3. Identify the methods used within each of the three approaches.

Answered: 1 week ago