Combined Queries in Crystal
I need to create a report that answers multiple questions:
Step 1: List markets where product is distributed by CompanyA
Step 2: List top 250 markets based on overall product sales across all companies
I then wish to create a report which contains a union of markets in Steps 1 and 2. Is this possible, and if so how?
All help is appreciated.
Yes it can be done you need to use a command object in Crystal to create you union
Select , field1, field2, field3 etc..
from tablea where company = 'Compnay A'
Union All
Select Top 250 field 1, field 2, field 3, from table A
not sure which database you are using but this could wourk for you with some modifications
Similar Messages
-
Hi
I have a query regarding combined queries. I am using BO XI R2 Deski. When i create combined queries, i have observed that BO is processing theses queries in the order from right to left i.e it is executing the last two queries first and then then the next right most and so on...
For example if i want to calculate (A Union B) minus (C Intersection D). I am unable to frame this query. When i see the SQL the order is different. Please advise how can i set this preference like first calculate ( A Union B) and ( C Intersection D) and then subtract bothe the result sets.
Thanks,
RaveendraHi Raveendra,
I Tried and able to perform operation Separately like (A union B) and (C Intersection D) and also succeed to put the result side by side but not able to succeed in finding the Minus of the results. Because as you said DESKI perform operations from left to right for each combined query.
I performed union and Intersection operations separately by using 2 data providers.
I used demo universe eFashion for union and intersection.
The Steps followed are as follows:
1. Select eFashion Take objects Year, Store Name, Sales revenue
2. Click Combine Queries and Take same objects because Union operation requires both queries Must have have same objects.
3. Union these 2 Queries Run The Report you will get the Union of 2 Queries. (A Union B)
4.Select New Data Provider (Data New Data Provider)
5. Select Universe you want Take objects in Query C, I Took Same objects with different condition like (Year Inlist(2002,2003))
6. Query D with Condition (Year Equalto(2002)) you will get Results (Query C intersection D). Results that contain only Year Equal to 2002.
Now you have objects from 2 data providers together, Drag and Drop Objects from 2 data providers and put them at different places on Report now you can compare the results.
Here we canu2019t Minus the results because when you click Edit Data Provider, DESKI will Prompt you to select the data provider to Edit and hence we can perform edit operation on One data provider one at a time and not together.
I Hope this is useful.
Thanksu2026
Pratik -
Re : How to retrieve Combined Queries (RE Bean SDK) -XIR2 SP2
Hello all,
Hope all is well. I am kinda stuck here ...trying to retrieve Combined Queries from WebI Document. I just have 1 report , 1 DP, 1 combined query(union) with 2 nodes coming off of universe ( __NO__ Custom SQL).
Could someone give me sample code as how to retrieve this...I was able get DP and then Query container...then kinda got lost.How do I retrieve individual query and then get more information of an individual query like DataSourceObject.
QueryContainer qCont = dataProv.getCombinedQueries();
int operator = qCont ();
// getQueryContainerOperator
// then how doi I proceed further to retrieve individual query.
Thanks in advance,
Sam.I don't have any code for retrieving the combined queries, however I have some code for retrieving the SQL from a dataprovider- it might give you an idea of how to get the combined query
oInfoObject = (IInfoObject) oInfoObjects.get(0);
// Initialize the Report Engine
ReportEngines oReportEngines = (ReportEngines) oEnterpriseSession.getService("ReportEngines");
ReportEngine oReportEngine = (ReportEngine) oReportEngines.getService(ReportEngines.ReportEngineType.WI_REPORT_ENGINE);
// Openning the document
DocumentInstance oDocumentInstance = oReportEngine.openDocument(oInfoObject.getID());
DataProvider oDataProvider = null;
SQLDataProvider oSQLDataProvider = null;
SQLContainer oSQLContainer_root = null;
SQLNode oSQLNode = null;
SQLSelectStatement oSQLSelectStatement = null;
String sqlStatement = null;
out.print("<TABLE BORDER=1>");
for (int i=0; i<oDocumentInstance.getDataProviders().getCount(); i++) {
oDataProvider = oDocumentInstance.getDataProviders().getItem(i);
out.print("<TR><TD COLSPAN=2 BGCOLOR=KHAKI>Data Provider Name: " + oDataProvider.getName() + "</TD></TR>");
oSQLDataProvider = (SQLDataProvider) oDataProvider;
oSQLContainer_root = oSQLDataProvider.getSQLContainer();
if (oSQLContainer_root != null) {
for (int j=0; j<oSQLContainer_root.getChildCount(); j++) {
oSQLNode = (SQLNode) oSQLContainer_root.getChildAt(j);
oSQLSelectStatement = (SQLSelectStatement) oSQLNode;
sqlStatement = oSQLSelectStatement.getSQL();
out.print("<TR><TD>" + (j+1) + "</TD><TD>" + sqlStatement + "</TD></TR>");
out.print("</TABLE>");
oDocumentInstance.closeDocument();
Shawn -
Extracting SQL Queries from Crystal Reports
I am trying to find a way or a utility to be able extract SQL queries from Crystal reports into a text file for documentation purposes. These queries are not in the repository, they were entered into each of the reports when the reports were being built and I can't find a way to extract them. Any ideas/suggestions?
Hello,
CR doesn't have the ability, and I don't recall if this has ever been asked previously. Great suggestion for the Idea Place tab in the up right corner of this page.
If you find a developer it's quite simple to get:
// log onto the server and then get the SQL.
rptClientDoc.DatabaseController.LogonEx("van-w-13-dwilli", "xtreme", "sa", "pw");
GroupPath gp = new GroupPath();
string tmp = String.Empty;
rptClientDoc.RowsetController.GetSQLStatement(gp, out tmp);
// show the SQL but easy enough to save the SQL text to a file.
MessageBox.Show(tmp, "Data Source Set and SQL Statement", MessageBoxButtons.OK, MessageBoxIcon.Information);
Of course you need to open the report first, lots of samples on how to...
Thank you
Don -
How to convert Crystal 8.5 Reports that use queries to Crystal XI reports
We were using the following:
Crystal Reports version 8.5
Crystal SQL Designer 8.0.0.0
CRW32 8.0.0.8
We have now migrated to Crystal XI.
Most of our reports use queries created in the Crystal SQL Designer.
This is the message we receive when I open a report in Crystal XI that uses a query:
Reports based on Crystal Dictionary or Crystal Query are no longer supported. Please change these reports to use Business Views.
How do I convert a Crystal report that uses a query to use a Business View?
Thanks,
Mac BradleyHi Mac,
There is a Database Migration Wizard that was available but the link is broken now. I'm tracking down where we can get it from. Check your CD, it may be on the disk.
Currently it's only shipped with our Enterprise Product because it converts Queries to Business Views and Views to Command Objects.
If you have Enterprise Available you should have a link off the Start Menu.
Back up your reports first....
Thank you
Don -
Perfromance problem when using MDX queries in Crystal
Dear All,
I am using Crystal reports together with an MDX query from the BI system. When I run the report in the Web then it takes 60 seconds to get results. When I use this query through MDX into a crystal report the query runs very long and in most cases ends up with the message :
Database connection error: 'No more storage space available for extending an internal table"
It looks like there is something going on with the definition of the query on the database when using the MDX drivers. Is There a way to solve this ?
I hear rumours that upgrading to EHP 1 Stack 3 solves performance problems arround MDX queries, but I cannot find prove anywhere. Without proof or an official statement I cannot advise the Customer.
Please Help,
MarcelHi Ingo,
This feature I did not use yet ;-).
The MDX looks like :
SELECT {[Measures].[4B78DNZSKX3JQCWJKSS9S421C]} ON COLUMNS, NON EMPTY CROSSJOIN(EXCEPT([Z0TERR2__Z0SALEM].MEMBERS, {[Z0TERR2__Z0SALEM].[All]}), CROSSJOIN(EXCEPT([Z0CUST].MEMBERS, {[Z0CUST].[All]}), CROSSJOIN(EXCEPT([0DOC_NUMBER].MEMBERS, {[0DOC_NUMBER].[All]}), CROSSJOIN(EXCEPT([Z0TERR2].MEMBERS, {[Z0TERR2].[All]}), CROSSJOIN(EXCEPT([Z0ORDITEM__Z0CNVMAN].MEMBERS, {[Z0ORDITEM__Z0CNVMAN].[All]}), CROSSJOIN(EXCEPT([Z0CICL__Z0IMLG18].MEMBERS, {[Z0CICL__Z0IMLG18].[All]}), CROSSJOIN(EXCEPT([Z0DUMOVEN__Z0MOVDECR].MEMBERS, {[Z0DUMOVEN__Z0MOVDECR].[All]}), CROSSJOIN(EXCEPT([Z0BUSTRW].MEMBERS, {[Z0BUSTRW].[All]}), CROSSJOIN(EXCEPT([Z0BUSTSTW].MEMBERS, {[Z0BUSTSTW].[All]}), EXCEPT([Z0IBUSTRW].MEMBERS, {[Z0IBUSTRW].[All]})))))))))) DIMENSION PROPERTIES [Z0CUST].[20CITY], [Z0CUST].[2Z0CUST], [0DOC_NUMBER].[2Z0SALCRON] ON ROWS FROM [Z0SD_M04/Z0SD_M04_Q0021] SAP VARIABLES [0P_COAR] INCLUDING [0CO_AREA].[3100], [0P_COCD] INCLUDING [0COMP_CODE].[3110], [0GMFROM] INCLUDING [0FISCPER].[Y42009002], [0GMTO] INCLUDING [0FISCPER].[Y42009002], [!V000005] INCLUDING [Z0REJECFP].[Y42009002], [!V000006] INCLUDING [Z0REJECFP].[Y42009002], [ZP_CSDAT] INCLUDING [0CALDAY].[20090311]
Running the query in MDXTEST transaction with Flattening gives data in 10 minutes.
Running the query in multidimensional mode gives the same result.
How to proceed ??
Kind regards
Marcel -
Using 2 Universe Queries in Crystal Reports
Hi,
I am trying to use Universe queries in a Crystal report.
I want to use 2 Universe queries and then link the common dimensions between them using the Database Expert, is these similar to merge dimensions in Web Intelligence?. Is it possible? Or how can I do to merge objects that came from 2 Universe queries?
My problem is when I tried to execute the report, Crystal Reports get stuck.
Any ideas would be helpful.
Thanks in advance,
DianaMoved to Universe Design forum
-
Using Queries in Crystal Reports
Hi all,
I know that creating a report in Crystal Reports is essentially creating a query, but I wanted to know if anyone knew of any ways to develop queries using the Query Generator in B1 and then use that query for a report in Crystal, possibly referencing or copying it?
Also, if anyone is familiar with union queries or sub queries, could you explain their more common uses?
Thanks for the help,
ToddHi Todd Linscott,
We have using this type of query in SAP in Query Generator
SELECT T0.[DocNum] as 'Invoice No.', T0.[DOCDATE] as 'Invoice Date', T0.[CardName] as 'Customer Name' ,
FROM OINV WHERE T0.[DOCDATE] >=[%0] AND T0.[DOCDATE]<=[%1]
For Crystal Report
SELECT T0.[DocNum] as 'Invoice No.', T0.[DOCDATE] as 'Invoice Date', T0.[CardName] as 'Customer Name' ,
FROM OINV WHERE T0.[DOCDATE >= {?FromDate} AND T0.[DOCDATE ]< = {?ToDate}
Pass Parameter in Crystal Report in thats type of syntax
When you have to add command Right side Parameter button will appear
For Layout pass
{?@Dockey}
This is must.
Thanks,
Srujal Patel -
Combine queries dynamically (union?)
Hello Friends
I got very tuff problem, plz help me out.
I want to combine some some query's using "UNION" oprator of SQL Server. Supposed we name it as SET 1.
Again I have to make UNION of output of SET1 with n number of SET 1 like query set.
In short dynamically I have to create differnt UNION OF SOME QUERIES & AGAIN MAKE CHAIN of such queries.
If any one have solution for it . Plz replay immdtly.Thanx For Rplay
Actually I wan to get empids like id from multiple database. & Id Should not be repeated. I have used UNION option. But Dynamically database can be more or less if use more union query become so big. And StringBuffer Become so big. For execution it take time.
So I got one solution for it. I am fetching id from database & storing it in TreeSet Object.
Its very good idea to store record in TreeSet bcoz no Id get repeated.
I got unquie Id & futher I can process. It took very few minutes. If I use UNION it took too much time.
Thanx For ur response
Dinesh -
Combine Queries in one workbook
Hi guys,
I am looking for a way to combine multiple queries in one workbook.
For example: If I set a filter in one query to the month November, the same filter (e.g. November) should apply to all other queries (which are on another worksheet or on the same worksheet).
How can I do this?
Many thanks,
SabinHi Sabine,
You have two options:
1. the easy one is to use same variables in the refresh screen for all queries in the same workbook; if you do this, then use the "refresh all queries" option, you will get the same restrictions applying to all queries in the workbook simultaneously.
2. the more difficult way to do this is to use a lot of Visual Basic. Using Visual Basic, you can "read" the filter value set on a particular query, then "apply" that filter value to every other query in the workbook. OR, you can use the "Copy Filter Value" function. I prefer the latter for a number of reasons.
From your earlier notes, I assume you want to use option 2. To help you further, it would be useful to know what version of BW you are using, and how your users typically refresh queries (i.e., with a button in the workbook, or using the Business Explorer toolbar?).
It would also be helpful to know your level of comfort with VBA in Excel.
Here are some notes on the "Copy Filter Value" function:
Function SAPBEXcopyFilterValue(fromCell As Range, Optional atCell As Range) As Integer
Return value of zero indicates that no errors were encountered. Otherwise, function returns number of errors encountered.
If atCell is not specified, the active cell is used to determine which characteristic to return information for. If the active cell is not part of a query definition, then function returns an error state.
Characteristics (fromCell and atCell) must have same technical name; for example, cannot copy filters for Ship-to (0SHIP_TO) in Sales cube to Ship-to (YCOCUSSH) in a Shipments cube
Queries (copying from and to) must be in same Excel Workbook.
Sub CopyFilterOnce()
Dim filterRng1 As Range, filterRng2 As Range
'in this example, we are copying filters from query on sheet
'with code name Query1 to query on sheet with code name Query2
Set filterRng1 = Query1.Range("F10")
Set filterRng2 = Query2.Range("D13")
retVal = Run("SAPBEX.xla!SAPBEXcopyFilterValue", filterRng1, filterRng2
End Sub
Hope this helps.
- Pete -
Chart from data with two bex queries in crystal reports 4.0 for enterprise
Hi,
I'm fairly new to crystal reports and I have a requirement to show the data from 2 bex queries in one single cross table. is it possible ?
after getting it i should be able to create chart with that data
Eg: my table would be something like below :
calendar day
Input : 12 34 50 60
Output : 09 23 19 57
Input Data will be coming from one bex query
Out put data comes from another bex query
is it possible to merge the dimensions and then work on ????
any help is much appreciatedHi Tanveer,
The only way you can add two BEx queries in a report is using a Subreport. The First BEx query goes in the Main Report and the second one goes in the Subreport.
You'll not be able to add the dimensions and measures from these two BEx queries in a Crosstab anyway. Perhaps, you could create a mock crosstab and send values (all rows) from the Main Report to the Subreport as a string however, I can see that it's going to get complex.
-Abhilash -
Hi,
Is there a code when we can combine the following three queries in one and imprrove performance
DATA: XAUFPL LIKE AFKO-AUFPL,
XARBPL LIKE CRHD-ARBPL,
XARBID LIKE V_QAPO-ARBID.
SELECT SINGLE AUFPL FROM AFKO INTO XAUFPL WHERE AUFNR = '007200000059'.
SELECT SINGLE ARBID FROM V_QAPO INTO XARBID WHERE AUFPL = XAUFPL AND VORNR = '0020'.
SELECT SINGLE ARBPL FROM CRHD INTO XARBPL WHERE OBJID = XARBID.
WRITE: / XARBPL.you can try this:
SELECT SINGLE CRHD~ARBPL
FROM AFKO
INNER JOIN V_QAPO ON V_QAPOAUFPL = AFKOAUFPL
INNER JOIN CRHD ON CRHDOBJID = V_QAPOARBID
INTO XARBPL
WHERE AFKO~AUFNR = '007200000059'
AND V_QAPO~VORNR = '0020'.
WRITE: / XARBPL.
Hope it will be helpful
Thanks -
Combined Queries in BO 4.0 WebI
Hi,
I am creating a combined query in the report query panel. Query 1 has combined query 1 and combined query 2 with UNION Operator.
The combined query 1 has one dimension from Table1.Col1. The combined query 2 has one dimension from Table2.Col1.
When clicking the view script i am expecting the query to be as
select Table1.Col1
from Table1
union
select Table2.Col1
from Table2
But the webi is returning the query like below.
select Table1.Col1
from Table1, Table2
where Table1.Col1 = Table2.Col1
Union
select Table2.Col1
from Table1, Table2
where Table1.Col1 = Table2.Col1
Can anyone please suggest why it is joining both the tables? Any settings has to be done in the CMC to avoid this join?
when creating a union query in the universe with these tables no joins are formed.
Please help me on this. Thanks in advance.This is really very strenge could you please check the parameter value in the file<Parameter
COMBINED_WITH_SYNCHRO
it should be yes.
Also, please check if this the universe spacific problem or happening with all the universe. Did you check with taking other dimention value in the combind query. -
Escaping sql queries in crystal
Hi,
Im trying to create a command object from a sql that normally returns data in toad/sqlplus but it fails in crystal becos it is not escapaed properly
Connect to Oracle 10G database
Is there any ready reckoner for "escape"/quotes while creating command object
Any pointers /help appreciatedPlease re-post if this is still an issue to the Data Connectivity - Crystal Reports Forum or purchase a case and have a dedicated support engineer work with you directly
-
Join/from/where/ combine queries 3
hello my query below is not working for my cf application can
you help?
thanks
this is my previous question so i tried to do it my self.
tcase_req.tcase_req_id is added
tcase.case_id=tcase_req.case_id :note that this is not part of the
inner join in the from clause. it does not depend on the rest of
the inner join.
the reaon for this is that i need to get
WHERE tcase_req.case_req_typ_cd = cwc and
tcase_req.case_req_typ_cd = cwnc
here is the original question
Hello ,
I need help again on the inner join/and conditions in the
where clause
I have these 2 tables tcase and tcase_req where there common
field Is the case_id.
tcase is the parent table and the tcase_req is the child
table.
(1)I wanted to add this to the from clause using the inner
join table . what do I do and where do I put it
(2)I then need to put a condition in the where clause to
replace
WHERE TCASE.CASE_NBR Like '%HPOZ%'
AND TCASE.CASE_NBR = 'DIR-2004-4269-HPOZ-CCMP'
by
WHERE TCASE.CASE_NBR Like '%CWC%' or TCASE.CASE _NBR Like
'%CWNC%'
AND TCASE.CASE_NBR = 'DIR-2004-4269-CWC'
Or TCASE.CASE_NBR = 'DIR-2004-4269-CWNC'
is this efficient??
thanks
SELECT TLA_PROP.PIN,
TLA_PROP.ASSR_PRCL_NBR,
TCASE.CASE_NBR,
TLA_PROP.STR_NBR,
TLA_PROP.STR_NBR_RNG_END,
TLA_PROP.STR_FRAC_NBR,
Tref_plan_area.plan_area_desc,
TLA_PROP.STR_FRAC_NBR_RNG_END,
TLA_PROP.STR_DIR_CD,
TLA_PROP.STR_NM,
TLA_PROP.STR_SFX_CD,
TLA_PROP.STR_SFX_DIR_CD,
TLA_PROP.STR_UNIT_TYP_CD,
TLA_PROP.UNIT_NBR,
TLA_PROP.UNIT_NBR_RNG_END,
TLA_PROP.ZIP_CD,
TLA_PROP.ZIP_CD_SFX,
TLA_PROP.CNCL_DIST_NBR,
TLA_PROP.PLAN_AREA_NBR,
TLA_PROP.ZONE_REG_CD,
TAPLC.PROJ_DESC_TXT,
TCASE.CASE_ID,
TCASE.CASE_NBR,
taplc.aplc_id,
tcase_req.case_req_typ_cd
FROM TLA_PROP INNER JOIN tref_plan_area ON
tla_prop.plan_area_nbr = tref_plan_area.plan_area_NBR INNER JOIN
TLOC ON TLA_PROP.PROP_ID = TLOC.LOC_ID INNER JOIN TAPLC ON
TLOC.APLC_ID = TAPLC.APLC_ID INNER JOIN TCASE ON TAPLC.APLC_ID =
TCASE.APLC_ID
WHERE TCASE.CASE_NBR Like '%CWC%'and
tcase.case_id=tcase_req.case_id
(3)To a tcase_req
Suffix_id are equal to = cwc and cwnc ( in the tcase_req
table)(Suffix_id is the field that cintains the suffix cwc and cwnc
for the tcase_req)
also,
this is the original query and it works fine
SELECT TLA_PROP.PIN,
TLA_PROP.ASSR_PRCL_NBR,
TCASE.CASE_NBR,
TLA_PROP.STR_NBR,
TLA_PROP.STR_NBR_RNG_END,
TLA_PROP.STR_FRAC_NBR,
Tref_plan_area.plan_area_desc,
TLA_PROP.STR_FRAC_NBR_RNG_END,
TLA_PROP.STR_DIR_CD,
TLA_PROP.STR_NM,
TLA_PROP.STR_SFX_CD,
TLA_PROP.STR_SFX_DIR_CD,
TLA_PROP.STR_UNIT_TYP_CD,
TLA_PROP.UNIT_NBR,
TLA_PROP.UNIT_NBR_RNG_END,
TLA_PROP.ZIP_CD,
TLA_PROP.ZIP_CD_SFX,
TLA_PROP.CNCL_DIST_NBR,
TLA_PROP.PLAN_AREA_NBR,
TLA_PROP.ZONE_REG_CD,
TAPLC.PROJ_DESC_TXT,
TCASE.CASE_ID,
TCASE.CASE_NBR,
taplc.aplc_id
FROM TLA_PROP INNER JOIN tref_plan_area ON
tla_prop.plan_area_nbr = tref_plan_area.plan_area_NBR INNER JOIN
TLOC ON TLA_PROP.PROP_ID = TLOC.LOC_ID INNER JOIN TAPLC ON
TLOC.APLC_ID = TAPLC.APLC_ID INNER JOIN TCASE ON TAPLC.APLC_ID =
TCASE.APLC_ID
WHERE (TCASE.CASE_NBR Like '%CWC%' or TCASE.CASE_NBR Like
'%CWNC%')For guys like us that are not writing queries everyday you
might try a query
builder like the one MS Access has.
"Coldfusionstudent" <[email protected]>
wrote in message
news:[email protected]...
> hello my query below is not working for my cf
application can you help?
> thanks
>
>
> this is my previous question so i tried to do it my
self.
>
>
> tcase_req.tcase_req_id is added
tcase.case_id=tcase_req.case_id :note
> that
> this is not part of the inner join in the from clause.
it does not depend
> on
> the rest of the inner join.
>
> the reaon for this is that i need to get
> WHERE tcase_req.case_req_typ_cd = cwc and
tcase_req.case_req_typ_cd =
> cwnc
>
> here is the original question
>
> Hello ,
> I need help again on the inner join/and conditions in
the where clause
>
> I have these 2 tables tcase and tcase_req where there
common field Is the
> case_id.
> tcase is the parent table and the tcase_req is the child
table.
>
> (1)I wanted to add this to the from clause using the
inner join table .
> what
> do I do and where do I put it
>
> (2)I then need to put a condition in the where clause to
replace
> WHERE TCASE.CASE_NBR Like '%HPOZ%'
> AND TCASE.CASE_NBR = 'DIR-2004-4269-HPOZ-CCMP'
> by
> WHERE TCASE.CASE_NBR Like '%CWC%' or TCASE.CASE _NBR
Like '%CWNC%'
> AND TCASE.CASE_NBR = 'DIR-2004-4269-CWC'
> Or TCASE.CASE_NBR = 'DIR-2004-4269-CWNC'
>
> is this efficient??
>
>
>
> thanks
> --------------------
>
> SELECT TLA_PROP.PIN,
> TLA_PROP.ASSR_PRCL_NBR,
> TCASE.CASE_NBR,
> TLA_PROP.STR_NBR,
> TLA_PROP.STR_NBR_RNG_END,
> TLA_PROP.STR_FRAC_NBR,
> Tref_plan_area.plan_area_desc,
> TLA_PROP.STR_FRAC_NBR_RNG_END,
> TLA_PROP.STR_DIR_CD,
> TLA_PROP.STR_NM,
> TLA_PROP.STR_SFX_CD,
> TLA_PROP.STR_SFX_DIR_CD,
> TLA_PROP.STR_UNIT_TYP_CD,
> TLA_PROP.UNIT_NBR,
> TLA_PROP.UNIT_NBR_RNG_END,
> TLA_PROP.ZIP_CD,
> TLA_PROP.ZIP_CD_SFX,
> TLA_PROP.CNCL_DIST_NBR,
> TLA_PROP.PLAN_AREA_NBR,
> TLA_PROP.ZONE_REG_CD,
> TAPLC.PROJ_DESC_TXT,
> TCASE.CASE_ID,
> TCASE.CASE_NBR,
> taplc.aplc_id,
> tcase_req.case_req_typ_cd
> FROM TLA_PROP INNER JOIN tref_plan_area ON
tla_prop.plan_area_nbr =
> tref_plan_area.plan_area_NBR INNER JOIN TLOC ON
TLA_PROP.PROP_ID =
> TLOC.LOC_ID
> INNER JOIN TAPLC ON TLOC.APLC_ID = TAPLC.APLC_ID INNER
JOIN TCASE ON
> TAPLC.APLC_ID = TCASE.APLC_ID
> WHERE TCASE.CASE_NBR Like '%CWC%'and
tcase.case_id=tcase_req.case_id
>
>
>
>
> (3)To a tcase_req
> Suffix_id are equal to = cwc and cwnc ( in the tcase_req
table)(Suffix_id
> is
> the field that cintains the suffix cwc and cwnc for the
tcase_req)
>
> also,
> this is the original query and it works fine
> SELECT TLA_PROP.PIN,
> TLA_PROP.ASSR_PRCL_NBR,
> TCASE.CASE_NBR,
> TLA_PROP.STR_NBR,
> TLA_PROP.STR_NBR_RNG_END,
> TLA_PROP.STR_FRAC_NBR,
> Tref_plan_area.plan_area_desc,
> TLA_PROP.STR_FRAC_NBR_RNG_END,
> TLA_PROP.STR_DIR_CD,
> TLA_PROP.STR_NM,
> TLA_PROP.STR_SFX_CD,
> TLA_PROP.STR_SFX_DIR_CD,
> TLA_PROP.STR_UNIT_TYP_CD,
> TLA_PROP.UNIT_NBR,
> TLA_PROP.UNIT_NBR_RNG_END,
> TLA_PROP.ZIP_CD,
> TLA_PROP.ZIP_CD_SFX,
> TLA_PROP.CNCL_DIST_NBR,
> TLA_PROP.PLAN_AREA_NBR,
> TLA_PROP.ZONE_REG_CD,
> TAPLC.PROJ_DESC_TXT,
> TCASE.CASE_ID,
> TCASE.CASE_NBR,
> taplc.aplc_id
> FROM TLA_PROP INNER JOIN tref_plan_area ON
tla_prop.plan_area_nbr =
> tref_plan_area.plan_area_NBR INNER JOIN TLOC ON
TLA_PROP.PROP_ID =
> TLOC.LOC_ID
> INNER JOIN TAPLC ON TLOC.APLC_ID = TAPLC.APLC_ID INNER
JOIN TCASE ON
> TAPLC.APLC_ID = TCASE.APLC_ID
> WHERE (TCASE.CASE_NBR Like '%CWC%' or TCASE.CASE_NBR
Like '%CWNC%')
>
Maybe you are looking for
-
Partitions on an external hard drive?
Just wondering if anyone recamends using "Partitions" on an external hard drive? I have a Apple Power Book G4 w/Mac OS 10.2.8., 768MB of ram, 40GB internal HD and in the middle of installing my new Seagate 300GB firewire external HD. I'm going to be
-
Hi, I came across a little problem. I put an event listener inside a for loop and the for loop inside a function. I want the for loop to end as soon as the event listener inside the for loop calls its function. Here is the general code for a better p
-
Windows can't print to Airport Express connected printer
installed new Airport Express replacing an old Linksys wireless router. Have a mix of Windoze and Mac clients that need to connect to shared (USB Connected) printer, supported off the AE router. All Mac clients are able to see, connect to, and print
-
When call jasper report from jsp, occur error
I define a class call createReport that has a function call doReport to create report. If i call doReport from application, notthing's happened. But if i call doReport from jsp file, it occurs error ( 500 error ). jsp file : <%@ page import="myBean.c
-
How to install or update pkg in arch64??
I installed arch64 a few days ago with arch64 ISO, Duke. I have a question..... When I want to install or update package, for example xawtv, the commed "pacman -Sy xawtv" right??? I worry about installing 32bits xawtv on my arch64. And.... My compute