How do we get month name in SQL Server 2000, Oracle, MS Access?
Answers were Sorted based on User's Feedback
Answer / menaka
In Oracle,
SELECT to_char(sysdate,'month') from dual
| Is This Answer Correct ? | 50 Yes | 11 No |
Answer / kongu karunakaran
select datename(month,parametername or columnname) from
tablename
| Is This Answer Correct ? | 33 Yes | 16 No |
in ms-access we can use
select format(date(),'mmmm')
| Is This Answer Correct ? | 37 Yes | 28 No |
Answer / marco birchler
In Oracle make the first letter capital if you wish the
output names also capitalised. "Month" instead of "month"
| Is This Answer Correct ? | 13 Yes | 8 No |
Answer / foram
select month(getdate())
select month(dateparametername) from tablename
---here u will get number of month
or
select datename(month,getdate())
select datename(month,dateparametername) from tablename
to get name of month
| Is This Answer Correct ? | 7 Yes | 5 No |
Answer / kathiravan jayachandran
In Oracle
select to_char(sysdate, 'dd/mm/yyy')as year from dual
EG:-
select ed.emp_date_of_birth,ed.first_name,ed.last_name
from emp_details ed where
to_char(ed.emp_date_of_birth,'mm')=to_char(sysdate,'mm')
| Is This Answer Correct ? | 7 Yes | 5 No |
Answer / brahma prakash
FOR POSTGRES DATABASE
SELECT to_char(NOW(),'month')
| Is This Answer Correct ? | 15 Yes | 14 No |
Answer / aanshi
For oracle, OLD and NEW tables.
For sql server, Inserted & Deleted.
These two tables are also called as magic table.
| Is This Answer Correct ? | 1 Yes | 0 No |
What is a transaction and what are ACID properties?
14 Answers Config Systems, IBM, TCS, Virtusa,
what is the Enterprise manager(2000) and management studio (2005)?
What is an entity-relationship diagram (erd)?
How to delete a login name in ms sql server?
what is physical sort data and logical sort data in index?
What is the difference between Temporary table variable and a Table variable? Or Which Table variable I should use inside Stored procedure?
3 Answers Microsoft, TCS, Techastrum,
What is reference section?
How to use the inserted and deleted pseudo tables?
What do you mean by data integrity?
What is the difference between ddl,dml and dcl commands?
0 Answers BirlaSoft, Verifone,
What are the types of indexes available with SQL Server?
How to tune a stored procedure?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)