Discussions
Categories
- 385.5K All Categories
- 5.1K Data
- 2.5K Big Data Appliance
- 2.5K Data Science
- 453.4K Databases
- 223.2K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 47 Multilingual Engine
- 606 MySQL Community Space
- 486 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3.2K ORDS, SODA & JSON in the Database
- 584 SQLcl
- 4K SQL Developer Data Modeler
- 188K SQL & PL/SQL
- 21.5K SQL Developer
- 45 Data Integration
- 45 GoldenGate
- 298.4K Development
- 4 Application Development
- 20 Developer Projects
- 166 Programming Languages
- 295K Development Tools
- 150 DevOps
- 3.1K QA/Testing
- 646.7K Java
- 37 Java Learning Subscription
- 37.1K Database Connectivity
- 201 Java Community Process
- 108 Java 25
- 22.2K Java APIs
- 138.3K Java Development Tools
- 165.4K Java EE (Java Enterprise Edition)
- 22 Java Essentials
- 176 Java 8 Questions
- 86K Java Programming
- 82 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 208 Java User Groups
- 25 JavaScript - Nashorn
- Programs
- 666 LiveLabs
- 41 Workshops
- 10.3K Software
- 6.7K Berkeley DB Family
- 3.6K JHeadstart
- 6K Other Languages
- 2.3K Chinese
- 207 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 474 Portuguese
Wrong Space - Is these syntax supported in oracle?

Hi All,
I am looking for a help in knowing if below function syntax works in Oracle. I only need to know, if Oracle supports these combinations of functions.
1) sign(count(request_id)) as 'Customer'
2) (COUNT(SESSION_ID) - sum(is_open)) as 'CLOSED'
-The values of is_open is from case statement as below:-
case VERDICT
WHEN 0 THEN 1
ELSE 0
END is_open
Sorry, for keeping this question too short with too less information. Please note, the above syntax works good in MSSQL Server
Answers
-
it will work
< scott:[email protected] > select sign(count(empno)) from emp;SIGN(COUNT(EMPNO))------------------ 11 Zeile wurde ausgewählt.< scott:[email protected] > select ( count(empno) - sum(is_open)) as closed from (select empno, case comm when 1400 then 0 else 1 end is_open from emp); CLOSED---------- 11 Zeile wurde ausgewählt.
-
-
MODERATORS : Please close this thread down as OP has created a duplicate thread here --> Is these syntax supported in oracle?
-
Hi,
RameshSagar wrote:...Appreciate any help, suggestions, alternatives etc.
Yes, there are always alternatives.
If those alternatives are any better for doing what you want in your version of Oracle with you data depends on what you want, on your version, and on your data. Post CREATE TABLE and INSERT statements for a little sample data and the exact results you want from that sample data. Explain what you are doing, that is, why (in general terms) you want those specific results from that specific data. Give your full version number, e.g. 12.2.0.2.0.
Make sure there is a one-to-one correspondence between problems and threads. Post each separate problem in a separate thread, but don't start more than one thread for the same problem.