Alias table and column aliases
I'm new to the discoverer. I have some confusion.
1. If it is possible use different aliases for the same table during the creation of spreadsheet?
Need to produce different joins.
for example:
SELECT C1. Name, C2. Remarks
CLIENTS C1,.
C2 customers,
Ticket T,
Sale S
WHERE C1. Client_Id = T.Client_Id AND C2. Client_Id = S.Client_Id
2. How can I use the Alias column to show as a custom in the worksheet column heading?
for example:
SELECT Client_Default_Name AS name OF customers
Thanks in advance.
Hello
first question:
the sql worksheet is always structured according to the EUL (the end user layer). If you have used two customer tables and created a join of tables then the sql is generated according to your requirement. There is no way we can have discoverer create a sql like this. If you are interested with the sql. You can create a custom in the business district folder and paste the sql code and create a report on the top of the custom folder.
second question:
You can always change the topic in the discoverer more filing cabinets according to your requriement
hope this helps
-N.S.
Tags: Business Intelligence
Similar Questions
-
Comment of tables and columns are included in the Data Modeler
Hi all
I used Oracle SQL Developer Data Modeler (Version 3.0.0.665) and created a data model for my project. I sent an email a PDF version of the data model to our systems analyst. She asked if I could re - create the data model and include table and column comments. Is this possible and if so how this work is it?
Thank you for your comments,
SeyedSeyed salvation,
I used the Data Modeler and create a report. The report included 36 .csv files
What is the purpose of this 'report' task, because 36 files csv does not sound like report to me. Watch "files > reports" feature - you can generate reports for your model. -for any model, single table or tables belonging to specific subview. The report of the complete table contains additional details, so if you need these comments, then only you can create a template and select column comments appear only. So some general information table will be also included.
Philippe
-
Find the key referenced foreign Table and column
Can someone please refresh my memory?
How can I determine which table and column refers to a foreign key?
For example, with select * from ALL_constraints WHERE TABLE_NAME = 'my_table '; I can see forced CONSTRAINTA_FK and CONSTRAINTB_FK I guess reference another table and column because CONSTRAINT_TYPE = "R", but it isn't that I get. "
I would get all the way to the referenced table and the column I just don't remember how.
Thank you
LouHello
Example:
Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0 Connected as hr SQL> SQL> SELECT UC.TABLE_NAME, 2 UC.R_CONSTRAINT_NAME, 3 UCC.TABLE_NAME, 4 UCC.COLUMN_NAME 5 FROM USER_CONSTRAINTS UC, 6 USER_CONS_COLUMNS UCC 7 WHERE UC.R_CONSTRAINT_NAME = UCC.CONSTRAINT_NAME 8 AND uc.constraint_type = 'R' 9 ORDER BY UC.TABLE_NAME, 10 UC.R_CONSTRAINT_NAME, 11 UCC.TABLE_NAME, 12 UCC.COLUMN_NAME; TABLE_NAME R_CONSTRAINT_NAME TABLE_NAME COLUMN_NAME ------------------------------ ------------------------------ ------------------------------ -------------------------------------------------------------------------------- COUNTRIES REG_ID_PK REGIONS REGION_ID DEPARTMENTS EMP_EMP_ID_PK EMPLOYEES EMPLOYEE_ID DEPARTMENTS LOC_ID_PK LOCATIONS LOCATION_ID EMPLOYEES DEPT_ID_PK DEPARTMENTS DEPARTMENT_ID EMPLOYEES EMP_EMP_ID_PK EMPLOYEES EMPLOYEE_ID EMPLOYEES JOB_ID_PK JOBS JOB_ID JOB_HISTORY DEPT_ID_PK DEPARTMENTS DEPARTMENT_ID JOB_HISTORY EMP_EMP_ID_PK EMPLOYEES EMPLOYEE_ID JOB_HISTORY JOB_ID_PK JOBS JOB_ID LOCATIONS COUNTRY_C_ID_PK COUNTRIES COUNTRY_ID TEMP_LEAVE PK_CLIENT CLIENT CLIEND_ID VISITORS SYS_C004169 GROUPS GROUPID VLANGS SYS_C004170 VISITORS VISITORID 13 rows selected SQL>
In the output:
TABLE_NAME R_CONSTRAINT_NAME TABLE_NAME COLUMN_NAME ------------------------------ ------------------------------ ------------------------------ -------------------------------------------------------------------------------- COUNTRIES REG_ID_PK REGIONS REGION_ID
means that a COUNTRY table has a foreing key called REG_ID_PK that points to an array of AREAS. REGION_ID
Kind regardsPublished by: Walter Fernández on March 4, 2009 23:26 - adding explanation...
-
Rename tables and columns in sql running that accessing these columns in the table.
Hello
Using oracle 11.2.0.3
We want to rename columns, tables and work just a sql scripts for this.
If sqls who have access to those running long tables/columns for example reports what is happening
Existing sql running, will work perfectly in that picked up sql before table/colum rename or will they crash if tables/columns renamed during them.
scripts wil take a few seconds to run maximum
Thank you
The only other activity that would go on select is against these tables/columns. No etl isnert/update/delete etc wil, which happened during the name change.
Only possible activities are report instructions srunning select.
Tried to run a long selection and rename that select while that was going on and got no error on the test system.
This is because certain statements does not place locks on tables or lines, so even if a session is reading data, another session can make some ddl (or dml) manipulation.
In this situation (with only selects, no other dml queries), renaming can be done, but the question remains, what the application code?
If it refers to old column names after name change operation, is no good.
-
data in multiple tables and columns
Hello
How to find if multiple tables are containing the same data?
Text of the 'Apple' is in three different tables and under three different column names.
Expected result fruits_one fruits_two fruits_three
Thank youSelect name, quantity from fruits_one; Apple 1 Orange 1 Pear 1 select flavour, desc from fruits_two; Red, Apple Blue, Berry select order,date,details from fruits_three; 101 11/11/2011 Grapes 102 12/01/2010 Apple
SandySQL> create table fruits_one (name varchar2(100), quantity number); Table created. SQL> insert into fruits_one 2 select 'Apple' name, 1 quantity from dual union all 3 select 'orange' name, 1 quantity from dual; 2 rows created. SQL> commit; Commit complete. SQL> create table fruits_two (flavour varchar2(100), des varchar2(100)); Table created. SQL> insert into fruits_two 2 select 'Red' flavour, 'Apple' des from dual union all 3 select 'blue' , 'berry' from dual ; 2 rows created. SQL> commit; Commit complete. SQL> set serveroutput on SQL> declare 2 l_search varchar2(10) := 'APPLE'; 3 l_cnt number := 0; 4 begin 5 6 for x in (select column_name, data_type, table_name from user_tab_cols where data_type in ('VAR CHAR2')) 7 loop 8 9 execute immediate 'select count(*) from "' || x.table_name ||'" where upper("' || x.column_n ame || '") like ''%' || l_search || '%''' into l_cnt; 10 11 if l_cnt > 0 then 12 dbms_output.put_line('table = "' || x.table_name ||'", column = "' || x.column_name ||'"'); 13 end if; 14 15 end loop; 16 17 end; 18 / table = "FRUITS_ONE", column = "NAME" table = "FRUITS_TWO", column = "DES" PL/SQL procedure successfully completed. SQL>
-
Flexible, set up including the tables and columns of text?
I need to set up tables (annual report) and some text between the two notes.
I would like to have frames as little as possible on every page - for InCopy workflow later.
If I paste the text of the regular column in the frames containing the tables anchored that I must apply the shift of different basis for each block of anchor text, text which is not a nice workflow.
Can you recommend a skillful means and flexible to set this place that will make the tables and text boxes flows if more lines or more text are added?
Best regards
Nina storm
For this test I did it manually, but I have no reason to think that it would behave differently as part of a style. As far as I know, ID will attempt to balance the two columns automatically. If there is not enough text to divide into two columns it will not appear to divide but always see you any extra spacing and add just enough text to be wider than the column width of Courland and your line will have a gap in it for the gutter of the column.
OK, I've just defined a style with the attribute of split, and Yes, it works in the same way. If you have a single paragraph, the paragraph is divided. If you have more than one, the block is divided, reading down by the first paragraph to the second (assuming that the linecounts work that way) in the first column before splitting into the second column. Paragraphs distributed individually. ID is to balance my columns automatically and will adjust the break if I edit, and if the number of rows is not divisible by 2 short column is on the right.
-
put the query iresults n tables and columns
Hello, I have this request and should display
but I need to be in cells as the rows and columns. just like an ecxel spread sheet but only in html.
Here's the code.
what I need to add to make this happen?
Thanks in adv
< name cfquery = "replace".
DataSource = "#request. MainDSN #">"
SELECT
CompanyID,
CompanyName,
Address,
City,
State,
Zip code
Comments
Of
Company
ORDER BY
CompanyName ASC
< / cfquery >
< html >
< head >
ColdFusion MX Bible < /title > < title >
< link rel = "stylesheet" href = "styles.css" >
< / head >
< body >
List of companies < h1 > < / h1 >
< table >
< b >
< td > < b > ID < /b > < table >
< td > < b > name < /b > < table >
< Td > < b > < /b > < table > address
City of < td > < b > < /b > < table >
< td > < b > status < /b > < table >
< td > < b > ZIP Code < /b > < table >
< td > < table >
< /tr >
< cfoutput query = "replace" >
< b >
< td > #CompanyID # < table >
< td > #CompanyName # < table >
< td > #Address # < table >
< td > #City # < table >
< td > #State # < table >
< td > #ZipCode # < table >
< td >
< a href = "EmployeeList.cfm? CompanyID = #CompanyID #"> employees < /a >"
< a href = "CompanyAddForm.cfm" > add < /a >
< a href = "CompanyEditForm.cfm? CompanyID = #CompanyID #"> edit < /a >"
< a href = "CompanyDeleteForm.cfm? CompanyID = #CompanyID #"> delete < /a >"
< table >
< /tr >
< / cfoutput >
< /table >
< / body >
< / html >
---
When displayed, it's like
List of companies
ID name address City State ZIP Code
27 555 k ddd ddd dd 90556 employees add edit delete
26 555 k ddd ddd dd 90556 employees add edit delete
31 dd dd dd dd 89995 employees add edit delete
23 ddd ddd ddd dd 90556 employees add edit delete
22 ddd ddd ddd dd 90556 employees add edit delete
24 ddd ddd ddd dd 90556 employees add edit delete
21 mama 252 los angeles ca 90056 employees add edit delete
5332 Courtland Court Abilene AL 29555 employees of 14 homemade pies my add edit delete
25 nknknk ddd ddd dd 90556 employees add edit delete
15 Normwelland and Drake Clothing Co. 1240 Pierpont Point Boston MA 02134 employees add edit delete
Pizza Palace 1548 16 Point culminating Freeway New York NY 00248 employees add edit delete
29 qqqq 888 laverne za 90000 employees add edit delete
30 qqqq 888 laverne za 90000 employees add edit delete
13 the very big Corporation of America 5806 Glenn Hollow Lane Norcross GA 30071 employees adds change remove
-----------------------
without the cells/folders >Take a HTML Manual, waiting to change
TO
for the grid around all
-
In SSMS, that means the space between an alias of the table and column name mean?
Sometimes I see this: "d.
PhaseKey" instead of this "d.PhaseKey". I'm sure this means something is wrong in the query or table - but this gives no indication of what is wrong?
I'm not sure on how to interpret it.
Hello
We have dedicated support for Microsoft SQL Server Management Studio Express forums. I would have you post your query in the MSDN Forums for assistance on this issue.
You can check the link to post your question:
http://social.msdn.Microsoft.com/forums/en-us/home
It will be useful.
-
Model KT database - tables and columns
Hello
I m starting in Hyperic. I´d would like to know if anyone knows the model of database used by hyperic (tables, columns and descriptions of each object) or using query to select the availability of each resource (plataform, server, services) in the HQ database. My goal is to build a dashboard with real-time display. I m using HQ Oracle database.
Tanks.Welcome, Carlos,
Here are a couple of discussions on the forums who have some details on
How the data are arranged:http://communities.VMware.com/message/1916038#1916038
http://communities.VMware.com/message/1916609#1916609Charles
-
Update of custom table and column based on the number of lines inserted in it.
Hello
I have a XX_TDP_DT custom table that has a column ID_processus.
User will be be download data in the XX_TDP_DT table, but they insert any value into ID_processus.
Say if the entered data are 1000 lines.
I need to process these 1000 rows in batches, so I want to have 1 for 1 to 200 rownum = ID_processus, ID_processus = 2 for rownum 201 to 400 and so on.
How can I achieve this, any suggestions?
Database: 10g
Thank you.You can also use NTILE to do this, see:
Re: Divide also extracted almost lines and assign a group
http://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:47910227585839 -
Find out which parent table and column is referenced by FK
That is the problem. From user_constraints, you can get the foreign keys and the tables where they were defined, but I couldn't find the tables kinships, which reference foreign keys. Where can I get this information?Discover the R_OWNER and the R_CONSTRAINT_NAME from USER_CONSTRAINTS view.
You can do a self-join on these columns to USER_CONSTRAINTS for parent information.
Here's a post I made earlier that you can probably change to get all the information you need: {message identifier: = 3704338}
Published by: Centinul on November 19, 2009 09:27
-
you order your presentation tables and columns in response
Hi all
I have a product dimension that is structured as:
ProductDim
-------------
All the
-BA
name of BA
Number of BA
-RA
name of RA
Number of RA
In responses, the "whole" which is a column of presentation is displayed after BA and RA, which are presentation tables. Is there a way to change this order?
Concerning
AdilNo, unfortunately this is not possible. When you open a folder x, first, all underlying files are displayed, then the underlying columns (of the x folder). The only solution is to create a 'All' record, taking a column 'Column All'.
Kind regards
Stijn -
table and the columns in small capitals!
Dear all,
My database is GR 11, 2 and Linux is the operating system.
One of my application, whose code I cannot access, he is trying to insert records into the Oracle database. The problem is that the application is case sensitive and try to find the table and columns in small capitals, name while he gets the caps of Oracle and gives error or identifier is not valid.
Y at - it option to create fields and the table with small letters.
Kindly help.
Kind regards
ImranUse "" for the table and columns
create table "table_test" ( "col_test" number(12));
-
table and the column in the chain
Hello
I'll have a column data containing the combination table and the names of columns as
act_hand_table.work_order
I want the names of table and column separated
I want to separte. Classified
Please help me
Kind regards
KiranI think it'll work
SELECT
SUBSTR (COL1, 1, INSTR(COL1,'.',1,1)-1) TABLENAME.
SUBSTR (COL1, INSTR(COL1,'.',1,1) + 1) COLUMNNAME
FROM TABLENAME -
How can I get a name of table 1, column A, if column B is a negative number and insert the names of table 2?
What is the formula?
You can do this with a column of "index" in table 1, as this assistance:
The formula in C2, filled to the bottom:
IF (B =<>
That increments a counter each time that it finds a negative number in column B.
In the second table, you can retrieve a list of negative values in this way:
The formula in A2, filled to the bottom:
= INDEX (array 1::A, CORRESPONDENCE (LINE (−1, Table 1::C), 0))
It takes the line number, the formula is activated, subtracts 1 to the header line and look up the result in the column of table 1 C. If it finds a match, it feeds the line number to the INDEX page with retrieves the value of the column of table 1A.
To hide the red triangles of signage wrap the IFERROR formula, like this:
= SIERREUR (INDEX (table 1::A, CORRESPONDENCE (LINE (−1, Table 1::C), 0)),"")
Of course, you can also simply filter on column B without the need to set up a column from another table or index.
SG
Maybe you are looking for
-
Not cleared leaving privacy data
Clear privacy data on output are enabled but are not cleared. It appeared to start with the most recent version of Firefox because it worked OK in the past. Manual removal works very well. Update Samsung S5 on Verizon.
-
An hour ago, I watched with happiness of the videos from youtube on Linux using Firefox 20.0 and 11.2 flash. I've just updated firefox and it of now my blocking flash and invites me to update. The problem is I can't update because 11.2 is the LATEST
-
Misleading iOS keyboards Vertical/Horizontal (iPhone6/iOS9.2
I recently spent an iPhone6 (from 5) and noticed (probably a change that I have not noticed before and may not check more) a light but extremely annoying difference in the configuration of the keyboard when you use the phone vertically or horizontall
-
Resolution of timestamp in DSC
I know that the Citadel is a timestamp resolution of 100 nanoseconds... but I also heard that LV DSC has a resolution of only 1 millisecond. I know I could understand it with a little test, but I was wondering if the following is true: 1. If you open
-
Cannot install FSX in Windows Vista
I bought MS Flight Sim X Gold Edition to install on a Windows Vista Home Premium computer with two monitors. When I put disc 1 in the DVD player, nothing happens. I can't open the DVD with "My Computer" to find a setup.exe file. Any suggestions on