More than one query
Using oracle apex, and one hidden item with sql query, i want to have these two queries :
the first one deletes all from that table, while the second one inserts the values 1,0
my problem is how to I do it that it follows this exact order? If i write them both like this, it gives me an error, so somewhere is a problem
delete from clicks where nr =(select nr from clicks where nr>0)
insert into clicks values (1,0)
not sure but did you try
BEGIN
delete from clicks where nr =(select nr from clicks where nr>0);
insert into clicks values (1,0);
END;
Similar Messages
-
Is there a way to have more than one Query view in the same workbook?
Is there a way to have more than one Query view in the same workbook?
BEx allows us to insert Queries into workbooks, but not saved views.
I can open a view in excel & then save it as a workbook....but after that there is no way to add another view to the same excel. If I open a new view, it opens in a new Excel.Hi
when u open some query in BEx analyser,u can save it as a query view as well as workbook.The difference is, workbook is if u work with the design mode which will be in the left side of ur screen and query view is wen u save after drill downing some char or key figures from a intial screen wen u execute query in BEx analyser -
Web Browser Session Hangs When Opening More Than One Query
Let me start off with the BW environment - we are on BW release 3.50 at support pack level 12. Basis component is release 6.40 at level 12.
We have a situation where a web browser HTTP session "hangs" while trying to execute more than one query at a time. A role based menu template is used by our end-users to run queries. The end-users execute a query and while it is running, try to execute a second query. But the web browser for the second query does not become available until the first query is complete.
The following is the detailed steps of the process:
1. From my user menu in BW, expand the folder for Role Z: BW_REPORTING and click on SAP_BW_TEMPLATE Web_Role_Menu. Web browser window will open.
2. Within the ZTPL_Role_Menu_Reporting web page, select Role Z: FUNC_DEVELOPER > BW Reporting > Controlling > Profitability Analysis > Detail query. (Role Z: FUNC_TESTER can be used in this example as well, just follow the same menu path). Click on Detail and another web browser window will open for the query selection screen.
3. On the selection screen for the CO-PA Detail query, enter values and execute the query.
4. While the CO-PA Detail query is executing, go back to the first opened web browser for ZTPL_Role_Menu_Reporting and go to Role Z: FUNC_DEVELOPER > BW Reporting > Controlling > Profitability Analysis > Operating Concern query. Run the CO-PA Operating Concern query while the CO-PA Detail query is still executing. The session for the Operating Concern hangs and does not display the selection screen until the CO-PA Detail query has completed. Once the Detail query has finished, then the second query, CO-PA Operating Concern will then display the selection screen for the query.
Our end-users expect the second query to display the selection screen immediately with no delay. The end-users do not want to wait for the selection screen of the second query. They want to be able to execute the queries simultaneously.
Our Basis group as tried adjusting some parameters and has implemented OSS note 853396, but the issue still exists.
Is it a BW issue or is it an issue with MS Internet Explorer?
Your input and suggestions are appreciated.
Thanks.Hi.
I had a somewhat similar issue earlier when I tried closing BW Query windows, it would freeze and wouldn't close. I resolved the issue by turning off some BHO (Browser help Objects) in IE.It can be done using IE>Tools>Manage Add-Ons
Cheers
Anand -
Single-row subquery returns more than one query
Hi,
i'm receiving the following error: Single-row subquery returns more than one query. I have no idea how I should debug this query. For all I know, the subqueries can only return 1 row... :S
I only have Oracle SQL Developer to run/test my queries. I can run the query with ROWNUM < 5000, which gives no errors. If I run with ROWNUM > 5000 and ROWNUM < 6000 then the error appears....
Here's the query:
with
DATES as
(select (select min(REC_DATE) from STOCK) as FROM_DT, (select max(CHANGE_DATE) from STOCK_ADJUST) as TO_DT from DUAL),
MONTHS as
(select add_months(trunc(FROM_DT,'MM'),ROWNUM-1) as DT from DATES connect by ROWNUM <= months_between(TO_DT, FROM_DT)+1),
CALCULATIONS as
(select
PNM.PNM_AUTO_KEY PNM_KEY,
MONTHS.DT DT,
NVL((select sum(stm.qty_rec) from stock stm WHERE STM.REC_DATE < MONTHS.DT AND STM.PNM_AUTO_KEY = PNM.PNM_AUTO_KEY GROUP BY pnm_auto_key),0) INCOMING,
NVL((select sum(saj.qty_adj) from stock_adjust saj
inner join stock stm on saj.stm_auto_key = stm.stm_auto_key
inner join parts_master pnm on stm.pnm_auto_key = pnm.pnm_auto_key where SAJ.CHANGE_DATE < MONTHS.DT AND STM.PNM_AUTO_KEY = PNM.PNM_AUTO_KEY group by pnm_auto_key),0) OUTGOING
from MONTHS, PARTS_MASTER PNM)
SELECT
ROWNUM, CALCULATIONS.PNM_KEY PNM_AUTO_KEY, CALCULATIONS.DT COUNT_DATE,CALCULATIONS.INCOMING QTY_RECEIVED, CALCULATIONS.OUTGOING QTY_USED, (CALCULATIONS.INCOMING + CALCULATIONS.OUTGOING) QTY_BALANCE
FROM
CALCULATIONS;Edited by: user574699 on Nov 17, 2008 2:10 AM code formattingI suppose (how can i be sure?) that the queries in question are:
NVL((select sum(stm.qty_rec) from stock stm WHERE STM.REC_DATE < MONTHS.DT AND STM.PNM_AUTO_KEY = PNM.PNM_AUTO_KEY GROUP BY pnm_auto_key),0) INCOMINGand
NVL((select sum(saj.qty_adj) from stock_adjust saj
inner join stock stm on saj.stm_auto_key = stm.stm_auto_key
inner join parts_master pnm on stm.pnm_auto_key = pnm.pnm_auto_key where SAJ.CHANGE_DATE < MONTHS.DT AND STM.PNM_AUTO_KEY = PNM.PNM_AUTO_KEY group by pnm_auto_key),0) OUTGOINGBoth queries have an aggregate function based on the grouping on PNM_AUTO_KEY. Both WHERE clauses also include the = PNM_AUTO_KEY statement. So how can these return more than 1 row?
As I stated I cannot run the subqueries without the rest. The database contains over 200000 PNM_AUTO_KEYS, and I don't know which one is causing the problems.... -
Reports 9i Graphs with more than one query..
Hello,
I am converting my 6i reports to 9i reports. On my graph reports with more than one query, when I invoke the graph wizard it changes the value of the src to the wrong query automatically. When I run my report, I am getting the error REP-0069 Internal Error rwlib-1: REP-6219 Column (Column Name) not in given cursor hierarchy. Although it's a pretty easy fix to go into the graph settings in the property palette and change it back, it is extremely frustrating. Has anyone else ran into this problem and did you find a permanent fix?
Thanks,
LauraHi Laura
One workround would be to create a new query in the Data Model that includes desired fields, and then source
chart to the new group.
FYi, bug2527100 was filed on this issue and is already fixed. The fix would be available in 9i Reports 9.0.2.2 patch. Reports 9.0.2.2 patch is scheduled to be released on Mar 05 2003 (tentative date).
Thanks
The Oracle Reports Team -
Running a BEx report with more than one query in Background
I am having a workbook with 2 queries .This workbook needs to be executed at a particular time every day and then save this file to a application server location .
The file name has to dynamic, as everday a new file has to be created with some date stamp.
Please let me know the steps/ ideas to achieve thisSudhakar,
are you sure that it has to b a workbook ? running queries independently can be done .. am not sure if a workbook can be scheduled to run...
One alternative is to use APD - have the queries run and populate two ODS and then have these ODS in a multiprovider and have one query output for the same - seems to be a very longworkaround...
Another option is to have the queries executed in an ABAP programme and then have the results in an internal table and push both the result sets into an excel sheet ad save it in the application server.
For reading queries in ABAP there is a functionmodule for the same .. something like RSDRI_INFOPROV_READ .. I am not too sure of the name but there is a function module for sure..
Hope it helps..
Arun
Assign points if it helps.. -
Using more than one query to calculate a field
Im trying to calculate a third field through 2 results of 2 queries without success.
The problem simplified is the following. Suppose that query1 returns the value 10 per line and query2 return 20 per line. Then I have the lines:
10 20
10 20
10 20
To do that I put query1 field in a repeating frame and query2 into another one.
What I wanna do is put a third column that make a calc with the 2 columns. Something like
10 20 10/20
10 20 10/20
10 20 10/20
I cant make a join between the tables in queries 1 and 2 so Im looking for a more reasonable way to do this.
Has someone any tips?
nullyou need to do a join, there's no other way you can do it. What about using rownum to join the tables
select a.col1, b.col2, a.col1/b.col2 col3
from
(select col1,rownum r1
from table1) a,
(select col2,rownum r2
from table2) b
where a.r1 = b.r2
I think this would work. If you play with it more maybe you can even make it easier and more efficient
null -
Using more than one Query in Crystal Reports
Dear all,
we want to use two queries an combine them in one crystal report.
How does this work?Sorry my mistake.
It IS possible to join results from 2 different BW queries.
What CR does not support is the join between BW data and relational data.
Still the best practice is to do the join in the database (eg. using an InfoSet)
How many rows do you expect to get from each query?
Regards,
Stratos -
Documents Created Seen in more than one report globally
Hi Experts,
I would like to know whether the documents can be created globally? such that they can be seen in more than one queries in common.
For better understanding my requirement is to know whether the documents can be created in such a way that they can be seen in common in more than one queries so that the business looking at one report should be able to see all the commentary/documents created on that particular Infoprovider. I hope I am clear in my question. Quick response is appreciated as this is an urgent requrement.
Cheers,
Sunitha.Hi,
I know the documents are created on the characterisitcs combinations, but my requirement is to get the documents that are created on more than one query. That is I should be able to see the documents in my query created on all the queries defined on the Infoprovider.
For that reason I am checking the document properties in RSA! to see whether the documetns are created on the query level or on the Infoprovider level.
As you told the documents are created on the characterisitcs level but I am not able to see the docuemtns icon ordocuments on the characterisitics in the BEX .
Regards.
Sunitha -
How to add more than 1 query in workbook
Hi All,
How do we add More than 1 query in workbook, Can any one provide me steps.
Thanks in Advance.Hi,
If you are using BI7 Bex analyazer, please check whether the following explanation helps you:
"Steps of creating workbook and to insert more than one query in a workbook.
When you run a query and it opens in Bex Analyzer you can click the save button and pick "Save as Workbook".
Once you save it as a workbook Click on the "Design Mode" button in the Bex toolbar (looks like an A).
Click in the sheet where you want the new query to go, click the "Analysis Grid" button. It will add the analysis grid to your new sheet.
Right click on the Analysis grid and go to properties.
Click on button to change data provider and select the query you want to attach.
Exit design mode and you should be all set. "
Thanks & Regards,
Sapna -
How do you have more than one parameterized Query to display "All"?
hi,
I am using:
Jdeveloper 9.0.5.2
Oracle Database 9.2.0.1
Toplink
Struts
I have been able to create a parameterized query to display an html read only table.
I populated a dropdown list with values from the database
and the values I select will be the parameters to my read only table.
The drop down list is on the same page as the read only table.
I have all this working but I also need to hard code an option in the Drop down to "All"
to represent all values of this parameter.
I was able to trick the jsp page using two read only tables
and displaying the one with the parameterized query when a parameter other than "All" was chosen
and then display the other only when "All" was chosen.
This does not seem the best way to do it.
What if I had more than one parameter and I wanted to show "All"
the values of one and a certain values for another.
I would then need at least 4 read only tables.
How do I accomplish this in an easier way?
Thanks in advance.I am not exactly sure what you are asking... Are you having trouble with TopLink, or another part of your application?
Peter Krogh -
How to find out which sub query returns more than one row
Hi all,
Can any one give me clue ,how to find out which sub query returns more than one row in the following query .
/* Formatted on 2011/05/17 19:22 (Formatter Plus v4.8.8) */
SELECT a.*, ROWNUM AS rnm
FROM (SELECT DISTINCT '1' AS "Page View", ou.org_unit_name AS "Org",
prxm.mbr_idntfr AS "Beneficiary ID",
md.last_name
|| ', '
|| md.first_name AS "Beneficiary Name",
pci.idntfr AS "Tracking No.",
TO_CHAR (TRUNC (req.pa_rqst_date),
'MM/dd/yyyy'
) AS "Request Date",
sts.status_name AS "Status",
req.pa_rqst_sid AS "Request #",
prxm.mbr_sid AS "Mbr_sid",
TO_CHAR
(TRUNC (req.pa_revision_date),
'MM/dd/yyyy'
) AS "Last Updated",
TO_CHAR (psd.TO_DATE, 'MM/dd/yyyy') AS "TO_DATE",
prxpl.prvdr_lctn_iid AS "PRVDR_LCTN_IID",
pd.prvdr_sid AS "PRVDR_SID", 'Y' AS "State View",
DECODE
((SELECT DISTINCT pd.national_prvdr_idntfr
FROM pa_request_x_provider_location prxplo
WHERE prxplo.pa_rqst_sid =
req.pa_rqst_sid
AND prxplo.oprtnl_flag = 'A'
AND prxplo.pa_prvdr_type_lkpcd = 'RR'),
0, (SELECT prxplo.prvdr_lctn_idntfr
FROM pa_request_x_provider_location prxplo
WHERE prxplo.pa_rqst_sid = req.pa_rqst_sid
AND prxplo.oprtnl_flag = 'A'
AND prxplo.pa_prvdr_type_lkpcd = 'RR'),
NULL, (SELECT prxplo.prvdr_lctn_idntfr
FROM pa_request_x_provider_location prxplo
WHERE prxplo.pa_rqst_sid = req.pa_rqst_sid
AND prxplo.oprtnl_flag = 'A'
AND prxplo.pa_prvdr_type_lkpcd = 'RR'),
(SELECT DISTINCT pd.national_prvdr_idntfr
FROM pa_request_x_provider_location prxplo
WHERE prxplo.pa_rqst_sid =
req.pa_rqst_sid
AND prxplo.oprtnl_flag = 'A'
AND prxplo.pa_prvdr_type_lkpcd = 'RR')
) AS "NPI/ID",
DECODE
((SELECT pd.org_bsns_name
FROM pa_request_x_provider_location prxplo
WHERE prxplo.pa_rqst_sid = req.pa_rqst_sid
AND prxplo.oprtnl_flag = 'A'
AND prxplo.pa_prvdr_type_lkpcd = 'RR'),
NULL, (SELECT pd.last_name
|| ', '
|| pd.first_name
|| ' '
|| pd.middle_name
FROM pa_request_x_provider_location prxplo
WHERE prxplo.pa_rqst_sid = req.pa_rqst_sid
AND prxplo.oprtnl_flag = 'A'
AND prxplo.pa_prvdr_type_lkpcd = 'RR'),
(SELECT pd.org_bsns_name
FROM pa_request_x_provider_location prxplo
WHERE prxplo.pa_rqst_sid = req.pa_rqst_sid
AND prxplo.oprtnl_flag = 'A'
AND prxplo.pa_prvdr_type_lkpcd = 'RR')
) AS "Prvdr Name",
TO_CHAR (psd.from_date,
'MM/dd/yyyy'
) AS "Srvc From Date",
TO_CHAR (req.validity_start_date,
'MM/DD/YYYY'
) AS "Due Date",
(fn_get_busniess_days (TRUNC (req.validity_start_date))
) AS "Days<br>Left",
req.pa_mode_type_lkpcd AS "Source",
TO_CHAR (TRUNC (wmdtl.rtng_date),
'MM/dd/yyyy'
) AS "Assigned On",
NVL (wmdtl.assigned_to_user_name,
'Not Assigned'
) AS "Assigned To",
req.org_unit_sid AS "OrgUnitSid",
TO_CHAR
(wmdtl.modified_date,
'MM/dd/yyyy hh24:mi:ss'
) AS "WTRD_MODIFIED_DATE",
TO_CHAR (wmdtl.rtng_date,
'MM/dd/yyyy'
) AS "WTRD_RTNG_DATE",
req.status_cid AS "PA_STATUS_CID",
TO_CHAR (req.modified_date,
'MM/dd/yyyy'
) AS "PA_REQ_MODIFIED_DATE",
prs.state_pa_srvc_type_code
AS "STATE_PA_SRVC_TYPE_CODE",
wmdtl.wm_pa_task_rtng_dtl_sid
AS "WM_TASK_RTNG_DTL_SID",
wmdtl.assigned_to_user_acct_sid
AS "WTRD_Assigned_to_user_acct_sid",
(fn_get_busniess_days (TRUNC (req.validity_start_date))
) AS "Days<br>LeftSort",
wmdtl.assigned_to_org_unit_sid
AS "WTRD_Assigned_to_OrgUntSid",
DECODE
((SELECT COUNT (*)
FROM pa_request_status prs
WHERE prs.pa_rqst_sid = req.pa_rqst_sid
AND prs.status_cid = 5
AND prs.oprtnl_flag = 'I'),
0, 'N',
'Y'
) AS "SHOW_UTILIZATION"
FROM pa_request req,
pa_certification_identifier pci,
status sts,
pa_request_x_member prxm,
wm_pa_task_routing_detail wmdtl,
pa_service_date psd,
org_unit ou,
pa_request_service prs,
pa_request_x_provider_location prxpl,
provider_location pl,
provider_detail pd,
provider p,
mbr_dmgrphc md
WHERE req.oprtnl_flag = 'A'
AND req.status_cid NOT IN
(20, 30, 70, 25, 80, 96, 85, 5, 97, 98, 101)
AND req.org_unit_sid IN
(3057, 3142, 3058, 3143, 3059, 3144, 3060, 3145,
3061, 3146, 3062, 3147, 3063, 3148, 3064, 3149,
3065, 3150, 3066, 3151, 3067, 3152, 3068, 3153,
3069, 3154, 3070, 3155, 3071, 3156, 3072, 3157,
3073, 3158, 3074, 3159, 3075, 3160, 3076, 3161,
3077, 3162, 3078, 3163, 3079, 3164, 3080, 3165,
3081, 3166, 3082, 3167, 3083, 3168, 3084, 3169,
3085, 3170, 3086, 3171, 3087, 3172, 3088, 3173,
3089, 3174, 3090, 3175, 3091, 3176, 3092, 3177,
3093, 3178, 3094, 3179, 3095, 3180, 3096, 3181,
3097, 3182, 3098, 3183, 3099, 3184, 3100, 3185,
3101, 3186, 3102, 3187, 3103, 3003, 75000104,
75000108, 2006, 75000103, 75000102, 75000113,
75000111, 75000109, 2001, 2009, 75000105,
75000107, 2004, 2010, 2013, 2014, 2005, 2011,
75000112, 2002, 1001, 2012, 75000106, 2007,
75000101, 2003, 75000110, 2008, 3001, 3002, 3019,
3104, 3020, 3105, 3021, 3106, 3022, 3107, 3023,
3108, 3024, 3109, 3025, 3110, 3026, 3111, 3027,
3112, 3028, 3113, 3029, 3114, 3030, 3115, 3031,
3116, 3032, 3117, 3033, 3118, 3034, 3119, 3035,
3120, 3036, 3121, 3037, 3122, 3038, 3123, 3039,
3124, 3040, 3125, 3041, 3126, 3042, 3127, 3043,
3128, 3044, 3129, 3045, 3130, 3046, 3131, 3047,
3132, 3048, 3133, 3049, 3134, 3050, 3135, 3051,
3136, 3052, 3137, 3053, 3138, 3054, 3139, 3055,
3140, 3056, 3141)
AND req.pa_rqst_sid = prs.pa_rqst_sid
AND prs.oprtnl_flag = 'A'
AND prs.pa_rqst_srvc_sid = psd.pa_rqst_srvc_sid
AND psd.oprtnl_flag = 'A'
AND req.pa_rqst_sid = pci.pa_rqst_sid
AND pci.oprtnl_flag = 'A'
AND req.pa_rqst_sid = prxm.pa_rqst_sid
AND prxm.oprtnl_flag = 'A'
AND md.oprtnl_flag = 'A'
AND md.status_cid = 2
AND TRUNC (SYSDATE) BETWEEN md.from_date AND md.TO_DATE
AND prxm.mbr_sid = md.mbr_sid
AND ou.org_unit_sid = req.org_unit_sid
AND ou.oprtnl_flag = 'A'
AND req.pa_rqst_sid = prxpl.pa_rqst_sid
AND prxm.pa_rqst_sid = prxpl.pa_rqst_sid
AND pci.pa_rqst_sid = prxm.pa_rqst_sid
AND pci.pa_rqst_sid = wmdtl.subsystem_task_sid
AND pci.pa_rqst_sid = prxpl.pa_rqst_sid
AND prxpl.pa_prvdr_type_lkpcd = 'RR'
AND prxpl.oprtnl_flag = 'A'
AND req.status_cid = sts.status_cid
AND sts.status_type_cid = 3
AND sts.oprtnl_flag = 'A'
AND prxpl.prvdr_lctn_iid = pl.prvdr_lctn_iid
AND p.prvdr_sid = pd.prvdr_sid
AND p.prvdr_sid = pl.prvdr_sid
AND pd.oprtnl_flag = 'A'
AND pd.status_cid = 2
AND TRUNC (SYSDATE) BETWEEN pd.from_date AND pd.TO_DATE
AND wmdtl.subsystem_task_sid = req.pa_rqst_sid
AND wmdtl.subsystem_lkpcd = 'PA'
AND wmdtl.oprtnl_flag = 'A'
AND req.pa_rqst_date > (SYSDATE - 365)
ORDER BY TO_DATE ("Request Date", 'MM/dd/yyyy hh24:mi:ss') DESC,
"Beneficiary Name" ASC) a
WHERE ROWNUM < 102;regards,
P Prakash
Edited by: BluShadow on 17-May-2011 15:01
added {noformat}{noformat} tags around the code833560 wrote:
Can any one give me clue ,how to find out which sub query returns more than one row in the following query .This is why smaller, simpler queries are easier to work with than huge ones - when something like this goes wrong smaller queries are much eaiser to debug. Unfortunately using smaller, easier-to-work with queries is not always an option
Ganesh is right - you will have to dissect the big query bit by bit until you find the offending subquery. If there is another way I would like to find out about it too.
The easiest way to do this is probably to use block comments to isolate parts of the query bit by bit until you find the offending part. If you carefully examine the subqueries you might be able to figure out which one is returning multiple rows without commenting everything
Good luck! -
Can we query more than one class in a call to .tmib
Hi,
i am creating a utility to monitor the applications at run time using mib.any
body have an idea if we can query more than one class in one call to .tmib.
thanks
roopeshThat would be an interesting enhancement, perhaps using Embedded FML to
pack multiple MIB requests into one buffer.
Product Management makes all decisions about major enhancements, and it
is based on customer need, so that's where the requests should go.
Scott Orshan
roopesh wrote:
>
yes.
i am trying to devlop a utility which can monitor
applications at runtime.i wanted to make as less the
no of calls to tmib as possible but one class does
not give all the information so i need to query
more than one.
anyways thanks for the reply.
"MS" <[email protected]> wrote:
Hi,
Are you trying to write a Tuxedo app health-check monitor utility.
A tuxedo client can make different calls to .TMIB service for different
classes.
I don't think we can query more than one class in a single call.
Are you looking for something else??/
HTH
regards
MS -
Hi
Question:
In a hierarchical query, is it possible for a row to have more than one immediate ancestor?
Answer:
No
No? Surely, it's yes?
Thanks,
JasonAs Frank pointed out already hierarhical most often means a tree (data structure) to deal with.
There must usually be just one boss (the root) in which case the answer is no.
Something to read: http://en.wikipedia.org/wiki/Tree_(data_structure)
You can find out Solomon spoke about a generalization therein.
Related to forum troubles:
If I login first thing after reaching forum, the behaviour is rather consistent - I'm allowed to post answers, otherwise ...
Regards
Etbin -
Query returns more than one row
hi all,
I am getting this error msg, single row query returns more than one row after i added this
(select FUNC_GET_COUNTY_NAME(CCNTY1)
FROM proposal ) CName,
and the error is righ here AND K.CONTID = Q.CONTID
can someone help me what to do to take care of this error msg.
SELECT DISTINCT Decode(trim(Min(J.ROUTE)),null,'Un known', Min(J.ROUTE)) rt, v.vendor vd, r.addrnum ad, v.vnamel vn,
TRIM (r.aaddr1 || decode(trim(r.aaddr2),null,'',' - ') || r.aaddr2) ad1,
p.billto, r.acity cy, r.astate st,r.azipcode zp,
(select FUNC_GET_COUNTY_NAME(CCNTY1)
FROM proposal ) CName,
substr(decode(trim(r.vasst1),null, 'N/A','000/000-0000?','N/A','000/000-0000','N/A', r.vasst1),1,12) fx,
substr(decode(trim(r.aphone),null, 'N/A','000/000-0000?','N/A', r.aphone),1,12)ph,
substr(l.letting,3,2)||'-'|| substr(l.letting,5,2)||'-'|| substr(l.letting,1,2)lt,
l.CALL cl, l.lcontid cid, q.cprojnum sp, q.cfacssup ds,q.ccnty1 cty
FROM VENDOR V, VENDADDR R, LETPROP L, PLANHOLD P,PROPOSAL Q, PROJECT J,PROPPROJ K
WHERE V.VENDOR = R.VENDOR
AND K.CONTID = Q.CONTID
AND K.PCN = J.PCN
AND L.LCONTID = K.CONTID
and l.lcontid = '060143'
AND P.VENDOR = V. VENDOR
AND L.LETTING = P.LETTING
AND L.CALL = P.CALL
AND R.ADDRNUM = P.BILLTO
group by V.VENDOR,R.ADDRNUM, V.VNAMEL, R.AADDR1, R.AADDR2,P.BILLTO,R.ACITY, R.ASTATE,
R.AZIPCODE,R.VASST1,R.APHONE,L.LETTING, L.CALL,L.LCONTID,Q.CPROJNUM,Q.CFACSSUP,Q.CCNTY1 ,CCNTY1
ORDER BY Q.CPROJNUM DESC(select FUNC_GET_COUNTY_NAME(CCNTY1)
FROM proposal ) CName,You have no where clause.
But you might not need a select statement at all. Instead of a scalar subquery, can you just call the function:
,FUNC_GET_COUNTY_NAME(CCNTY1)
Maybe you are looking for
-
Hi there, I want to buy the new mac pro, I am a after effect user, need to know which graphic card to select, there is two option: 1-NVIDIA GeForce GT 120 with 512MB four of them, or 2-ATI Radeon HD 4870 with 512MB of GDDR5 memory single one. Thanks
-
Hi, How can we update the mailing address when the user updates the permanent address in ESS. what coding changes should I make to accomplish this?? Thanks, Ravi
-
Adobe Flash CC Wacom pen issues.
Hi, I have a Lenovo Thinkpad Yoga Ultrabook that has tablet functionality via Wacom. I have had no issue drawing within the Photoshop that I have had for months now, but when I just installed Flash CC, the tablet will not let me use the tablet p
-
"Unexpected error occurred" message on Develop window
I get a message "unexpected error occurred" when I go to the "Develop" screen. I thought I had a bad card, so I used my second card to take a photo then import it. The same error message appeared on the "Develop" screen. I shut my computer down and r
-
Hi experts, I have a query to get data monthwise for a particular column value from this table SQL> desc doctor_patient_diagnosis_tab Name Null? Type DOCTOR_CODE VARCHAR2(8) VISIT_ID NUMBER(12) DIAGNOSIS VARCHAR2(2000) EMP_NO NUMBER(6) TRANSACTION_DA