Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

My sql query is

1. select 1+x from dual?

2. select 1+'x' from Dual?

3. Select x+1 from dual?

what is the out put of the above queries?

Answer Posted / jafar

Hello;
I am not a DBA but I do not think you can use variables like
this. But I ran the SQL and the out put for them was the same:
ORA-00904: "X": invalid identifier
00904. 00000 - "%s: invalid identifier"
*Cause:
*Action:

You can do things like:
Select 1+1 from dual;
Select sysdate from dual
select sysdate - 300 from dual;
select user from dual;

Hope that helps.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the different lookup methods used in informatica?

1040


Briefly explain the aggregator transformation?

995


In development project what is the process to follow for an etl developer from day1

1720


While migrating the data from one environment to another environment how would you manage the connections?

1086


source : xml file target: xml file how can we check data loaded into target xml file using writing sql query. pls help on this asap.

2720


What is the sequence generator transformation in informatica?

1178


What does update strategy mean, and what are the different option of it?

1087


Explain joiner transformation in informatica

1124


what is the size of u r source(like file or table)?

2270


Explain why we use partitioning the session in informatica?

1086


What are the advantages of using informatica as an etl tool over teradata?

1020


Explain sessions. Explain how batches are used to combine executions?

1026


How do you promote a non-reusable transformation to reusable transformation?

1134


What is enterprise data warehousing?

1045


COM components can be used in Informatica

2385