lines = file.readlines ( ) print(lines) for line in lines : words = line.split( ) for word in words : print(word+"#", end =" ") file.close ( )
Write a SQL queries for (i) to (iv) 4 marks.
Table: Persons Customer Id Customer Name Contact Name City Postal code Country 1 Arun Madhu Berlin 12209 Germany 2 Abhilash Ana Trujillo Mexico D.F 5021 Mexico i. Write a SQl Query to add a column named “DateOfBirth” should be of datatype date in the“Persons” table. ii. Write a SQl Query to display all the rows of Person table. iii. Write a Sql Query to change the data type of the column named “DateOfBirth” in the “Persons” table into year. iv. Write a SQL Query to Sort Customer Name in Descending order