Solved

+ in sql

Posted on 2007-11-14
4
1,389 Views
Last Modified: 2013-12-19
CAn anyone tell me what does + sign mean in this sql
 "select * from v_costed_events where " +
                                                            "date_of_entry >= to_date(?, 'MM/DD/YYYY') and "+
                                                            "Date_of_entry < to_date(?, 'MM/DD/YYYY') and "+
                                                            "vendor_event_type='CC_adj' and service = 'BREW_01'"
0
Comment
Question by:dgupta70
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 20283547
that is not SQL itself, but some other coding language that builds up the sql string to be executed dynamically later.


0
 
LVL 74

Expert Comment

by:sdstuber
ID: 20284161
the + is the string concatenation operator for java and many other languages.

If it were sql or pl/sql it would look like this...

'select * from v_costed_events where ' ||
'date_of_entry >= to_date(?, ''MM/DD/YYYY'') and ' ||
'Date_of_entry < to_date(?, ''MM/DD/YYYY'') and ' ||
'vendor_event_type=''CC_adj'' and service = ''BREW_01'''
0
 

Author Comment

by:dgupta70
ID: 20284291
Don't you think it is an outer join?
0
 
LVL 74

Accepted Solution

by:
sdstuber earned 250 total points
ID: 20285139
No

outer joins are designated by  plus sign in parentheses and the plus is to the right
of the column in the outer table.

like this....

select * from a, b where
a.col1 (+) = b.col1

that statement is not standalone sql.  It's a string that will be parsed and executed inside some client software written in some language like java.

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ORA-02288: invalid OPEN mode 2 124
PL/SQL: ORA-00979: not a GROUP BY expression 3 79
Migration from SQL server to oracle (XML input) 4 67
Oracle performance tuning 2 53
Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question