473,387 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

I have problem with c# code using sql in Toad for oracle

I have problem with c# code using sql in Toad for oracle I am using Active reports.

The error is:
No data exists for the row or column
When I write the same query in Active reports.

Query in Toad
Expand|Select|Wrap|Line Numbers
  1. SELECT PI.proposalitem_linenum AS prop_linenum, 
  2.         RI.Refitem_NM AS refitem_nm,  
  3.         PI.QTY AS qty,
  4.         PI.UNITPRICE AS Unit_price,
  5.         PI.EXTENDEDAMOUNT AS Ext_amt,
  6.         B.BIDPRICE AS Bid_price,
  7.         B.EXTENDEDAMOUNT AS Ext_bid_amt
  8. from  proposal p, proposalitem pi, bid b, proposalvendor pv, refvendor rv, refitem ri 
  9. where P.PROPOSAL_ID =  2261 
  10. and B.EXTENDEDAMOUNT > (PI.EXTENDEDAMOUNT * 1.15)
  11. and pi.proposal_id = p.proposal_id 
  12. and b.proposalitem_id = pi.proposalitem_id 
  13. and pv.proposalvendor_id = b.proposalvendor_id 
  14. and rv.refvendor_id = pv.refvendor_id 
  15. and ri.refitem_id = pi.refitem_id 
  16. ORDER by p.callorder, P.PROPOSAL_ID, p.contract_nm, pi.proposalitem_linenum, ri.refitem_nm, ri.descr, B.EXTENDEDAMOUNT, PI.EXTENDEDAMOUNT




Query in Active reports
Expand|Select|Wrap|Line Numbers
  1. string sql = "SELECT PI.proposalitem_linenum AS prop_linenum, " +
  2.                          "RI.Refitem_NM AS refitem_nm,   " +
  3.                                      "PI.QTY AS qty, " +
  4.                                      "PI.UNITPRICE AS Unit_price, " +
  5.                                      "PI.EXTENDEDAMOUNT AS Ext_amt, " +
  6.                                      "B.BIDPRICE AS Bid_price, " +
  7.                                      "B.EXTENDEDAMOUNT AS Ext_bid_amt " +
  8. "FROM  DBA_WEBTRNSPORT.proposal p, DBA_WEBTRNSPORT.proposalitem pi, DBA_WEBTRNSPORT.bid b, DBA_WEBTRNSPORT.proposalvendor pv, DBA_WEBTRNSPORT.refvendor rv,DBA_WEBTRNSPORT.refitem ri  " +
  9.                                 "where P.PROPOSAL_ID = '" + proposalID + "'     " +
  10.                                 "and B.EXTENDEDAMOUNT > (PI.EXTENDEDAMOUNT * 1.02) " +
  11.                                 "and pi.proposal_id = p.proposal_id  " +
  12.                                 "and b.proposalitem_id = pi.proposalitem_id  " +
  13.                                 "and pv.proposalvendor_id = b.proposalvendor_id  " +
  14.                                 "and rv.refvendor_id = pv.refvendor_id  " +
  15.                                 "and ri.refitem_id = pi.refitem_id  " +
  16.                                 "ORDER by p.callorder, P.PROPOSAL_ID, p.contract_nm, pi.proposalitem_linenum, ri.refitem_nm, ri.descr, B.EXTENDEDAMOUNT, PI.EXTENDEDAMOUNT ";
Nov 26 '13 #1
0 1069

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Gopinath Munisifreddy | last post by:
Hi How to connect as sys(Login) to oracle using Microsoft dataprovider for Oracle. I have to specify privilage right SYSDBA in connection. Can u please tell how to specify this in connection...
1
by: lovkeshanand | last post by:
Dear All, I am using the oracle transparent gateway connectivity with sql server using tg4msql,as far as settings are concerned those were set and Connectivity is working Fine, and getting the...
2
by: islandfong | last post by:
I am developing a complicated Store Proc in Oracle 10i using TOAD. What tools can I use to debug the SP?
0
by: jen78 | last post by:
Hi, I am new to Oracle administration and hope someone can help me out on this as i am struggling to make it work.... I am doing development work using oracle database on my own development...
1
by: saskie | last post by:
Hi experts! I am a newbie oracle user. I want to ask on how to store and retrieve an image in oracle using java. I am currently using Oracle10g express. Could anybody help me please...
0
by: SLauren | last post by:
Hi, Can anyone please help me how can i debug a mysql stored procedure using toad software?? Thanks in advance, Lauren
0
by: praka88 | last post by:
I am a student and I need to develop a project using vb6.0 as front end and oracle as back end . how to solve a fetch the previous and last record in oracle using v b6.0
1
by: jeremi achigbue | last post by:
i am using TOAD,i need help in storing and retrieving image from oracle9i database. here is my code: Imports System.Data.OracleClient Imports System.Data Imports System .Drawing Imports...
2
by: Srikanth Ravuri | last post by:
Hi I am new to Oracle and I am trying to create a new database in Toad Oracle. Can some one please help me to create one. I really appreciate your time and help. Thank you,
2
by: Arun Mali | last post by:
how to save image in oracle using vb 6.0 code
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.