You are on page 1of 3

2323 March

March 202
2021

DBMS Lab
DBMS Lab ASSIGNMENT 3 AND ASSIGNMENT 4(1)
LOVISH BANSAL.

ASSIGNMENT 3 AND ASSIGNMENT 4(1)


LOVISH BANSAL.
Roll No. 101917087

E-mail Id lbansal_be19@thapar.edu
Assignment 3:

Write queries to: Queries Based on EMP table

1. Display the system date 12. Display day of date of joining column

2. Display current day 13. Display those employees who join the company on Monday

3. Display current month and spell out year 14. Display those employees who join the company this month

4. Display spell out current date 15. Display those employees who join the company in last 30 days

5. Check whether it is AM or PM right now Create a table train having three four columns

6. Display the date of next Friday 16. Train Number, date of Departure, time of departure, time of arrival

7. Round the system date on month 17. Insert five columns in train table

8. Truncate the system date on month 18. Display all the records

9. Round the system date on year 19. Display the time values inserted in the columns

10. Truncate the system date on year 20. Display those trains which arrived on PM

11. Find the day after three days 21. Display train number who are going to depart in next on hour.
Assignment 3:

Solution:

You might also like