Hi!
I’m doing one Project in vb.net 2008 using mysql .In that
Project have the following Issues..
1.if one Employee getting Salary 1.2 lacs / annum means ..
After he getting 1st month Salary i want to show remaining
11 month salary.. How can i Create Trigger for this Problem
& How can i use it..

Answer Posted / ram gopal verma

select * from employee where empdate BETWEEN DATE_FORMAT(NOW(), '%Y-01-%d') AND DATE_FORMAT(NOW() ,'%Y-05-%d')

Note- I u want (%Y-01-%d) means show February month to (%Y-05-%d) June months.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are programming functions?

476


What does blob mean in mysql?

484


How do you backup a database in mysql?

573


What are the differences between binary and varbinary?

523


Can mysql handle big data?

513






What is pdo connection?

460


What is procedure in mysql?

471


What does mysql flush hosts do?

468


What are the other commands to know the structure of a table using mysql commands except explain command?

536


What is mysql data directory? How to determine the location of the data directory?

521


What is mysql server?

478


How do I start mysql database?

468


Why MySQL is used?

565


How to show certain selected rows with the value "pcds".

497


How large can a mysql table be?

445