What is the best (Group of string or number)

Dear all,

I want to know if group by on a column which is number is better or if the group by on a column which is varchar2 is better?

AHUOO: I create a table dept_test with 1 million records and grouped by deptno and dname and checked the cost.
I found no difference.


Receive your answer on this one.

Kind regards
Madhu K.

My PM said that oracle will not work if we group by on a column that is the data type instead of the number data type character and I doubt that.

You're right & PM believe in urban legends.
Asks MP to provide a reproducible test that supports his position & shows the problem with the VARCHAR2 data type.

Tags: Database

Similar Questions

  • What is the best option to get Email group subscription to CRM Contacts (in time real/as it changes)

    Hello world

    I evaluate me and come up with approaches multiples, but want to ask everybody, what is the best and easiest method to get subscriptions to e-mail to CRM Group since they change, virtually in real time in CRM (SFDC or other).

    I understand internal call/event allows only the global subscription status be synchronized with CRM, my problem is subscription group.

    Would love to hear all of the approaches.

    Thank you

    Amit Pandya

    Hi Amit,

    Others may have another alternative, but what I've done in the past is to create a "Subscriptions" Eloqua field both SFDC and make a multiple selection with the same values as the E-mail groups in Eloqua. Then, when a person subscribes to some groups of Email, in addition to the update of their Email Group subscriptions, I also update the values in the field 'Subscriptions' and then add in the update CRM program so that subscriptions are updated in the master record or Contact SFDC.

    I work with a client who succeeded subscriptions on the side SFDC in an object custom. It's doable as well, but it is a bit tricky when people of the Nations United-subscription of a group. We ended up creating a record for every email of the contact group to subscribe on a custom object with the name of Group of e-mail and a value of 'Yes' in a field called "Customer", and then if the contact came back and unsubscribed from a group they have already subscribed to, we updated account of this group of e-mail on the custom with a value of 'No' object in the field 'Subscriber '. A little more complicated and more difficult to manage and maintain, but it allows more coverage as you can tell for each group of Email when someone is first of all a (rather than having a single field of "Subscriptions" in the main folder or Contact which houses all subscriptions).

    Hope that helps!

    Kim

  • What is the best Connection string for the application to connect to standby mode active

    I have setup a primary database and a database of active standby on both servers in a different city.

    Now for people to test, what is the best tnsnames chains that I provide them?

    In addition, how do I test?

    Thanks in advance.

    No I don't think so. (I'd use the Uwe Hesse document, it is the best!)

    In my test document I just created on the primary and assumed Data Guard "moved" a copy for my watch.

    Pretty easy to check and the worst thing that can happen is that he barks cause there is already.

    Its a great solution

    This configuration offers many advantages:

    Guests can reconnect using the same connection string.

    Need to communicate with customers is reduced, especially after hours.

    Primary maintenance may occur with only minor interruption of service.

    Name of databases may be different without impact to the customer.

    Best regards

    mseberg

    Published by: mseberg on December 6, 2011 16:03

    Planner for Oracle 11 has a feature allowing employment to go with the main role too.

    DBMS_SCHEDULER.set_attribute ('primary_job', 'database_role', 'PRIMARY');

    It is worth I think.

  • What is the best way to stick a person in a group photo?

    I went to a friends House who had all their immediate family that came together, except one. I took a picture of the whole group that turned out to be good enough and they sent me a photo of a person who is missing. I scanned the photo and now I want to place the missing person in the group photo. Can anyone describe how to do this. I think something with layer masks or paint tools, but I don't know what is the best route. Can someone help me? It will probably not be perfect, but I hope that it will look OK.

    Thank you

    Lou Hosta

    Isolate the 'new' person of the background.  This is possible through a variety of methods, such as the pen tool, the quick selection tool and refine edges, masking, etc..

    Then copy the isolated image drag the group photo and transform it into a smart object.  Allow you to scale proportionally on the same size as the people in the rest of the group with minimal loss of image quality.

    If you need more detailed instructions, Google is your friend.  There are many tutorials in each of these topics out there.  There are also "Photoshop Classroom in a Book" series.

    Teach you Photoshop ("step by step") beyond the scope of this forum.

  • What is the best way to obtain a string that represents a date in the format mm/dd/yyyy

    What is the best way to obtain a string that represents a date in the format mm/dd/yyyy

    It would be good if I could generate this string using the static methods of a class.






    You can use date formatter:

    Import mx.formatters.DateFormatter;
    ...

    var trainer: DateFormatter = new DateFormatter();
    formatter.formatString = "YYYY/MM/DD JJ:NN:SS;
    var today: Date = new Date();
    trace (formatter.format (now));

  • What is the best way to show 1000 objects moving in a field?

    Hello. I'm trying to JavaFX 2.0 and higher. I want to create 1000 objects (because now they can be rectangles) and move them randomly (for now). What is the best way to do this? Do I have to create an initial keyframe for each object? I was watching the demo of BrickBreaker. Is all that I need? I'm looking for a simple example. For example: ColorfulCirclesSample. Basically, what I want to do is create 1000 rectangles with random attributes including a vector (direction and speed) and show them using JavaFX 2.x.

    Thanks in advance.

    ServandoC

    Not that this is the best way, but it's an example, you can try:

    import java.util.Random;
    import javafx.animation.*;
    import javafx.application.Application;
    import javafx.event.*;
    import javafx.scene.*;
    import javafx.scene.image.*;
    import javafx.scene.input.KeyEvent;
    import javafx.scene.paint.Color;
    import javafx.scene.transform.Rotate;
    import javafx.stage.Screen;
    import javafx.stage.Stage;
    import javafx.util.Duration;
    
    // animates a 1000 objects (klingons) moving around the scene at random directions and velocity.
    public class ObjectsInMotion extends Application {
      private static Random random = new Random(42);
      private static final int    N_OBJECTS   = 1000;
      private static final int    OBJECT_SIZE = 20;
      private static final Image  KLINGON = new Image("http://icons.mysitemyway.com/wp-content/gallery/green-jelly-icons-transport-travel/038998-green-jelly-icon-transport-travel-star-trek-sc43.png", OBJECT_SIZE, OBJECT_SIZE, true, true);
      public static void main(String[] args) { launch(args); }
      @Override public void start(final Stage stage) throws Exception {
        // initialize the stage to fill the screen with klingons.
        stage.setTitle("Starboard bow");
        stage.setFullScreen(true);
        final double screenWidth    = Screen.getPrimary().getBounds().getWidth();
        final double screenHeight   = Screen.getPrimary().getBounds().getHeight();
        final Group objects = new Group(constructObjects(N_OBJECTS, OBJECT_SIZE, (int) screenWidth, (int) screenHeight));
        stage.setScene(new Scene(objects, screenWidth, screenHeight, Color.MIDNIGHTBLUE.darker().darker().darker()));
        stage.show();
    
        // press any key to exit the program.
        stage.getScene().setOnKeyTyped(new EventHandler() {
          @Override public void handle(KeyEvent event) {
            stage.close();
          }
        });
    
        // move the klingons around according to their motion vectors.
        final Timeline timeline = new Timeline(
          new KeyFrame(
            new Duration(1000/30), // update the klingon's motion 30 times a second.
            new EventHandler() {
              @Override public void handle(ActionEvent event) {
                for (Node n: objects.getChildren()) {
                  // apply the motion vector for this object to determine the object's new location.
                  MotionVector vector = (MotionVector) n.getUserData();
                  double tx = n.getTranslateX() + vector.velocity * Math.cos(Math.toRadians(vector.angle));
                  double ty = n.getTranslateY() + vector.velocity * Math.sin(Math.toRadians(vector.angle));
    
                  // wrap the objects around when they fall off the starfield.
                  if (tx + n.getLayoutX() > screenWidth)  tx -= screenWidth;
                  if (tx + n.getLayoutX() < 0)            tx += screenWidth;
                  if (ty + n.getLayoutY() > screenHeight) ty -= screenHeight;
                  if (ty + n.getLayoutY() < 0)            ty += screenHeight;
    
                  // update the object co-ordinates.
                  n.setTranslateX(tx);
                  n.setTranslateY(ty);
                }
              }
            }
          )
        );
        timeline.setRate(5);
        timeline.getCurrentRate();
        timeline.setCycleCount(Animation.INDEFINITE);
        timeline.play();
      }
    
      // construct an array of n objects of rectangular size spaced randomly within a field of width and height.
      private Node[] constructObjects(final int n, final int size, final int width, final int height) {
        Node[] nodes = new Node[n];
        for (int i = 0; i < n; i++) {
          ImageView node = new ImageView(KLINGON);
          node.setLayoutX(random.nextInt(width  - size / 2));
          node.setLayoutY(random.nextInt(height - size / 2));
          MotionVector vector = new MotionVector();
          node.setUserData(vector);
          // rotate the klingon to align with the motion vector accounting for the klingon image initially pointing south-west.
          node.getTransforms().add(new Rotate(vector.angle + 225, node.getFitWidth() / 2, node.getFitHeight() / 2));
          nodes[i] = node;
        }
    
        return nodes;
      }
    
      // polar co-ordinates of a motion vector.
      class MotionVector {
        final double velocity = random.nextDouble();
        final double angle    = random.nextDouble() * 360;
      }
    }
    
  • Different screen resolutions - what is the best method?

    Hello

    I know that this question was asked a thousand times before, but what is the best way and the most reliable to deal with different screen resolutions?

    I read a lot of posts about it and tested on everything: unique, methods, combinations, let labview scale my objects, their scale by myself, etc. Another alternative that I found was to design the front panel to the lower screen resolution, let labview scale objects (graphics, controls tab and decorations) as window increases or decreases and lock "groups of indicators, controls and text" to prevent them from scaling and overlap. However, if I lock these "groups" that they don't move in the right place in the resizing of the window. Then, I put these 'groups' within groups and tried to compensate for the position via the property node, but it was not possible because the 'groups' within the cluster have been locked!

    After all these tests, I realized that the best way to manage different screen resolutions must have a main VI that detects the current screen resolution and load the good VI for this resolution. The problem is that I have a VI for each screen resolution (created one by one) and if I want to move the code I have to do the same task for all the screws

    Since I already have all the screws (for different screen resolutions), I could get the sizes and positions of all the objects through property nodes and create a kind of 'cluster' which, after the detection of the current screen resolution, would be to adjust all the objects. But I have several decorations in the front panel and I can not get information via the node property of them.

    THW way you can prevent the control to move when you're scaling, is to group the controls with 'something' which is placed outside the façade. In the example I give you now, you can see that I have grouped the stop button and the 'red faces' with a 'point' on the left side of the front panel.

  • What is the best lens for a photographer to Starter?

    I am a photographer of starter and have a canon 100 d and was wondering what is the best Starter lens? I like to take pictures of landscapes, buildings, landscapes, people and flowers.

    nadineblakeway wrote:
    I am a photographer of starter and have a canon 100 d and was wondering what is the best Starter lens? I like to take pictures of landscapes, buildings, landscapes, people and flowers.

    A cheap goal, preferably the "kit" lens supplied with your camera. Many self-styled counselors, most of them well-meaning and some of them, the regulars of this group, will tell you to buy the best lens you can afford; the lens is what makes the image; you make an investment in the future; etc. ; etc. Don't listen to them. Once you are no longer a beginner, you will have a better idea of the direction you want to go, and you can use the money you save now to buy a goal of better quality (and perhaps more appropriate) then. And when ask you for advice, you'll have better recognition of that made sense and who is just sitting there and let her fingers wander on the keyboard.

  • What is the best way for foglight consume a webservice

    I hope that this is has not been replied that a bazillion times and if it is please send me the link I'm open to that.  What is the best way for foglight consume a Web service and respond with an alarm if the response from the Web service is not what is expexted.

    for example, calls Foglight webservice to acme.com/areuup and he responds with correct status in json format process.  If it does agree return, then foglight must send alerts to correct individuals.

    Thank you

    Kaleb

    in the end, we have used a perl script to capture the webservice and treat it and tables configuration.  Here is what has been written and created an agent custom.

    I apologize to all those who find the bulky comments, but it's my edition of journal of the script. I removed the comments once the script has been published and used.

    ===

    #! / usr/bin/perl

    #############################################################

    # Author: Kaleb J. Albee

    # Depandancies: SOA webservice

    # Engineers: Marc and Manu

    # Date: 28/02/2013 perl: (v5.14.2) built for x86_64-linux-gnu-thread-multi

    # Operating system: Linux 3.2.0 - 29-generic eam-ops-test #46 - Ubuntu SMP Wed Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

    #############################################################

    use strict;

    use warnings;

    use Try::Tiny;

    use SOAP::Lite;

    use SOAP::WSDL;

    Use Time::Local;

    My = @soaenvs ('BSE - dev', 'BSE test', 'BSE-scene', 'BSE');

    # parameters: $_ [0] receives a call of SOAP client object.

    #

    void toStr {return $_ [0] == 1?} 'up': 'down' ;}

    void getBusResults {}

    # $_ [0] will be the $client spent

    # create a different buses SOAP connection.

    my $result = $_ [0]-> (getMessagingEngineHealth)

    # arg0 is used to set the setting for what is expected on the soa web service.

    SOAP::Data-> name (arg0 => $_ [1]));

    # $_ [1] will be the bus happened in

    return (Lk ($result) "started" eq? 1: 0);

    #return $result;

    }

    # Start sampling.

    My $curTimeStamp = "";

    my $count = 0;

    Print "LdsEsbBusHealth5\nSTART_SAMPLE_PERIOD\n TABLE";

    foreach my {$soae (@soaenvs)

    my $client is SOAP::Lite-> service ("put the url of the webservice here.");.

    $count ++;

    # create an object to inspect objects. My $insp = Data new::Inspect->; Download the time stamp for this.

    my ($sec, $min, $hr, $day, $mon, $year) = localtime;

    # format the year correctly for useage.

    My $curyear = 1900 + $year;

    # the hand to the fglam agent fields at the tables.

    My $soacei = getBusResults ($client, "messaging.000 - CEI.esb.BUS");

    My $soaapp = getBusResults ($client, "messaging.000 - SCA.APPLICATION.esb.Bus");

    My $soasys = getBusResults ($client, "messaging.000 - SCA.SYSTEM.esb.Bus");

    $curTimeStamp = ' $curyear$ MON$ day$ hr$ min$ s ";

    Print "SoaEnv.String.id=$soae\n";

    Print "CeiBusNum = $soacei\n";

    Print "AppBusNum = $soaapp\n";

    Print "SysBusNum = $soasys\n";

    Print "CeiBusStr.StringObservation.obs =". toStr ($soacei). "\n";

    Print "AppBusStr.StringObservation.obs =". toStr ($soaapp). "\n";

    Print "SysBusStr.StringObservation.obs =". toStr ($soasys). "\n";

    Print "Daterun.StringObservation.obs=$curTimeStamp\n";

    If ($count<=>

    Print ("NEXT_SAMPLE\n");

    }

    } {$soae foreach (@soaenvs) #.

    Print "END_TABLE\n";

    Exit 0;

    ===

    I hope this helps someone out there!

    Bravo!

  • What is the best way to change the size of a design?

    I have an announcement in A4 format and need to change it to a bunch of different sizes, what is the best way to do it? Just making it smaller does not work because the text that it becomes small to read.

    Erica Gamet gave a great presentation on this topic (which creates several sizes of an ad in InDesign) to my user group earlier this year. There are two messages for Erica who explains how to put in place:

    http://creativepro.com/understanding-liquid-layouts-part-one/

    http://creativepro.com/understanding-liquid-layouts-part-two/

  • Just ordered new MacBook Pro. What is the best way to transfer Photoshop, InDesign

    I just ordered new MacBook Pro. I need to transfer files and applications from my old to my new MacBook.  What is the best way to do this with the least time involved? I have our serial numbers for Photoshop and InDesign available group license.

    Thank you

    Please see CS5 download products

    Hope that helps!

  • What is the best way to share a project hearing and/or creation with other users of adobe on other devices?

    I'm not a professional and I am very new to adobe, but I'm working on group projects with other people and they asked that instead of export of audio and video files, hearing, or first, I actually just give them the project so they ca works on it, as well in case any changes need to be made.

    Is it possible to share the concrete projects (not exports) WITH all the video and audio still in place with other people on other computers? If Yes, what is the best way to do this?

    Thank you very much in advance, even if it's completely impossible.

    Hello

    You might find better answered in the forums of Audition CS5.5, CS6 & CC to your question.

    Thank you

    Warner

  • Big 2 TB + vm - what is the best practice?

    Hello

    Our file server currently uses the measure with a total area of 4 to DS. The virtual machine contains 11 vDisks with sizes ranging from 50 GB to 1.35 to totaling 3.8 TB of data. each vDisk belongs to a division within the company. We are running out of space on the DS, and we need to make changes.

    I did read something positive on the use of measurement other than for a short fix.

    Question: What are the best practices to go forward get rid us of the widespread use, it has been suggested, we look at DFS or perhaps a new virtual machine intended only for the major divisions.

    If we add a new disk and that it points to an another DS on it's own logic unit number, we run into the trouble of storage vMotion, try to group the disc under a store.

    I'm sure that there are large organizations out there running in this situation, any guidance is appreciated!

    See you soon

    Brendan

    If you need a file server, that SFR might be a solution.

    You can use vmdk as well on the same VM, or more file servers.

    For other purposes, you can use the junction to mount a drive in a folder.

    André

  • What is the best configuration of network with 4 NICs (2 x 10GB and 2 x 1 GB)

    I have 4 hosts running ESXi 4 Enterprise license with 2 x 10GB and NIC 2 x 1 GB, what is the best configuration of network to be used in this configuration? where FT logging should go? I can't add NICs more because it is on the HP blades.

    It's my current setup:

    Thank you

    Dan

    You talk about the c3000 blade enclosure, aren't you?

    For a solution tolerant when disaster strikes, you will go probably with:

    VSwitch0 has.)

    Physical NIC: vmnic0 (1 Gbps) + vmnic2 (10 GB/s)

    (A.1) VMkernel Port Group (network management)

    vmnic0 = standby

    vmnic2 = active

    (A.2) VMkernel Port Group (Vmotion)

    vmnic0 = active

    vmnic2 = standby

    Networks of Virtual Machine A.3)

    vmnic0 = standby

    vmnic2 = active

    VSwitch1 B.)

    Physical NIC: vmnic0 (1 Gbps) + vmnic3 (10 GB/s)

    (B.1) VMkernel Port Group (Fault Tolerance)

    vmnic1 = standby

    vmnic3 = active

    -Default - VMware uses round robin to assign a virtual computer to one vmnic.

    So you don't configure port aggregating on the switches.

    You can, however, traffic using if possible VIRTUAL networks, this is why you must configure the ports as junction ports.

    André

  • What is the best intermediate codec should I use for editing in Premiere Pro CS6

    I am a photographer at video edting and unfamiliar with codecs. I work with video Time lapse 1920x1080p generated by Lightroom 4 through LRTimelapse, which uses the H.264 mp4 codec.  My video clip features movements of a camera bump that has stabilized through Warp, but there also slowed a little need to reach a specific length. String and time remapping can be done on the same sequence, so I think I need to export the clip stabilized string in an intermediate file, re - import in to the body and then slow down the clip. I tried MXF OP1a: class AVC-Intra 100 1080. Video re-imported mxf blurs when previewing, but is strong when the clip is stopped.

    1. What is the best intermediate codec for further editing?

    2. is it important what order are stabilizing Warp and time remapping?

    3 or is there a better way to stabilize AND slow down a clip?

    System

    iMac 27 i7 2.8 GHz quadruple-heart, Os X 10.8.2

    You don't need to export to an intermediate file.

    Add timeremapping, right-click on the clip and the nest, and then adds the string.

Maybe you are looking for