Oracle Discussion Forums
Welcome, Guest. Please login or register.
September 10, 2010
Home Help Search Login Register
News:


+  WebForums - OraclePassport
|-+  IT progamming - Oracle, Java, Unix, MySQL, Toad
| |-+  Oracle Basics
| | |-+  OCA question
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Send this topic Print
Author Topic: OCA question  (Read 267 times)
vivekmcm
Scout
****

Appreciate? +0/-0
Offline Offline

Posts: 119

Welcome!

« on: March 30, 2010 »

Q1.can we use long column data type in groupby and order by clause
================================
Q2.can we write the below query if yes what is the answer and how it work
select sysdate + '10' from dual
Report to moderator   Logged
kushi
Professional
****

Appreciate? +7/-0
Offline Offline

Posts: 140

« Reply #1 on: March 30, 2010 »

q)can we use long column data type in groupby and order by clause

ans)No we cannot use
Report to moderator   Logged

Kushi
sibanjan
Trainer
****

Appreciate? +6/-0
Offline Offline

Posts: 51


Welcome!

« Reply #2 on: March 30, 2010 »

================================


ANSWER OF QUESTION-2  yes,we can. It adds 10 days to the current system date and shows the result.
Ex. :  select sysdate "today's date",sysdate+'10' from dual;
  today's date SYSDATE+'
---------          ---------
30-MAR-10 09-APR-10
Report to moderator   Logged
Pages: [1] Go Up Send this topic Print 
« previous next »
 
Share this topic...
In a forum
(BBCode)
In a site/blog
(HTML)



Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 2.0 RC1.2 | SMF © 2006–2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.22 seconds with 18 queries.