How do we get current date in SQL Server 2000, Oracle, MS
Access?

Answers were Sorted based on User's Feedback



How do we get current date in SQL Server 2000, Oracle, MS Access?..

Answer / lrk

SELECT GETDATE() AS 'Current Date'
GO

Is This Answer Correct ?    66 Yes 20 No

How do we get current date in SQL Server 2000, Oracle, MS Access?..

Answer / rajiv rohilla

In Access We USE 'Select Date()'
In Sql server 2000 'Select getdate()'
In Oracle 'Select SysDate() from dual'

Is This Answer Correct ?    43 Yes 13 No

How do we get current date in SQL Server 2000, Oracle, MS Access?..

Answer / selvaraj.v

In Access 'Select date()'
In Oracle 9i 'Select Sysdate from dual;'
In SQL Server 2000 'Select Getdate()'

Is This Answer Correct ?    33 Yes 7 No

How do we get current date in SQL Server 2000, Oracle, MS Access?..

Answer / sridhar kumar nelanti

we use getdate()in SQL server to view current date and in
oracle we use sysdate().

Is This Answer Correct ?    27 Yes 7 No

How do we get current date in SQL Server 2000, Oracle, MS Access?..

Answer / nikita

i donot abt the SQLserver2000and MSaccess.But in ORACLE we
get current date by following SQLstmt:
SELECT sysdate() FROM DUAL;

Is This Answer Correct ?    32 Yes 14 No

How do we get current date in SQL Server 2000, Oracle, MS Access?..

Answer / jayesh l lolariya

select getdate(); in sql server 2000

Is This Answer Correct ?    10 Yes 5 No

How do we get current date in SQL Server 2000, Oracle, MS Access?..

Answer / kaveesh

select sysdate from dual; It works in ORACLe 10g.
Kaveesh

Is This Answer Correct ?    6 Yes 1 No

How do we get current date in SQL Server 2000, Oracle, MS Access?..

Answer / suhel

This command is not working, I transferred MySQL database
to SQL Server 2000 database.

Please tell me the actual command to use

Is This Answer Correct ?    9 Yes 7 No

How do we get current date in SQL Server 2000, Oracle, MS Access?..

Answer / vineet yadav

In Sql Server It will be ( Select getDate() )
And in ORacler (Select SysDate() from dual;)

Is This Answer Correct ?    5 Yes 3 No

How do we get current date in SQL Server 2000, Oracle, MS Access?..

Answer / parmanand

Access 2000 , i have tried.

select date() as CurrDate
select now() as CurrNow 'This will also work but it will
give you time also.


Output

CurrDate
----------
11/17/2009

CurrNow
----------
11/17/2009 11:00:34 PM

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More SQL Server Interview Questions

How to generate create view script on an existing view?

0 Answers  


Tell me what is the difference between locking and multi-versioning?

0 Answers  


Can we use where and having clause together?

0 Answers  


This question asked during interview, 2) At the end of each month, a new table is created for each bank that contains monthly metrics consolidated at the account level. The table naming convention is bankX_YYYYMM where X represents the numeric designation of the bank and YYYYMM indicates the 4 digit year and 2 digit month. The tables contain the following fields: name data type description account text account number registered boolean indicates whether the account is registered num_trans integer number of transactions made during the time period spend numeric(9,2) total spend during the time period a) Write a SQL query that will display the total number of transactions and total spend for "Bank1" during the 4th quarter of 2009. b) Write a SQL query that will display the total number of transactions and total spend at "Bank1" and "Bank2", broken out by registered vs. non-registered accounts, during January 2010 not sure what is correct answer and how to solve?

0 Answers   TCS,


How to convert a unicode strings to non-unicode strings?

0 Answers  






Explain what is the difference between a local and a global temporary table?

0 Answers  


What is the difference between a "where" clause and a "having" clause?

0 Answers  


what is create database syntax? : Sql server database administration

0 Answers  


What is hot add cpu in sql server 2008?

0 Answers  


How to rebuild the master database?

0 Answers  


how many layers of tcp/ip protocol combined of? : Sql server database administration

0 Answers  


What is Stored Procedure? What is Views in sql server? Difference between a User Defined Function and a Stored Procedure Difference between a primary key and a unique key? What is a join and explain different types of joins. Difference between temp table and table variable Difference between Triggers and Stored Procedures Difference between UNION ALL Statement and UNION What is COALESCE / Why do we use COALESCE? Why we use SET ROWCOUNT in Sql How many clustered index can have a table How many types of local tables in SQL SERVER Difference between DELETE and TRUNCATE What is Aggregate Functions? What is Row_Number()? What are Ranking Functions? What is NOLOCK? What is CTE? What are the Advantages of using CTE? What is the STUFF function and how does it differ from the REPLACE function? What are the difference between clustered and a non-clustered index? What are the different index configurations a table can have? Difference between a HAVING CLAUSE and a WHERE CLAUSE? Difference between SET and SELECT Provide all the built in string function of SQL SERVER Difference between char and varchar data types Define candidate key, alternate key, composite key. What are constraints? Explain different types of constraints. What is a self join? Explain it with an example. How will you convert table row to a column comma separated value

4 Answers   ACS,


Categories