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..



Hi! I’m doing one Project in vb.net 2008 using mysql .In that Project have the following Issues..

Answer / 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

More MySQL Interview Questions

How would concatenate strings in mysql?

0 Answers  


what is the size of date datatype in sql?

2 Answers  


Query to select passwords from a table having a column "Password" Whose length is b/w 8 &15 and having 'A' as the first character in the password irrespective of case.

3 Answers  


How can an index be declared in mysql?

0 Answers  


How do you create a schema?

0 Answers  


Explain MySQL architecture?

1 Answers  


How would you backup and restore a big MySQL database? What are the advantages of the approach which you have taken over the others?

4 Answers  


Can mysql store files?

0 Answers  


How to convert character strings to dates?

0 Answers  


Which statement is used to delete a table in MySQL.

0 Answers  


How do I rename a table in mysql?

0 Answers  


How to drop an existing index in mysql?

0 Answers  


Categories