0% found this document useful (0 votes)
27 views

Dbms Lab Dbms Lab: 23 March 202

This document contains an assignment submission for DBMS Lab Assignments 3 and 4(1) by Lovish Bansal. It includes 21 SQL queries to be performed on the EMP table and a TRAIN table. The queries are related to retrieving date, time, day and other information from the tables and manipulating dates. The student has provided their roll number, email id and listed out the queries to be solved for the assignments.

Uploaded by

LOVISH bansal
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Dbms Lab Dbms Lab: 23 March 202

This document contains an assignment submission for DBMS Lab Assignments 3 and 4(1) by Lovish Bansal. It includes 21 SQL queries to be performed on the EMP table and a TRAIN table. The queries are related to retrieving date, time, day and other information from the tables and manipulating dates. The student has provided their roll number, email id and listed out the queries to be solved for the assignments.

Uploaded by

LOVISH bansal
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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 [email protected]
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