How to find last day of the month in sql query
Answers were Sorted based on User's Feedback
Answer / vishwa
below query will get the last day of the month
select last_day(sysdate) from dual
Is This Answer Correct ? | 14 Yes | 0 No |
Answer / ajit
select TO_CHAR( last_day(sysdate), 'day')
from dual
Is This Answer Correct ? | 12 Yes | 2 No |
select to_char(sysdate, 'day') from dual;
This will print output: tuesday i.e
select last_day(sysdate) from dual;
This will print output: 31-Aug-14
Is This Answer Correct ? | 2 Yes | 0 No |
Which one of the following join types will always create a Cartesian Product? 1. CROSS JOIN 2. LEFT OUTER JOIN 3. RIGHT OUTER JOIN 4. FULL OUTER JOIN 5. INNER JOIN
what is the difference between truncate and delete statement? : Transact sql
How would you pass hints to the sql processor?
what is the difference between delete and truncate statement in sql? : Sql dba
What is the difference between Union and Union all. Which is faster.
In what condition is it good to disable a trigger?
Why do we use cursors?
What happens if a procedure that updates a column of table X is called in a database trigger of the same table ?
how to get @@error and @@rowcount at the same time? : Sql dba
What is the use of %rowtype?
how would you write a query to select all teams that won either 2, 4, 6 or 8 games? : Sql dba
Is sql considered coding?