Page 69 - Modular_V2.0_SQL_Flipbook
P. 69

Periodic Assessment-4

                                                        (Based on chapter 5)


                 A.   Find the customer with the highest sale amount from the SALES table.

                               Sale_id         Product_id      Sale_amount         Sale_date       Customer_id

                                 S001             P001              5000          2025-01-10           C001


                                 S002             P002              3000          2025-01-12           C002


                                 S003             P003              2000          2025-01-14           C003

                                 S004             P004              7000          2025-01-16           C004


                                 S005             P005              5000          2025-01-18           C005


                 B.   Write the name of the join type shown in the image below:




                            Table 1     Table 2              Table 1     Table 2                 Table 1     Table 2




                      1.  …………………………………                 2.  …………………………………                   3.  …………………………………

                 C.   Define the following terms:

                      1.  Primary Index

                          …………………………………………………………………………………………………………………………………………………………

                      2.  Unique Index

                          …………………………………………………………………………………………………………………………………………………………

                      3.  Full-Text Index

                          …………………………………………………………………………………………………………………………………………………………

                      4.  Composite Index

                          …………………………………………………………………………………………………………………………………………………………

                      5.  Spatial Index

                          …………………………………………………………………………………………………………………………………………………………







                                                                                                                     67
                                                                                               Periodic Assessment-4
   64   65   66   67   68   69   70   71   72   73   74