Question

change table structure / (add, edit, remove column of a table) at run time

i. add a column address in the PRODUCT_SELECTION table.

ii. execute SQL INSERT statement to create a record into PRODUCT _SELECTION table

iii. run the query to updates all the records having EXPIRY_DATE as 31-Dec-2022 and

increase PRICE of all the PRODUCTS by 10% of PRODUCT_PRICE.

iv. delete all the records from PRODUCT _SELECTION Table where EXPIRY_DATE is

before 31-Dec-2022.

27 Apr 2023
Answer :
Word Count : 265

To change the table structure of a table and perform various operations at runtime, you would typically use SQL statements. Here's an example of how you can achieve the tasks you mentioned:

Assuming you're using a database system that supports SQL, here's the step-by-step process:

  1. Add a column "address" to the "PRODUCT_SELECTION" table:
 ALTER TABLE PRODUCT_SELECTION ADD address VARCHAR(255); -- Adjust the data type and length as per your requirements 
  1. Execute an SQL INSERT
________ __________ __________ __________ __________ ___ __________ _____ ________ ______ _________.
________ __________ ____ ______ _________ _________ _______ __________ __________ ___ _______.
________ _________ ______ ___ __________ ________ _________ ____ _________ ________ _______.
_____ ____ __________ ___ ___ _______ ________ __________ ____ __________ ________.
___ _________ ________ __________ ___ __________ _____ ______ __________.
_____ __________ ____ ____ __________.
______ _____ ________ _____ ____ ______ ______ _________ ______ _____ _____ ______.
____ _________ ____ ____ ________ ________ _________.
__________ ______ _____ ________ _____.
______ ________ __________ _________ ___ ___ ____.
__________ ___ _____ ___ _______ ___ ___ ________ __________ ____ ___.
______ ___ __________ _________ ____.
_____ _________ ____ ________ ______ __________ ______ ___ ____ ___ ________ _______.
________ ___ ______ ___ _____ ___ ____.
__________ ______ ______ ______ _____ _______ ______ ______ ___ _____ ________.
_____ _______ ______ ___ ________ _______ ______ ___ __________ __________ ______.
__________ _______ _________ _________ _____ ________.
______ ____ __________ _________ ___ ___ _________ ______ _________.
__________ _____ _____ ________ ______ _________ ______ _______ _________ ________ ___ _________.
______ __________ _____ ___ _________ _____ ___ ______ __________ _______ _____ _____.
IGNOU ACADEMY
Your IGNOU journey, made easier.
  • Solved Assignments
  • Study Notes
  • Guess Papers
  • Question Papers
Skip in 10
Top
📞
Call Support Instant phone assistance IGNOU MCSL 205 2022 2023 - change table structure / (add, edit, remove column of a table) at run | IGNOU Academy
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→