Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
73.1k views
in Information Technology by (45.7k points)
closed by

Consider a table SALESMAN with the following data:

SNO SNAME SALARY BONUS DATE OF JOIN
A01 Beena Mehta 30000 45.23 29-10-2019
A02 K. L. Sahay 50000 25.34 13-03-2018
B03 Nisha Thakkar 30000 35.00 18-03-2017
B04 Leela Yadav 80000 NULL 31-12-2018
C05 Gautam Gola 20000 NULL 23-01-1989
C06 Trapti Garg 70000 12.37 15-06-1987
D07 Neena Sharma 50000 27.89 18-03-1999

Write SQL queries using SQL functions to perform the following operations:

(a) Display salesman name and bonus after rounding off to zero decimal places.

(b) Display the position of occurrence of the string “ta” in salesman names.

(c) Display the four characters from salesman name starting from second character.

(d) Display the month name for the date of join of salesman 

(e) Display the name of the weekday for the date of join of salesman

1 Answer

+1 vote
by (45.0k points)
selected by
 
Best answer

alternative answer

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...