adspace


how to calculate the difference between two dates? : Sql dba

Answer Posted / Sandeep Bhatnagar

To calculate the difference between two dates in MySQL, you can use the DATEDIFF() function. Example: SELECT DATEDIFF('2023-05-15', '2023-04-15'); will return 30.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use distinct and group by together?

1146


what is schema? : Sql dba

1163


what is sql server agent? : Sql dba

1188


how many tables will create when we create table, what are they? : Sql dba

1154


Is primary key clustered index?

1026


how to use regular expression in pattern match conditions? : Sql dba

1125


Is primary key always clustered index?

1101


what are the advantages of sql ? : Sql dba

1153


Does group by remove duplicates?

1120


Can we rollback truncate?

1083


how to start mysql server? : Sql dba

1279


what is dbms? : Sql dba

1069


Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me

2099


If a cursor is open, how can we find in a pl/sql block?

1252


what is collation? : Sql dba

1242