Information from two databases in the same query

How can I get information from the "of" in addition to a db in a cfquery? for example, say in a db I have their name and in another PB I have their last name..., for example are my DB something like this: name FirstDB db and db I memberNumber, the first name and the name of the comic is SecondDB and in this PB I memberNumber, lastName.
How can I run a query to collect the name of FirstDB and the name of SecondDB by the memberNumber?

FirstDB:
memberNumber 1
First name Tom
memberNumber 2
firstName Patty

SecondDB:
memberNumber 1
lastName Smith
memberNumber 2
lastName Dell

then when I exit the query I could get Tom Smith and Patty Dell

Thanks in advance for the help...


SELECT count (*) 2 albums like County, name, city<---city is="" in="" the="" town="">
Cities of people
WHERE type = 1
GROUP BY name

There are several syntax errors in this example, but I assume that
It is any example of code written in the message not copied no actual
running the code. Knowing which becomes a SQL error help know
where the problem may lie in the actual code.

You may need to fully qualify your fields in the select clause for that
the DBMS knows which database table, you want the field to come.

SELECT page 2 of count (*) County, people.name, towns.city
People, cities
WHERE type = 1
GROUP BY name, city

OR with aliases:

SELECT top 2 count (*) AS COUNT, p.name, t.city
PEOPLE p, t of cities
WHERE type = 1
GROUP BY name, city

You add all the new fields to your GROUP BY clause, correct? He
It requires that all fields that are not used in aggregate function [such as
Count()] be included in the GROUP BY clause.

Tags: ColdFusion

Similar Questions

  • Creating records from two Tables at the same time...

    I would be very grateful if someone could help with the following query.

    I have two Tables, Tbl1 and Tbl2. Tbl1 has the following columns: -.

    Tbl1_Unique_ID, Description

    Tbl1_Unique_ID is of type ' * number *' and ' * PK * ', Description is of type' * Varchar2 *'.

    Tbl2 has the following columns: -.

    Tbl2_Unique_ID, Description, Tbl1_Unique_ID

    Tbl2_Unique_ID is of type ' * number *' and is the ' * PK * ', Description is of type' * Varchar2 *' and Tbl1_Unique_ID is of type ' * number *', is a ' * foreign key *' and is the ' * primary key *' from Tbl1.

    While I can create a page to display and create folders in Tbl1, I'm not course coding required to view and create records Tbl1 and Tbl2 simultaneously, as well as regarding the two together at the same time.

    I know that it involves one ' * INSERT *' statement, but I have problems the correct SQL query.

    Can anyone provide any assistance will be appreciated.

    Have you tried to create a form master / detail page? Because it seems that is what you need...

  • two databases on the same windows machine. Unable to connect to a database.

    I installed two databases(11g) DB1 (ORCL) DB2 (DST) on windows vista. I am able to connect to the ORCL database only and connecting to the DST, I get the following error. The tnsentry is as below.
    I started the listener, and after that the DB service DST, but it did not help. I had created another LISTENER_DST auditor for the database of DST. Please advice if I am missing any action necessary.



    C:\Users\ratan > sqlplus scott/tiger@orcl

    SQL * more: Production of release 11.2.0.1.0 sat Nov 26 16:43:37 2011

    Copyright (c) 1982, 2010, Oracle. All rights reserved.


    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With partitioning, OLAP, Data Mining and Real Application Testing options

    SQL > exit
    Disconnected from the database to Oracle 11 g Enterprise Edition Release 11.2.0.1.0 - Pr
    production
    With partitioning, OLAP, Data Mining and Real Application Testing options

    C:\Users\ratan > sqlplus scott/tiger@dst

    SQL * more: Production of release 11.2.0.1.0 sat Nov 26 16:43:44 2011

    Copyright (c) 1982, 2010, Oracle. All rights reserved.

    ERROR:
    ORA-12514: TNS:listener is not currently of service requested in connect
    descriptor of


    Enter the user name:
    C:\Users\ratan > set oracle_sid = DST

    C:\Users\ratan > sqlplus scott/tiger@dst

    SQL * more: Production of release 11.2.0.1.0 sat Nov 26 16:50:02 2011

    Copyright (c) 1982, 2010, Oracle. All rights reserved.

    ERROR:
    ORA-12514: TNS:listener is not currently of service requested in connect
    descriptor of


    Enter the user name:

    Entered TNS are as below


    tnsnames.ora # Network Configuration file: C:\app\ratan\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.

    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))
    )
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    )
    )

    LISTENER_ORCL =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))


    DST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP (PORT = 1522))(HOST = localhost))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = DST)
    )
    )

    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    )
    )


    out of lsnrctl is as below

    C:\Users\ratan > lsnrctl status

    LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production November 26, 2011 16:51
    : 24

    Copyright (c) 1991, 2010, Oracle. All rights reserved.

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = ratan-PC)(PORT=1521)))
    TNS-12535: TNS:operation expired
    AMT-12560: TNS:protocol adapter error
    AMT-00505: Operation timed out
    Error Windows 32 bits: 60: unknown error

    C:\Users\ratan >

    Please let me know if any information is needed to answer my question.

    Ratnesh Sharma wrote:
    I don't think that there is such a limitation. but I don't know if a single listener can work. I installed 2 db to oracle 11g on the operating system of windows vista on my pc at home.

    A single listener, with the default name for LISTENER, using port 1521 single default, is quite capable of - in fact, WAS DESIGNED FOR - several instances of several versions of several ORACLE_HOMEs service. Having several headphones rarely accomplishes nothing except confusion between the diagnostic process, as your case showed clearly.

    A listener is simply a broker for connection requests. Having a listener for each database on a given server is the equivalent of the telephone company, creating and maintaining a separate table for each telephone number in the system

    You must read http://edstevensdba.wordpress.com/2011/03/19/ora-12514/

  • Question about running from two cameras at the same time with MAX

    Hello

    I have two cameras attached to NI PCIe-1430 frame grabber card (Atmel Aviiva M2 CL and Fairchild 2 K LS) IRLS. It's ok when I run two cameras individually, but I can't run them at the same time.

    This is the step that simultaneously run two device:

    1. open MAX, select the port and start image acquisition by pressing the 'Grab' button, I can see the image at this point.

    2. open another MAX session, select the other port and press "enter". I got following error:

    "Error 0xBFF60021".

    Unable to perform request; acquisition in progress'

    Sometimes, I got this error too:

    "Error 0xBFF60022".

    A timeout error occurred while you wait for the specified event. If you expect a picture, check the video data is acquired in the period. If in the meantime the signal, check that the assertion of signal has occurred within the period. »

    I already give enough timeout Fame to the tab settings of Acquisition.

    The MAX version used is 4.5.

    You have an idea on that? Makes simultaneous Imaging MAX support?

    Thank you

    -polarfox

    Thanks for the quick response Bruce.

  • Recommendation req - how two database with the same name can exist on a single server

    Description of the problem: I have a database named 'aaa' (9i db) in production and we need a copy of it to create 'aaa' in the same server with the same name, but an 11g database.

    9i 'aaa' is an exixting database in an AIX 5.3 Server.
    You will need to create a copy of this database 11 g named 'aaa' on the same server. I use the utility exp and imp db, but not sure how far it is recommended to have the same db names in a single server. Not sure about listener etc. problems.

    Any suggestions on this would be appreciated!

    Create this database for a specific application, test and cut classes to prod.

    The goal is admirable.
    The proposed plan makes me shudder.
    V11.2 must be installed on system new/other, IMO; to reduce the risk of wrong operation on the basis of incorrect data.

  • FK two in the same query/tabe

    I'm trying to return two fields in the table even through two joins in the same query.

    Take this example:
    : Table
    ID Varchar PK
    Name Varchar
    FK Varchar Person.ID Chief
    Backup of Varchar Person.ID FK

    DATA:
    1 MyProduct 123 345
    2 YouProdct 345 678

    Table: person
    ID Varchar PK
    Name Varchar

    DATA
    John 123
    James 345
    Tom 678

    I need to come back

    RESULT:
    Name Leader Backup
    MyProduct John James
    Tom James YouProdct

    I have a lot of different queries, but I always get what looks like a Cartesian product or a syntax error.

    Thanks in advance

    Published by: jdc114 on March 28, 2009 17:20

    What have you tried? It seems to me

    SELECT product.name, leader.name, backup.name
      FROM product,
           person leader,
           person backup
     WHERE product.leader = leader.id
       AND product.backup = backup.id
    

    would be sufficient.

    Justin

  • Why I have two different execution plans for the same query on two different servers

    Hello everyone.

    I need your help to solve the problem quickly.

    In a nutshell, we have two servers that have the same version of Oracle RDBMS (11.2.0.4 EE). One of them for purposes of development and another is a production one.

    We have therefore two different execution plans for the same query executed on both servers. The only case of execution is OK and another is too slow.

    So I have to slow down the work of query using the same scheme to explain that young.

    Fence wire.

  • I can't have multiple files open at the same time! I need to compare the content from one to the other. How to display two files at the same time?

    I can't have multiple files open at the same time! I need to compare the content from one to the other. How to display two files at the same time?

    Hi sindres79946597,

    Open Acrobat Reader DC, navigate to the Edit-> Preferences-> General-> uncheck "Open Documents in the new tab in the same window.

    Now, reboot your system, when you open multiple PDFs that all will open in a new window so that you can easily compare.

    Kind regards
    Nicos

  • How to display all the data to a database with the same name?

    I am familiar with the creation of basic website, but I want to learn how to create more dynamic Web sites.

    I create a Web site where a user can register on the site and counts there. Once into account here, there will be different options they can do.

    The new application form is in the section account it is configured for a user to submit a multiple application and save it in the database, that works, but the problem I have is during the examination of the application, it does show that one of them, not all.

    How can view the request of a user, sign in?datab.PNG

    revreq.PNG

    I can get to the screen, but not all.

    Is it possible to do this or any suggestions on how to do?

    Here's the code for the ReviewRequest:

    <? PHP require Connections/Connections.php"?" >

    <? PHP

    session_start();

    {if (isset($_SESSION["fname"]))}

    }

    else {}

    Header('Location:NewRequest.php');

    }

    ? >

    <? PHP

    $User = $_SESSION ['Pnom"];

    $result = $con-> query ("SELECT ALL * from newrequest where Fname ="$User"" ");

    $row = $result-> fetch_array (MYSQLI_BOTH);

    $_SESSION ["FirstName"] = $row ["Fname"];

    $_SESSION ['location'] = $row ["Location"];

    $_SESSION ['description'] = $row ['Description'];

    ? >

    <! doctype html >

    < html >

    < head >

    < link href = "CSS/Master.css" rel = "stylesheet" type = "text/css" / > "

    < link href = "CSS/Menu.css" rel = "stylesheet" type = "text/css" / > "

    < meta charset = 'utf-8 '.

    ReviewRequest < title > < / title >

    < / head >

    < body >

    < div class = "Container" >

    < div class = "Header" > < / div >

    < div class = "Menu" >

    < div id = 'Menu' >

    < nav >

    < ul class = "cssmenu" >

    < li > < a href = "Account.php" > account < /a > < /li > ""

    < li > < a href = "UpdateAccount.php" > update account < /a > < /li > ""

    < li > < a href = "NewRequest.php" > new request < /a > < /li > ""

    < li > < a href = "ReviewRequest.php" > Review Request < /a > < /li > ""

    < li > < a href = "LogOut.php" > sign out < /a > < /li > ""

    < /ul >

    < / nav >

    < / div >

    < / div >

    < div class = "LeftBody" > < / div >

    < div class = "RightBody" >

    < name of the form = "form1" method = "post" action = "" >

    < div class = "FormElement" >

    < label for = "FirstName" > < / label >

    < input name = "FirstName" type = 'text' required class = "TField" id = "First name" value = "<?" PHP echo $_SESSION ['FirstName'];? ' > ' >

    < / div >

    < div class = "FormElement" >

    < label for = 'Place' > < / label >

    < input name = "Location" type = 'text' required class = "TField" id = 'Location' value = "<?" PHP echo $_SESSION ['Location'];? ' > ' >

    < / div >

    < div class = "FormElement" >

    < label for = "Description" > < / label >

    < input name = "Description" required class = "TField" id = "Description" value = "<?" PHP echo $_SESSION ['Description'];? ' > ' >

    < / div >

    < / make >

    < / div >

    < div class = "Footer" > < / div >

    < / div >

    < / body >

    < / html >

    You would browse the information stored in the $result variable.

    $result = $con-> query ("SELECT ALL * from newrequest where Fname ="$User"" ");

    As below:

    fetch_assoc()) {? >}

    (I don't see a reason to assign data to a variable of $_SESSION?)

    You also probably would be well advised to select information based on a uniquie rather than a name id - if two people have the same name youre UNLESS you want to make sure that two identical Fname can be stored in your tabe stuffed.

    $result = $con-> query ("SELECT ALL * from newrequest where userID = '$userID'");

    userID |     Fname |     Location |                      Description

    8 the end of the road muddy and foggy

    11 this something, no idea

    8               the              rstreet                           rah

    8 is not a clue

    14 Hello Goodbye

  • explain plan for the same query diff

    Hi experts,

    Please, help me understand explain the plan.  I have tow Server (server and two server). The server are same table, even the type of database, even version Oracle (gr 11 (2), same operating system (linux Redhat 5.5) and same table and index.

    but when I explain the plan for the same query on the two server. I got diff--diff to explain the plan. reason it has different, according to my understanding, it should be same. explain please, I share the explain plan and lower indices for the two server.

    Server a

    SQL > col COLUMN_NAME format a20

    SQL > select index_name, column_name, position_colonne from user_ind_columns where table_name = 'LOAN_RUNNING_DETAILS_SOUTH"of order 1.

    INDEX_NAME COLUMN_NAME POSITION_COLONNE

    ------------------------------ -------------------- ---------------

    DATE_IND1_S LOANDATETIME 1

    IND_MSI_LN_LNS1_S MSISDN 1

    IND_MSI_LN_LNS1_S LOANDATETIME 2

    IND_MSI_LN_LNS1_S LOANSTATUS 3

    LAST_INDEX L_INDX_MSISDN_S 1

    MSISDN L_INDX_MSISDN_S 2

    SQL > select decode (status, 'N/a', 'Part Hdr', 'Global') ind_type, index_name, NULL nom_partition, status

    2 from user_indexes where table_name = 'LOAN_RUNNING_DETAILS_SOUTH '.

    3 union

    4. Select 'Local' ind_type, index_name, nom_partition, status

    5 to user_ind_partitions where index-name in (select index_name in user_indexes where table_name = 'LOAN_RUNNING_DETAILS_SOUTH')

    6 order of 1,2,3;

    IND_TYPE INDEX_NAME NOM_PARTITION STATUS

    -------- ------------------------------ ------------------------------ --------

    Global DATE_IND1_S VALID

    Global IND_MSI_LN_LNS1_S VALID

    Global L_INDX_MSISDN_S VALID

    SQL > explain plan for the small circle of MSISDN, TID, of LOAN_RUNNING_DETAILS_SOUTH where LOANDATETIME < = sysdate-2 and LOANDATETIME > sysdate-15 and LOANTYPE = 1;

    He explained.

    SQL > SQL > set line 200

    @?/rdbms/admin/utlxpls.sql

    SQL >

    PLAN_TABLE_OUTPUT

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Hash value of plan: 3659874059

    ------------------------------------------------------------------------------------------------------------------

    | ID | Operation | Name                       | Lines | Bytes | Cost (% CPU). Time | Pstart. Pstop |

    ------------------------------------------------------------------------------------------------------------------

    |   0 | SELECT STATEMENT |                            |  1448K |    58 M | 21973 (2) | 00:04:24 |       |       |

    |*  1 |  FILTER |                            |       |       |            |          |       |       |

    |   2.   PARTITION LIST ALL |                            |  1448K |    58 M | 21973 (2) | 00:04:24 |     1.    11.

    |*  3 |    TABLE ACCESS FULL | LOAN_RUNNING_DETAILS_SOUTH |  1448K |    58 M | 21973 (2) | 00:04:24 |     1.    11.

    ------------------------------------------------------------------------------------------------------------------

    PLAN_TABLE_OUTPUT

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):

    ---------------------------------------------------

    1 - filter(SYSDATE@!-2>SYSDATE@!-15)

    3 - filter("LOANTYPE"=1 AND "LOANDATETIME">SYSDATE@!-15 AND "LOANDATETIME"<=SYSDATE@!-2)

    16 selected lines.

    Second server

    SQL > select index_name, column_name, position_colonne from user_ind_columns where table_name = 'LOAN_RUNNING_DETAILS_SOUTH"of order 1.

    INDEX_NAME COLUMN_NAME POSITION_COLONNE

    ------------------------------ -------------------- ---------------

    DATE_IND1_S LOANDATETIME 1

    IND_MSI_LN_LNS1_S MSISDN 1

    IND_MSI_LN_LNS1_S LOANDATETIME 2

    IND_MSI_LN_LNS1_S LOANSTATUS 3

    LAST_INDEX L_INDX_MSISDN_S 1

    MSISDN L_INDX_MSISDN_S 2

    SQL > select decode (status, 'N/a', 'Part Hdr', 'Global') ind_type, index_name, NULL nom_partition, status

    2 from user_indexes where table_name = 'LOAN_RUNNING_DETAILS_SOUTH '.

    Union

    3 4 Select 'Local' ind_type, index_name, nom_partition, status

    5 to user_ind_partitions where index-name in (select index_name in user_indexes where table_name = 'LOAN_RUNNING_DETAILS_SOUTH')

    6 order of 1,2,3;

    IND_TYPE INDEX_NAME NOM_PARTITION STATUS

    -------- ------------------------------ ------------------------------ --------

    Global DATE_IND1_S VALID

    Global IND_MSI_LN_LNS1_S VALID

    Global L_INDX_MSISDN_S VALID

    SQL > explain plan for the small circle of MSISDN, TID, of LOAN_RUNNING_DETAILS_SOUTH where LOANDATETIME < = sysdate-2 and LOANDATETIME > sysdate-15 and LOANTYPE = 1;

    SQL > set line 200

    @?/rdbms/admin/utlxpls.sql

    SQL >

    PLAN_TABLE_OUTPUT

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Hash value of plan: 1161680601

    ----------------------------------------------------------------------------------------------------------------------------------

    | ID | Operation | Name                       | Lines | Bytes | Cost (% CPU). Time | Pstart. Pstop |

    ----------------------------------------------------------------------------------------------------------------------------------

    |   0 | SELECT STATEMENT |                            |     2.    84.     5 (0) | 00:00:01 |       |       |

    |*  1 |  FILTER                             |                            |       |       |            |          |       |       |

    |*  2 |   TABLE ACCESS BY INDEX ROWID | LOAN_RUNNING_DETAILS_SOUTH |     2.    84.     5 (0) | 00:00:01 | ROWID | ROWID |

    |*  3 |    INDEX RANGE SCAN | DATE_IND1_S |     2.       |     3 (0) | 00:00:01 |       |       |

    ----------------------------------------------------------------------------------------------------------------------------------

    PLAN_TABLE_OUTPUT

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):

    ---------------------------------------------------

    1 - filter(SYSDATE@!-2>SYSDATE@!-15)

    2 - filter ("LOANTYPE" = 1)

    3 - access("LOANDATETIME">SYSDATE@!-15 AND "LOANDATETIME"<=SYSDATE@!-2)

    17 selected lines.

    Reg,

    Hard

    Hi , HemantKChitale,

    I also update statistics manual as you say, but not see 'TABLE ACCESS FULL' good result

    What should I do? my need of production tuning, but I cannot able tune this...

    SQL > exec dbms_stats.gather_table_stats (-online 'ttt' ownname, tabname => 'LOAN_RUNNING_DETAILS_SOUTH', cascade => TRUE, estimate_percent => NULL, method_opt => 'for all columns size 254', => of degree 4);

    PL/SQL procedure successfully completed.

    SQL > explain plan for the small circle of MSISDN, TID, of LOAN_RUNNING_DETAILS_SOUTH where LOANDATETIME<=sysdate-2 and="" loandatetime="">sysdate-15 and LOANTYPE = 1;

    He explained.

    SQL > set line 200

    @?/rdbms/admin/utlxpls.sql

    SQL >

    PLAN_TABLE_OUTPUT

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Hash value of plan: 3659874059

    ------------------------------------------------------------------------------------------------------------------

    | ID | Operation | Name                       | Lines | Bytes | Cost (% CPU). Time | Pstart. Pstop |

    ------------------------------------------------------------------------------------------------------------------

    |   0 | SELECT STATEMENT |                            |  1874K |    75 M | 19626 (2) | 00:03:56 |       |       |

    |*  1 |  FILTER |                            |       |       |            |          |       |       |

    |   2.   PARTITION LIST ALL |                            |  1874K |    75 M | 19626 (2) | 00:03:56 |     1.    11.

    |*  3 |    TABLE ACCESS FULL | LOAN_RUNNING_DETAILS_SOUTH |  1874K |    75 M | 19626 (2) | 00:03:56 |     1.    11.

    ------------------------------------------------------------------------------------------------------------------

    PLAN_TABLE_OUTPUT

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):

    ---------------------------------------------------

    1 - filter(SYSDATE@!-2>SYSDATE@!-15)

    3 - filter("LOANDATETIME">SYSDATE@!-15 AND "LOANTYPE"=1 AND "LOANDATETIME")<>

    16 selected lines.

  • Two objects with the same name

    Hi all

    In my production database, there is a materialized view and a table with the same name. The two objects have the same number and type of columns.

    Record from user_object table

    OBJECT_NAMESUBOBJECT_NAMEOBJECT_IDDATA_OBJECT_IDOBJECT_TYPECREATEDLAST_DDL_TIMETIMESTAMPSTATUSTEMPORARYGENERATEDSECONDARYNAMESPACEEDITION_NAME
    TEST_OBJ151373151373TABLE22/06/201222/06/20122012-06 - 22:15:39:30VALIDNNN1
    TEST_OBJ152287MATERIALIZED VIEW22/06/201208/03/20122012-06 - 22:16:08:46VALIDNNN19

    I have another mode to normal display, TEST_NORMAL_VIEW, which selects the data of TEST_OBJ.

    Then, on which table data select. Please give some input on this subject.

    Kind regards

    Matondo

    A materialized view has 2 objects internally for her

    1. the materialized view (it is more of a model)

    2. the table that stores the actual data.

    So when you create a materialized view, you can see 2 objects created by querying the USER_OBJECTS.

    See this

    SQL> create materialized view my_test_mv as select * from emp;
    
    Materialized view created.
    
    SQL> select object_type, object_name, data_object_id from user_objects where object_name = 'MY_TEST_MV';
    
    OBJECT_TYPE        OBJECT_NAME          DATA_OBJECT_ID
    ------------------- -------------------- --------------
    TABLE              MY_TEST_MV                  1638964
    MATERIALIZED VIEW  MY_TEST_MV
    

    Now, you may notice that DATA_OBJECT_ID has null for the MV. DATA_OBJECT_ID is the Segment where the data is stored. As MV object is just a model and does not have data to null.

    The user has no direct access to the MY_TEST_MV table. See this

    SQL> drop table my_test_mv;
    drop table my_test_mv
               *
    ERROR at line 1:
    ORA-12083: must use DROP MATERIALIZED VIEW to drop "KARTHICK"."MY_TEST_MV"
    

    Also, you can associate an existing table to a materialized using the clause ON TABLE PREDEFINED view.

    Here is an example

    SQL> drop materialized view my_test_mv;
    
    Materialized view dropped.
    
    SQL> create table my_test_mv_new as select * from emp;
    
    Table created.
    
    SQL> select object_type, object_name, data_object_id from user_objects where object_name = 'MY_TEST_MV_NEW';
    
    OBJECT_TYPE         OBJECT_NAME          DATA_OBJECT_ID
    ------------------- -------------------- --------------
    TABLE               MY_TEST_MV_NEW              1638967
    
    SQL> create materialized view my_test_mv_new on prebuilt table as select * from emp;
    
    Materialized view created.
    
    SQL> select object_type, object_name, data_object_id from user_objects where object_name = 'MY_TEST_MV_NEW';
    
    OBJECT_TYPE         OBJECT_NAME          DATA_OBJECT_ID
    ------------------- -------------------- --------------
    TABLE               MY_TEST_MV_NEW              1638967
    MATERIALIZED VIEW   MY_TEST_MV_NEW
    
    SQL>
    

    Once you associate a Table with a MV direct Table access is limited. You can directly access only the MV.

  • How to have two copies of the same program to install on WIndows 7 and on the desktop

    «"" "Dear help forum:»»"»

    I am new to WIndows 7, but just have not found the right research
    How to get my answer from Microsoft/Windows 7 basic knowledge.

    I have two programs. There are two versions of the same program
    ('LACE') One is the version 4.0.1, and the other is Version 4.0.6.

    I wish I had one old continue to run (using a purchased
    Product key which I own and have for years).

    BUT there is a problem. The old and new programs are the
    same 'setup.exe '? Download 124 MB each. There are small but
    many corrections and changes in the new program, I am told, but
    they do not have add up to change the size in MB of the program.

    SO I'm in trouble when I'm trying to download the program, as
    It seems to be in WIndows 7, a small program that removes the
    size of the incoming download and informed me that I can not download
    a new that I have already one of this program is installed in the
    computer!

    He asks me if I want to "Uninstall" the previous version and then replace
    It is with a new one. I can't cancel the old version because she had a
    Product key that was told to me in the instructions that he could
    only be used 'once', to uninstall the program won't help
    me as I won't be able to continue to use this program once again, as the
    registration code could only be used once.

    I have a purchased code new, different program version 4.0.6.

    Is this a problem with WIndows 7? I already called/sent the
    company and they have no help and no solution for how these two programs
    are to run on the same computer at the same time.

    Can you please help me and provide instructions on how I load
    This program of "LACE" most recent second size 124 MB and even download
    name in the computer (replacing the automated duplicate program
    prevention installer routine), so I can have and use two copies of
    This program on the computer at the same time?

    During the creation of this issue, I had an idea of what will happen if I created a
    second Downloaded Programs folder to contain the program setup.exe inside
    and try the operation or the opening of this place. He did not like
    the program checked the computer for the first copies of the
    LACE and identified, he was always present in the computer and asked
    Once again if I wanted to remove it.

    Thank you very much!

    If this program is not designed for the execution of the two copies on a single installation of Windows, then you simply can't do.  No ifs, ANDS or goals.  You have never been able to do with any version of Windows, and apparently the creators of this program thinks there is no reason to do so, then you'll just have to choose one version or another.  I'm not familiar with the lace, but more recent versions programs usually include most of the older features while adding the most recent.  They sometimes make us learn new ways of doing things that make us less happy, but I'm afraid that's life in the world of computing.

    That said, I must mention that there may be alternatives that you might continue even if they are less obvious than what you suggested.  If you have the professional version or full edition of Windows, you can get XP mode free you can start Windows 7.  It normally happens in 15 to 30 seconds and you could install and run another version of your program under that.  If you do not either of these versions, you can invest in the Anytime Upgrade and do it available.  Upgrade Home Premium to professional is $ 90.

    The other alternative would be a dual-boot configuration where you could have two versions of Windows in separate partitions, so when you start your computer, you can select the one with the version of your program you want.  I think that the choice of the XP mode would be preferable because it would be so much easier to use, but these two options are available, if you want to continue.

    Good luck.

  • How I would compare if two indexes are the same?

    I like to compare if two indexes of two users are the same. Is it possible to to that. I need similer to query below:

    to select (2 * (select count (*) from (select * of XPKTBL_A CROSS, select * from XPKTBL_A)) - (select count (*) in XPKTBL_A) - (select count (*) in XPKTBL_A)) WHEN 0 THEN "Index are the same" ELSE 'Indices are different' END 'Result' from DUAL;

    UserA:

    create table TBL_A (FIELD_A1 number not null,

    FIELD_A2 varchar2 (50).

    Date of FIELD_A3,

    FIELD_A4 number (5.2) default 0,

    FIELD_A5 varchar2 (10) not null

    );

    create a unique index XPKTBL_A on TBL_A (FIELD_A1);

    UserB:

    create table TBL_A (FIELD_A1 number not null,

    FIELD_A2 varchar2 (20).

    FIELD_A4 number (5.2) not null,

    FIELD_A5 varchar2 (10),

    FIELD_A6 number (2) not null

    );

    create a unique index XPKTBL_A on TBL_A (FIELD_A1, FIELD_A6);

    Thanks for the reply Lalit and sorry for the late reply... I got my answer already.

  • [SOLVED] Help fixing 'file two systems with the same uuid were detected.

    I have a Setup ESXi embedded (installed on a USB key connected to the internal USB port) on a Dell T710 with few of the SAS drives.  I tried the upgrade to 4.0 - 294855 to 4.1 - 348481 by following the instructions here via:

    esxupdate--bundle=/vmfs/volumes/datastore_name/path/to/upgrade-from-esxi4.0-to-4.1-update01-348481.zip update

    Even if it is done correctly, when I restarted I got a purple screen with this message on this subject:

    The system has found a problem on your machine and cannot continue.

    Two systems with the same UUID files have been detected.  Make sure that you do not have two installations of ESXi.

    So, he tried to update one of the SAS drives internal versus inside USB key...?

    I studied this time before & found a threadwhere posted to help, but it wasn't enough to get me going.  Tonight, I found KB1035107 which details how to fix this, but I have a few concerns:

    • How can I identify the drive that has the invalid ESXi installation?
    • Better yet: How can I identify who / disc is the one with the ESXi installation I want to keep?
      • I know that I can use esxcfg-mpath-l., esxcfg-mpath-band esxcfg-scsidevs-l to collect the disk & LUN information.  But what happens if it wasn't a built-in installation?  If ESXi was installed on one of the SAS drives, how could I confirm which drive it actually installed on?
    • What is the worst that could happen with the performance he commands in the KB above?
      • Do I need to worry about migration whatever data is stored elsewhere there until I can get through this?

    Finally, and perhaps more important than these other issues:

    It is for me a way to specify which disk/drive/device to target when executing upgrades, more precisely from 4.0 to 4.1?

    How can I perform upgrades in the future without having to worry about this nonsense?  I don't want to have to disconnect from the LUN/warehouses of data whenever there is an upgrade (major or minor).


    Thank you very much.

    Did the HD with the data store show other partitions if your running fdisk-l?

  • Update two tables at the same time?

    Hi, I'm having some trouble finding how to create a new field in both tables of the same shape. (php mysql)

    I have two paintings: a table listing the projects and

    a table listing assignments for example, a project may have more than one assignment.

    When the user submits the form the insert record server behavior creates a new project. The projectID in the project table field is an AutoNumber created in mysql.

    Now when the new assignment record is created in the assignment table must use the projectID AutoNumber to refer to the parent project.

    That's the problem, I don't know how to get the new AutoNumber the table project. I tried setting a variable from a select query to find the last record on the project table... but the problem is that it assigns the value when you load the web page. If two users loading the same page before insertion, the action takes place so both are assigned the same projectID. Of course, which is useless.

    I'm not a programmer so need help to understand this.

    See you soon,.

    How to retrieve the value of an autoincrement column:

    http://www.gotocode.com/art.asp?art_id=80&

Maybe you are looking for