Question

Computed columns

Rating8.2Very Good

I want to create 2 columns that are computed.  However the computation for each record would be based on dividing the value for an individual record by the column total.  How can this be done.  Basically the computation is "percentage of total" for each record.

  1. how to load bcpout file with special characters to…
    I have a delimted bcpout dump file from sybase 12.5 database with columns delimited by special unique character '~' , end of record delimited by '@~@' to recognize new line of the record. Now I have to load this dump file into oracle 10g using sqlloader directly (using sqlloader built in mode like string mode etc) which recognizes end of the column, re…
  2. Keep a running total column - the current value
    Hi, I have the following query SUM(c.activation_balance) OVER (PARTITION BY ca.commission_agreement_id ORDER BY activation_date ROWS UNBOUNDED PRECEDING) What this returns is the volume of activation balances for a particular commission agreement. Th eproblem is though that it includes the current balance in the resul…
  3. Return Unique Records
    I am looking to list one occurence of a person even it there are multiple records of that person. I am also trying to evaluate . whether the returned patients have been counseld or not. I need a total of the total patient column and a total of the column that checks for counseled or not. The code I have is below
  4. total space used
    Hello, I have sql statement that displays the space used by each table in list. select a.segment_name TABLE_NAME, bytes/1048576 MEGS from user_segments a where a.segment_name in ('A','B'); This is OK but how can I calcuate the total and display at the bottom? TABLE_NAME …
  5. Trying to add column to existing table.
    Trying to add column to existing table.(Oracle 10 g) 1) This table has existing records 2) Also need to rename this table. 3) While making this addition can I specify default values for this new column for existing record. 4) And For all future new insert to this table can we restrict the possible values for this column.

Solution

Sign up now to view this solution! It's quick, easy, and secure to subscribe. We will return you to this solution, unlocked, when you’re done.

About this Solution
View This Solution - Start Your 30 Day Free Trial
Zone
General
Tags
computed columns
Participating Experts
1
Solution Grade
A

Replies

 
by:

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

Stay Connected

Oracle Around the Web

The latest Oracle news, tips, and tricks

Oracle Unveils Netra SPARC T3 Servers

New Carrier-Grade Blade and Rackmount Servers Deliver Better Performance, Density and Power Efficiency for the Communications Industry ...

read more

Oracle fixes 21 flaws in Java SE, Java for Business

Oracle is fixing 21 flaws in its Java SE and Java for Business products in its February critical patch update issued this week ...

read more

Obama’s Silicon Valley “Tech Supper”

Why was he there? Who wasn’t invited and why? What did they talk about? Why was he really there? These are the questions being debated ...

read more

Featured Oracle Experts

slightwv

slightwv has answered more than 2,000 Oracle questions and oversees database management within the U.S. Government. Slightwv

sdstuber

A regular presenter at the Collaborate conference, Oracle developer sdstuber is a top expert in PL/SQL and Oracle 9, 10 and 11. sdstuber

Testimonials

What users are saying about our experts

"The Oracle gurus provide answers, solutions and valuable workarounds"

User: schwertner

"Wow! Excellent, valuable explanation. Hats off to you"

User: aseshu70

"Solution worked fantastic and performs excellent! Thanks heaps"

User: klausbrandlhuber

Top Experts

  1. slightwv

    2,000

    0 points yesterday

    Profile

BrowseBecome an Expert