Solved

"Bitwise" operators?

Posted on 2004-08-12
6
4,447 Views
Last Modified: 2011-08-18
Is there a way to do "bitwise" calculations in Oracle SQL?

Example in "pseudocode"

(4 BITAND 5) = 4 (100 "and" 101 = 100)
(40 BITAND 9) = 8 (101000 "and" 001001 = 001000)

and so on?
0
Comment
Question by:WernerVonBraun
6 Comments
 
LVL 4

Author Comment

by:WernerVonBraun
ID: 11782375
Solutions in Oracle 8 compliant SQL please. That's our customers' lowest common denominator ...
0
 
LVL 6

Accepted Solution

by:
morphman earned 25 total points
ID: 11782485
0
 
LVL 8

Assisted Solution

by:annamalai77
annamalai77 earned 25 total points
ID: 11782496
hi

check the link below

http://www.jlcomp.demon.co.uk/faq/bitwise.html

regards
annamalai
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 4

Author Comment

by:WernerVonBraun
ID: 11782567
0
 
LVL 8

Expert Comment

by:annamalai77
ID: 11782642
hi there

this link will also help u.
http://www.orsweb.com/downloads/source/282.html

also the first one, i and another buddy has posted the same link twice. sorry for the trouble friend.

regards
annamalai
0
 
LVL 47

Expert Comment

by:schwertner
ID: 11783282
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

747 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now