2.1 EA1/EA2/RC1: Constraints tab query bug [Fixed 2.1.1]
Hi,
The query to get a table's constraint columns will only work on unique constraints:
cons.constraint_type in ('U','P')Please remove this filter from the query so it works for FKs and check constraints.
Thanks,
K.
Hi K,
Thanks for this feedback.
Replicated the issues and logged a bug.
Bug 9203081 - CANT BROWSE COLUMNS FOR FKEY AND CHECK CONTRAINTS
Regards,
Dermot
SQL Developer Team.
Similar Messages
-
EA1/EA2/RC1/2.1.1 - copy from result set does not work as expected
When I highlight a field in the result set and press "command+c" (I am on Mac) or use "Copy" from the menu, then content of the field is not copied to clipboard. You have to go to edit mode, mark the whole content of the field and then use "Copy".
By the way, should I describe all the bugs that I have found so far in this forum or is there any other "official" bug reporting?
Regards,
SvenWe have picked up keyboard mapping issues with the Mac, so I'll check on this one.
For all early adopter bugs and queries, yes please used this forum. If you can mark you query with EA1 and you have done, then that's great.
Sue -
2.1 EA1/EA2/RC1: Case change quirk from Formatter
Hi,
I love how the editors react to the automatic case change (as defined in the Formatter, not the button in the worksheet), but unfortunately I get its benefits less than half the time.
The problem is the formatter only kicks in after pressing enter/return, and only for the current line.
E.g. I go in an existing statement and want to add a new where condition. If I type on an existing line, it doesn't get formatted. If I insert a new line, the previous line gets formatted.
So this usually results in having 1 line different to the rest and/or not getting formatting where I wanted.
So my suggestions are to change the case whenever moving to another line (regardless if it was with enter/return, cursors, or mouse), and/or after typing words (on any whitespace), and/or change the case on the whole (current) statement.
Thanks for considering,
K.Hi K,
Enhancement Request Logged:
9201516 - RC1:FORUM:CAPITALISE ON WHITESPACE AND MOVE AWAY FROM LINE
-Turloch -
2.1 EA1/EA2/RC1: Bookmark issues in the worksheet
Hi,
The right gutter in the worksheet:
1. doesn't jump to bookmarks when clicked upon (instead it goes to one of the top lines)
2. doesn't remove bookmarks (when removed from the left gutter)
Can this be bugged if it isn't?
Thanks,
K.Have
Bug 8279309 - bookmarks created in the sql worksheet do not enable the bookmark menu items
with comments :
The bookmarks in the SQL Worksheet
can be created, but it doe not appear that you can navigate to them. Using
the keyboard shortcuts only displays the bookmarks created in the PL/SQL
editor. -
Dear users,
I have a query as below:
select a$acct$company company,
a$period_name "Period Name",
a$acct$location location,
a$acct$prime_sub "Prime Sub",
sum (balance) balance
from apps_rpt.us_gl_balances
where a$acct$prime_sub between '300001' and '313099'
and a$period_name = 'DEC-01'
and a$acct$company in ('5110')
group by a$period_name, a$acct$location, a$acct$company, a$acct$prime_sub
order by a$acct$prime_sub;
Sample output of the above query is:
COMPANY Period Name LOCATION Prime Sub BALANCE
5110 DEC-01 50008 300001 0.00
5110 DEC-01 52424 300001 0.00
5110 DEC-01 52513 300001 0.00
5110 DEC-01 50008 300008 201315.00
5110 DEC-01 50095 300008 10403.17
5110 DEC-01 50107 300008 0.00
5110 DEC-01 50108 300008 -1099236.04
5110 DEC-01 50180 300008 0.00
5110 DEC-01 51628 300008 -6396.02
5110 DEC-01 51734 300008 -5896.51
5110 DEC-01 51735 300008 -8525.78
5110 DEC-01 52423 300008 -7268.64
5110 DEC-01 52424 300008 -6945.65
5110 DEC-01 52428 300008 -7845.70
5110 DEC-01 52513 300008 -11309.44
5110 DEC-01 52514 300008 -10272.08
5110 DEC-01 52515 300008 -3861.72
5110 DEC-01 52516 300008 -6685.85I need to write a cross tab query whose output should be some thing as below:
300001 300008
50008 0 201315.00
52424 0 -6945.65
52513 0 -11309.44
50095 0 10403.17
50107 0 0
50108 0 -1099236.04
50180 0 0
51628 0 -6396.02
51734 0 -5896.51
51735 0 -8525.78
52423 0 -7268.64
52428 0 -7845.70
52514 0 -10272.08
52515 0 -3861.72
52516 0 -6685.85from the above cross tab results 300001 and 300008 are Prime Sub and the amount shown is Balance. The columns to the left side is Location. Company and Period Name remain the same for all the rows.
It would great if some one can assist me in writing a cross tab query to display results as shown above.
Thanks
SandeepFrank,
Thanks for your reply. I Tried your method of Dynamic Pivot, but its not working.
My dynamic_pivot_subscript.sql script is :
SELECT DISTINCT
', MAX(DECODE(PRIME_SUB,'|| PRIME_SUB||',' AS txt1,
'BALANCE,0)) AS '||prime_sub AS txt2
FROM
SELECT a$acct$location AS LOCATION
, a$acct$prime_sub AS PRIME_SUB
, SUM(BALANCE) AS BALANCE
FROM apps_rpt.us_gl_balances
WHERE a$acct$prime_sub BETWEEN '300001' AND '313099'
AND a$period_name = 'DEC-01'
AND a$acct$company IN ('5110')
GROUP BY a$acct$location,a$acct$prime_sub
);Sql Plus session is as follows :
-- Restore SQL*Plus features suppressed earlier
SET FEEDBACK ON
SET PAGESIZE 50
SPOOL p:\sql\cookbook\dynamic_pivot.lst
select LOCATION
@@dynamic_pivot_subscript
from
SELECT a$acct$location AS LOCATION
, a$acct$prime_sub AS PRIME_SUB
, SUM(BALANCE) AS BALANCE
FROM apps_rpt.us_gl_balances
WHERE a$acct$prime_sub BETWEEN '300001' AND '313099'
AND a$period_name = 'DEC-01'
AND a$acct$company IN ('5110')
GROUP BY a$acct$location,a$acct$prime_sub
GROUP BY LOCATION
SPOOL OFFWhen i use sql plus session then its giving me the following error:
@@dynamic_pivot_subscript
ERROR at line 2:
ORA-02019: connection description for remote database not found
(1) The version of Oracle (and any other relevant software) you're using
Ans :
Oracle8i Enterprise Edition Release 8.1.7.4.0 - 64bit Production
With the Partitioning option
JServer Release 8.1.7.4.0 - 64bit Production
I either use Toad or Sql Navigator -
2.1 EA2 does not display query results, query works fine in sqlplus
2.1 EA2/Windows XP 32-bit
The following query does not show any results for Total(GB) and Free(GB) columns. The diskgroup name shows correctly.
SELECT
DG.name ,
ROUND(SUM(DSK.TOTAL_MB)/1024,2) "Total (GB)",
round(SUM(DSK.FREE_MB)/1024,2) "Free (GB)"
FROM
V$ASM_DISK DSK,
V$ASM_DISKGROUP DG
WHERE
DSK.GROUP_NUMBER=DG.GROUP_NUMBER
group by DG.name;
The query works fine when run from SQL*Plus:
SQL> SELECT
2 DG.name ,
3 ROUND(SUM(DSK.TOTAL_MB)/1024,2) "Total (GB)",
4 round(SUM(DSK.FREE_MB)/1024,2) "Free (GB)"
5 FROM
6 V$ASM_DISK DSK,
7 V$ASM_DISKGROUP DG
8 WHERE
9 DSK.GROUP_NUMBER=DG.GROUP_NUMBER
10 GROUP BY DG.name;
NAME Total (GB) Free (GB)
DG1 707.98 162.32
DG2 134.84 122.68
SQL>
This must be something unique to SQLDeveloper. I tested in 2.1 EA1 and 1.5.5.59.69 and the query does not show results for the Total (GB) and Free (GB) columns.I would like to update the problem. It seems like when SQLDeveloper is connected to ASM instance, it has trouble using the divide operator (/). For example, the following query works fine:
SELECT
name,
TOTAL_MB
FROM
V$ASM_DISKGROUP;
But if I try to divide the TOTAL_MB by any number, the column shows blank (the column is blank, not NULL). So, if I try to run the following query, the output will just display diskgroup names. The TOTAL_MB/1024 column shows blank.
SELECT
name,
TOTAL_MB/1024
FROM
V$ASM_DISKGROUP;
If I run the same query in SQL*Plus from the same desktop using the same TNS alias, it works just fine which tells me that it is a SQLDeveloper problem.
When I am connected to a regular database, then the problem does not show up and SQLDeveloper is able to display the results even when I am using the divide operator (/). -
EA1 EA2 EA3 don't start on linux with jdk1.7 but work with jdk1.6!!!
I install SQLDeveloper EA1 then EA2 and now EA3 on my Linux (Fedora 19), but the result is the same.
If i start SQLDeveloper with root it work, but if i start with my user the application crash. I tested to change owner of all component, but the result is the same.
Then because I started the application with jdk1.6 (I used the EA1 who did not warning about the java version) and it work fine!!!
I opened two "Report a HotSpot Crash", but I never received a response.
No one any idea? Nobody has ever happened?
Thanks,
EnricoThis sounds like
Re: 4EA1: Not starting on Ubuntu. Unkown protocol sqldev.temp -
2.1 EA1/EA2: Disappearing text
Hi,
I was hoping it's EA1 feature, but it's present in EA2 :( (I have disabled any auto-formatting option I found)
DECLARE
str Varchar2(100);
BEGIN
str := 'sth' || 'break linehere';
end;
and now- try to break 4th line (by pressing enter inside 'linehere' ):
the result:
DECLARE
str Varchar2(100);
BEGIN
str := 'sth' || '
here';
END;
(where is 'line'??)
It's very annoying (try to write some dynamic sql!) and I am wondering if any other part of my code may dissapear?
Is there any way I could disable it?
Regards
BartlomiejDThanks for this feedback BartlomiejD,
Sorry for the late reply.
I have logged a bug
Bug 9203660 - TEXT DELETE FROM WITHIN A STRING LITERAL WHEN ADDING A LINE BREAK
This is being worked on now.
Regards,
Dermot
SQL Developer Team
-- Too late, Vadim already fixed it :)
Edited by: Dermot ONeill on Dec 10, 2009 4:31 PM -
Cross tab query dynamically.
Hi,
i want to do crosstab in my query. but the data was not static its dynamic.
CREATE TABLE ABTEST
SEC_ID NUMBER,
MONYEAR VARCHAR2(10 BYTE),
NUM NUMBER
SET DEFINE OFF;
Insert into ABTEST
WHERE
(SEC_ID, MONYEAR, NUM)
Values
(91, '200802', 13);
Insert into ABTEST
WHERE
(SEC_ID, MONYEAR, NUM)
Values
(91, '200803', 25);
Insert into ABTEST
WHERE
(SEC_ID, MONYEAR, NUM)
Values
(91, '200804', 26);
Insert into ABTEST
WHERE
(SEC_ID, MONYEAR, NUM)
Values
(91, '200805', 13);
Insert into ABTEST
WHERE
(SEC_ID, MONYEAR, NUM)
Values
(91, '200806', 10);
Insert into ABTEST
WHERE
(SEC_ID, MONYEAR, NUM)
Values
(91, '200807', 11);
Insert into ABTEST
WHERE
(SEC_ID, MONYEAR, NUM)
Values
(91, '200808', 5);
Insert into ABTEST
WHERE
(SEC_ID, MONYEAR, NUM)
Values
(91, '200809', 14);
Insert into ABTEST
WHERE
(SEC_ID, MONYEAR, NUM)
Values
(91, '200810', 17);
Insert into ABTEST
WHERE
(SEC_ID, MONYEAR, NUM)
Values
(91, '200811', 12);
Insert into ABTEST
WHERE
(SEC_ID, MONYEAR, NUM)
Values
(91, '200812', 12);
COMMIT;
Currently it looks like below.
SEC_ID MONYEAR NUM
91 200802 13
91 200803 25
91 200804 26
91 200805 13
91 200806 10
91 200807 11
91 200808 5
91 200809 14
91 200810 17
91 200811 12
91 200812 12
I want to display the data like below.
sec_id 200802 ........200812
91 13 12is there any can we do that by sql query or procedure. The dates are not limited its dynamic.
Please help meout.
Thanks & Regards,
Venkat.Hi,
The number of columns has to be hard-coded.
If you don't know the number of columns until run-time, then you have to use dynamic SQL where, at run-time, you figure out how many columns are needed and write that many columns.
See the script below for one way of doing that in SQL*Plus.
How to Pivot a Table with a Dynamic Number of Columns
This works in any version of Oracle
The "SELECT ... PIVOT" feature introduced in Oracle 11
is much better for producing XML output.
Say you want to make a cross-tab output of
the scott.emp table.
Each row will represent a department.
There will be a separate column for each job.
Each cell will contain the number of employees in
a specific department having a specific job.
The exact same solution must work with any number
of departments and columns.
(Within reason: there's no guarantee this will work if you
want 2000 columns.)
Case 0 "Basic Pivot" shows how you might hard-code three
job types, which is exactly what you DON'T want to do.
Case 1 "Dynamic Pivot" shows how get the right results
dynamically, using SQL*Plus.
(This can be easily adapted to PL/SQL or other tools.)
PROMPT ========== 0. Basic Pivot ==========
SELECT deptno
, COUNT (CASE WHEN job = 'ANALYST' THEN 1 END) AS analyst_cnt
, COUNT (CASE WHEN job = 'CLERK' THEN 1 END) AS clerk_cnt
, COUNT (CASE WHEN job = 'MANAGER' THEN 1 END) AS manager_cnt
FROM scott.emp
WHERE job IN ('ANALYST', 'CLERK', 'MANAGER')
GROUP BY deptno
ORDER BY deptno
PROMPT ========== 1. Dynamic Pivot ==========
-- ***** Start of dynamic_pivot.sql *****
-- Suppress SQL*Plus features that interfere with raw output
SET FEEDBACK OFF
SET PAGESIZE 0
SPOOL p:\sql\cookbook\dynamic_pivot_subscript.sql
SELECT DISTINCT
', COUNT (CASE WHEN job = '''
|| job
|| ''' ' AS txt1
, 'THEN 1 END) AS '
|| job
|| '_CNT' AS txt2
FROM scott.emp
ORDER BY txt1;
SPOOL OFF
-- Restore SQL*Plus features suppressed earlier
SET FEEDBACK ON
SET PAGESIZE 50
SPOOL p:\sql\cookbook\dynamic_pivot.lst
SELECT deptno
@@dynamic_pivot_subscript
FROM scott.emp
GROUP BY deptno
ORDER BY deptno
SPOOL OFF
-- ***** End of dynamic_pivot.sql *****
EXPLANATION:
The basic pivot assumes you know the number of distinct jobs,
and the name of each one. If you do, then writing a pivot query
is simply a matter of writing the correct number of ", COUNT ... AS ..."\
lines, with the name entered in two places on each one. That is easily
done by a preliminary query, which uses SPOOL to write a sub-script
(called dynamic_pivot_subscript.sql in this example).
The main script invokes this sub-script at the proper point.
In practice, .SQL scripts usually contain one or more complete
statements, but there's nothing that says they have to.
This one contains just a fragment from the middle of a SELECT statement.
Before creating the sub-script, turn off SQL*Plus features that are
designed to help humans read the output (such as headings and
feedback messages like "7 rows selected.", since we do not want these
to appear in the sub-script.
Turn these features on again before running the main query.
*/ -
How to produce dynamic cross-tab query result on this data ?
Hi gurus,
I have sales (simplified) sales data as below :
create table sales_summ (area_code varchar2(3), sales_amt number, product varchar2(10) ) ;
insert into sales_summ values ('A01', 100, 'P01');
insert into sales_summ values ('A02', 200, 'P01');
insert into sales_summ values ('B01', 300, 'P02');
insert into sales_summ values ('A01', 400, 'P02');
insert into sales_summ values ('A02', 500, 'P01');
insert into sales_summ values ('A03', 600, 'P01');
insert into sales_summ values ('A01', 700, 'P02');
insert into sales_summ values ('A02', 800, 'P02');
insert into sales_summ values ('A03', 900, 'P01');
And I want to produce a cross-tab sales summary like below :
Product A01 A02 A03 B01
P01 100 700 1500 0
P02 1100 800 0 300
How is the query ?
Thank you for your help,
xtantoSearch this forum for "pivot". Plenty of examples.
Regards,
Rob. -
SQL tab not working in V2.1 EA1 for non-DBA users -- how to fix?
In v2.1 EA 1 the tab to show the SQL script (DDL) in the object browser is not working for non-DBA users. In the prior version, these users would see a message about DBMS_METADATA and then the message would indicate that an "internal generator" would be used to generate the DDL script. After that brief message the DDL would show up as expected. This doesn't seem to be the case in the newest version.
I issued the following two grants to a particular user which worked, but I am reluctant to issue the grants to "PUBLIC".
SQL> grant execute on DBMS_METADATA to XXXXX;
SQL> grant select_catalog_role to XXXXX;
So, my questions are:
1) Will the old functionality (that didn't require these privileges) be added to V2 at some point?
2) What security implications are there for issueing the above grants to PUBLIC?
NOTE: After granting execute on the DBMS_METADATA package, it still didn't work. I left that grant in place and granted SELECT_CATAOG_ROLE, so I can't say for sure that the 1st grant was required.
Edited by: user615070 on Nov 19, 2009 9:30 AM
Edited by: user615070 on Nov 19, 2009 10:06 AMAn OEM account is separate from the database account. You need to use OEM UI to create an OEM account, however, for certain tasks to be done in the databases which OEM is monitoring they will also require separate database accounts within those databases. For example, to view the performance tab in OEM UI, a database account is required.
OEM only has two types of users, i.e. Super Administrator and Administrator, but don't go by the names. You can grant an OEM 'Administrator' account access to specific targets and what they can do within OEM, such as only viewing reports, targets, and so on. For access within a database, the user created need not be a DBA either.
I hope you understand. -
Hi all
I need an help
SELECT * FROM TABLE_A
ID SCHEDULED MARK
1 01/18/2011 T01
2 01/18/2011 T02
3 01/18/2011 T03
4 01/19/2011 T04
5 01/20/2011 T05 I want Results like below for folllowing query
SELECT SCHEDULED,MARK FROM TABLE_A
WHERE SCHEDULED BETWEEN TO_CHAR(SYSDATE,'MM/DD/YYYY') AND TO_CHAR(SYSDATE +1,'MM/DD/YYYY')
1/18/2010 1/19/2011
T01 T04
T02
T03
CREATE TABLE "TABLE_A"
( "ID" NUMBER,
"SCHEDULED" DATE,
"MARK" VARCHAR2(50)
insert into table_a values(1, '01/18/2011', 'T01');
insert into table_a values( 2, ' 01/18/2011', 'T02');
insert into table_a values( 3, ' 01/18/2011', 'T03');
insert into table_a values( 4, ' 01/19/2011', 'T04');
commit;Thanks for your helpuser1849 wrote:
Hi all
I need an help
SELECT * FROM TABLE_A
ID SCHEDULED MARK
1 01/18/2011 T01
2 01/18/2011 T02
3 01/18/2011 T03
4 01/19/2011 T04
5 01/20/2011 T05 I want Results like below for folllowing query
SELECT SCHEDULED,MARK FROM TABLE_A
WHERE SCHEDULED BETWEEN TO_CHAR(SYSDATE,'MM/DD/YYYY') AND TO_CHAR(SYSDATE +1,'MM/DD/YYYY')
1/18/2010 1/19/2011
T01 T04
T02
T03
CREATE TABLE "TABLE_A"
( "ID" NUMBER,
"SCHEDULED" DATE,
"MARK" VARCHAR2(50)
insert into table_a values(1, '01/18/2011', 'T01');
insert into table_a values( 2, ' 01/18/2011', 'T02');
insert into table_a values( 3, ' 01/18/2011', 'T03');
insert into table_a values( 4, ' 01/19/2011', 'T04');
commit;Thanks for your helphttp://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:766825833740 -
Two FK in the same tabe/query
I'm trying to return two fields from the same table through two joins in the same query.
Take this example:
Table: Product
ID Varchar PK
Name Varchar
Leader Varchar FK to Person.ID
Backup Varchar FK to Person.ID
DATA:
1 MyProduct 123 345
2 YouProdct 345 678
Table: Person
ID Varchar PK
Name Varchar
DATA
123 John
345 James
678 Tom
I need to return
RESULT:
Name Leader Backup
MyProduct John James
YouProdct James Tom
I've lots of different queries, but I always get either what looks like a cartesian product or a syntax error.
Thanks in advance
Edited by: jdc114 on Mar 28, 2009 5:20 PMWhat have you tried? It would seem like
SELECT product.name, leader.name, backup.name
FROM product,
person leader,
person backup
WHERE product.leader = leader.id
AND product.backup = backup.idwould be sufficient.
Justin -
SQL DEVELOPER 3 EA1 - Missing Left / Right tab scroll icons
On the left pane that has the Connections, Reports tabs, once a few schema browsers are added (2 for example), there is no way to scroll left and right on the tabs using Left/Right buttons. The right pane that has the SQL worksheets get those arrows once more tabs are added then can fit the window.
I already have a bug logged for the text on the tabs not being visible if you have 3 or more tabs open in the navigator. As noted, you can drag these tabs to create separate new navigators, which may be considered to be a work around, but does mean you can see your tab headings. The extra options and navigators do mean that this is more noticeable now. I have raised the priority of the bug.
Ctrl+tab will allow you to navigate through the tabs.
Sue -
I have a question about a correlation table and getting the results whether it is there or not. I've done this in SQL Server's product but haven't had success transferring it to ORACLE. Here is the situation:
I have a table of visitors, a table of visitor attributes and a table correlating the visitor to the attributes. The visitor doesn't need to have all of the attributes. In SQL Server I use a left outer join and join on the visitor attribute value (the correlation table) one time for each attribute in the visitor attribute table. The result should be a query that returns a recordset of all visitors with all attributes as the columns with NULL where there is no attribute value and (obviously) a value where there is one. Any help would be greatly appreciated. (Please CC responses to [email protected]).
Here is the query that I use in SQL server:
SELECT
V.id id,
V.firstvisit firstvisit,
V.lastvisit lastvisit,
V.visitcount visitcount,
VAV_PHON.ATTRIBUTEVALUE Phone,
VAV_STAT.ATTRIBUTEVALUE State,
VAV_CITY.ATTRIBUTEVALUE City,
VAV_ADDR.ATTRIBUTEVALUE Address,
VAV_LAST.ATTRIBUTEVALUE Last_Name,
VAV_FIRS.ATTRIBUTEVALUE First_Name
FROM WT_TEST3.DBO.TBL_VISITOR V
LEFT OUTER JOIN WT_TEST3.DBO.TBL_VISITORATRVAL VAV_PHON ON
(VAV_PHON.VISITOR_ID = V.ID AND VAV_PHON.ATTRIBUTE_ID = 12)
LEFT OUTER JOIN WT_TEST3.DBO.TBL_VISITORATRVAL VAV_STAT ON
(VAV_STAT.VISITOR_ID = V.ID AND VAV_STAT.ATTRIBUTE_ID = 11)
LEFT OUTER JOIN WT_TEST3.DBO.TBL_VISITORATRVAL VAV_CITY ON
(VAV_CITY.VISITOR_ID = V.ID AND VAV_CITY.ATTRIBUTE_ID = 10)
LEFT OUTER JOIN WT_TEST3.DBO.TBL_VISITORATRVAL VAV_ADDR ON
(VAV_ADDR.VISITOR_ID = V.ID AND VAV_ADDR.ATTRIBUTE_ID = 9)
LEFT OUTER JOIN WT_TEST3.DBO.TBL_VISITORATRVAL VAV_LAST ON
(VAV_LAST.VISITOR_ID = V.ID AND VAV_LAST.ATTRIBUTE_ID = 8)
LEFT OUTER JOIN WT_TEST3.DBO.TBL_VISITORATRVAL VAV_FIRS ON
(VAV_FIRS.VISITOR_ID = V.ID AND VAV_FIRS.ATTRIBUTE_ID = 7)
nullHi David,
the syntax in Oracle is:
SELECT
V.id id,
V.firstvisit firstvisit,
V.lastvisit lastvisit,
V.visitcount visitcount,
VAV_PHON.ATTRIBUTEVALUE Phone,
VAV_STAT.ATTRIBUTEVALUE State,
VAV_CITY.ATTRIBUTEVALUE City,
VAV_ADDR.ATTRIBUTEVALUE Address,
VAV_LAST.ATTRIBUTEVALUE Last_Name,
VAV_FIRS.ATTRIBUTEVALUE First_Name
FROM dbo.tbl_visitor v ,
dbo.TBL_VISITORATRVAL VAV_PHON,
dbo.TBL_VISITORATRVAL VAV_STAT,
dbo.TBL_VISITORATRVAL VAV_CITY,
dbo.TBL_VISITORATRVAL VAV_ADDR,
dbo.TBL_VISITORATRVAL VAV_LAST,
dbo.TBL_VISITORATRVAL VAV_FIRS
WHERE vav_phon.visitor_id (+)= v.id
AND vav_phon.attribute_id (+)= 12
AND vav_stat.visitor_id (+)= v.id
AND vav_stat.attribute_id (+)= 11
AND vav_city.visitor_id (+)= v.id
AND vav_city.attribute_id (+)= 10
AND vav_addr.visitor_id (+)= v.id
AND vav_addr.attribute_id (+)= 9
AND vav_last.visitor_id (+)= v.id
AND vav_last.attribute_id (+)= 8
AND vav_firs.visitor_id (+)= v.id
AND vav_firs.attribute_id (+)= 11The outer join operator is (+).
Bye Max
null
Maybe you are looking for
-
How to run a batch file using tigger....
Hi, i am trying run a batch file using a trigger on a table. say i have a table XYZ(col_1 varchar2 primary key, col_2 varchar2) the values of col_2 keeps changing and col_1 are constant whenever the value of col_2 in any row changes from "on" to "off
-
Hi All, Can any body tell me what is the cause In purchse requsition requisition item is not coming- suppose i am haveing 3 line items in sales order for all items purchase req. is generated in schedule line level i can see the purchase req number an
-
What external hard drives work well with time machine?
I'm a new mac user - trying to decide what to buy for an external hard drive. Thoughts on features to look for?
-
What happens to MB air when the nvidia goes bad?
My MacBook air late 2010 displays nothing on the screen. What could b wrong and how do I fix this ASAP?
-
As an editor using the full Production Studio, I find Bridge to be the beginning of an invaluable tool when it comes to organizing my media assets. But there are still quite a few bugs to be worked out, and a few missing features I consider essential