أحساس غالي بتاريخ: 30 أكتوبر 2011 تقديم بلاغ مشاركة بتاريخ: 30 أكتوبر 2011 Table Name: SALESItem_No Item_Name Quantity Unit_Price Amount101 HP Laptop 13 210102 DELL Laptop 12 250103 Fujitsu Laptop 9 195104 Sony Laptop 9 275105 Acer Laptop 8 165 a. Write a PL/SQL block to compute the Amount column values andupdate the table. b. Display the item details of the item 1.2 Create a table with two fields:Given_No Number Primary Key andDescription Char(4) السؤال الثانيa)Write a PL-SQL block to insert numbers from 51 to 75 and the numberdescription (odd or even) in the table.The PL/SQL block should also display the odd numbers count and evennumbers count.Table: ODD_EVENSample DataGiven_No Description51 ODD52 EVEN السؤال الثالث 1.3 Create a student table with the following fields:Student_Id (Primary Key)Student_NameMarksGradeInsert 5 records into the above created table having student_id values from 1to 5 and leave the Grade field blank.Write a PL/SQL block to update the GRADE field based on the followingconditions:For Marks <50, Grade should be ‘F’For Marks from 50 to 60, Grade should be ‘C’For Marks from 61 to 80, Grade should be ‘B’For Marks from 81 to 100, Grade should be ‘A’___________________________________________ السؤال الرابع 1.4 Write a PL/SQL block to display Fibonacci series from 1 to 25. Create atable and store the generated series into it. The PL/SQL block should alsodisplay sum of the numbers in the series.Fibonacci series : 1,1,2,3,5,8,13,21 اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
Recommended Posts
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.