Question

Asked on 2010-08-27 at 08:54:02ID: 26680307

simple sql

by: Sara_j_11500

Rating5.6Good

I have an oracle table which has following fields:
acct_nbr
sales_amt

Now I want to add a row_id kind of a field to my table, so that when I send out sales_amt , I can just send row_id, sales_amt, and not send out the acct_nbr to other people. But at the same time when someone comes back and asks me to verify sales_amt, I can ask the row_id from them and then use that to locate which acct_nbr they are talking about . Can u please share the code to create a row_id or a record_id kind of a column in my table.

  1. Oracle 9i SQL decode
    Hi, I am trying write a SQL based on the following condition: select a.id, a.col2 f_name, b.col3 L-name, c.v_date date_1, decode(a.cat,'007','first','008','second','') as cat_type ..... from a,b,c,... where ...... The change I want to do on the ab…
  2. How do I get the parameter value in a logged ora…
    I'm using Oracle 9i's dbms_fga procedure to log select statements on a table. I was able to successfully create a policy that logs select statements. And Oracle in fact captured the select statements into the dba_fga_audit_trail table. The problem is that the logged statements have a parameter in them. It is that parameter value that is most important to me.…
  3. PLS-00363: expression 'OUT_ERR_MS…
    Hi Experts, just looked at this code please there is an error on the "out_err_cd := -1; line " am just trying to implement custom errors ==================== CREATE OR REPLACE PROCEDURE HE_REPORTING_DATABASE.GEN_ANONY_ID_COURSECODE (va_S_STUDENTREFERENCE …
  4. SQL statement
    I have a column called RCV_TMS with values in format : 5/20/2010 11:24:54 AM I need an sql statement which truncates it to AM or PM only.
  5. left join
    Hi I have a table receipt with field BANKER_ID then table BANKER WITH BANKER_ID, BANK_ID Then table BANK WITH BANK_ID, NAME From table receipt I need to check banker_ID and from table bank I need bankname. how do i get this

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
Oracle 09
Tags
Participating Experts
4
Solution Grade
A

Replies

 by: slightwv

Posted on 2010-08-27 at 09:00:38ID: 34349508

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.

 by: ajexpert

Posted on 2010-08-27 at 09:06:19ID: 34349509

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.

 by: slightwv

Posted on 2010-08-27 at 09:08:04ID: 34349510

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.

 by: Sara_j_11

Posted on 2010-08-27 at 09:09:20ID: 34349511

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.

 by: slightwv

Posted on 2010-08-27 at 09:25:16ID: 34349512

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.

 by: slightwv

Posted on 2010-08-27 at 09:26:15ID: 34349513

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.

 by: Sara_j_11

Posted on 2010-08-27 at 09:27:13ID: 34349514

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.

 by:

Posted on 2010-08-27 at 09:28:23ID: 34349515

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.

 by: slightwv

Posted on 2010-08-27 at 09:31:26ID: 34349516

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.

 by: ajexpert

Posted on 2010-08-27 at 09:34:15ID: 34349517

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.

 by: slightwv

Posted on 2010-08-27 at 09:36:28ID: 34349518

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.

 by: ajexpert

Posted on 2010-08-27 at 09:37:58ID: 34349519

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.

 by: slightwv

Posted on 2010-08-27 at 09:40:30ID: 34349520

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.

 by: Sara_j_11

Posted on 2010-08-27 at 09:45:32ID: 34349521

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.

 by: slightwv

Posted on 2010-08-27 at 09:50:40ID: 34349522

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.

 by: Sara_j_11

Posted on 2010-08-27 at 10:02:10ID: 34349523

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.

 by: slightwv

Posted on 2010-08-27 at 10:11:51ID: 34349524

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.

 by: slightwv

Posted on 2010-08-27 at 10:13:59ID: 34349525

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.

 by: slightwv

Posted on 2010-08-27 at 10:16:01ID: 34349526

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.

 by: Sara_j_11

Posted on 2010-08-27 at 11:31:09ID: 34349527

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.

 by: slightwv

Posted on 2010-08-27 at 11:32:52ID: 34349528

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.

 by: ajexpert

Posted on 2010-08-28 at 19:12:30ID: 34349529

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.

 by: Subramanyeswara

Posted on 2010-08-29 at 13:56:31ID: 34349530

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.

 by: slightwv

Posted on 2010-08-30 at 05:25:35ID: 34349531

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.

 by: angelIII

Posted on 2010-10-19 at 07:54:09ID: 34349532

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

Know a thing or two about Oracle? Join our team of experts today.

    BrowseBecome an Expert