Best way to get max (dt) of table partioned with 81 crores lines

Hello


What is the best way to be partioned (dt) max (partion is on column dt) table having 81 crores lines.
Rigth now I am using this query:
select col1,max(dt)
from xyz
group by col1;
It takes the hell out of data during its execution.

Please suggest another possible way


Piyush

peeyushgehlot wrote:
Hello

What is the best way to be partioned (dt) max (partion is on column dt) table having 81 crores lines.
Rigth now I am using this query:

select col1,max(dt)
from xyz
group by col1;

It takes the hell out of data during its execution.

Please suggest another possible way

Piyush

You can put a GLOBAL index on (col1, dt). You can try adding a WHERE clause of your query (elimination of partition way then). You can use a materialized view.

They are all options, you really did us very little (no idea of the table definition, what other clues are there, etc...) so the above generic tips are the best that I got to give.

Tags: Database

Similar Questions

  • Best way to generate signals of activation (square wave) with my 9401 on my 9022?

    Hi, I tried seriously over the past two days to find the best way to do it. I am trying to generate a very precise square wave, controlling the duty cycle and frequency, with the OID on the 9401 in testbed cRIO 9022.

    I have a VI that is theoretically able to do this, but whenever I try to go above 5 Hz or more, duty cycle and frequency becomes inaccurate (I have watch on an oscilloscope), various a lot too for my needs. I have a feeling that this is caused by my addiction on the calendar software controlled, with errors at the time (of the ms order) accumulate as they get processed and the signal is sent. I have attached a piece of code that illustrates the basic idea of what my VI have in them.

    I have avoided the square wave generators integrated because I could never work to satisfaction, but I can work with them so that will solve my problems. Selection structures and cases prevent the user to exaggerate their inputs. Unwaited so the loop was just to test.

    I'm running the 9022 as target in real time, but also tried to run in the FPGA and I was able to produce much more accurate signals using FPGA VI square wave, displaying a Boolean variable, but I couldn't see the best way to get double precision variables to work with everything (and I want more precision than variables FXP enabled clock 40 MHz).

    I feel there is just a mistake in my approach here. I've seen other discussions where people throw around using meters to edge of the test bench to produce a square wave, and I see the example screws as Gen dig pulse - continuous Train, I'm not sure if initially these screws DAQmx for my situation (eg. How to identify my counters, because they are clearly not Dev1/ctr0 by default in these examples)

    Thank you

    Dealing with the representation of Point fixed and all is a reality for LabVIEW FPGA<= 2011="" programmers.=""  you="" might="" build="" a="" small="" sub="" vi,="" such="" as="" the="" one="" attached,="" to="" encapsulate="" the="" frequency="" calculation,="" thereby="" abstracting="" the="" conversion="" formula="" and="" fixed="" point="" data="" type.=""  you="" can="" adjust="" the="" properties="" of="" the="" floating="" point="" input="" control="" to="" accept="" only="" valid="">

    This implies the series VI void on the host of the RT, and not on the FPGA target.  So, you also need nodes in the Palette of the FPGA Interface to send PWM fixed Point RT frequency to the FPGA.  The complete solution of frequency may resemble the following.  It is common for FPGA programmers to build a collection of thesesub screw, that make up the API for hardware.

    Note that 40 MHz is hard-coded.  For increased flexibility, consider making the FPGA clock rate an entry to the Subvi with a default value of 40 MHz.

    -Steve

  • What is the best way to get a Table name in Oracle Applications: 12.1.1 (web)

    Hello friends...


    I need your help my friends...


    We are currently working on Oracle Applications: 12.1.1

    I would like to know the best way to get the name of the Table to form based on a Web...


    Concerning

    Yas.

    Hello

    Please see this thread and documents referenced in it.

    RECORD HISTORY (or) COLUMNS in R12?
    RECORD HISTORY (or) COLUMNS in R12?

    Kind regards
    Hussein

  • Size of the individual partitions - the best way to get

    Hello


    Using Oracle 11.2.0.3

    We have a table partitioned by date range.

    We want to create separate storage for each partition.

    What is the best way to get the size of each partition (MB/GB, etc.).

    Thank you
    select segment_name, partition_name, bytes/1024
    from user_segments
    where segment_name = '&table_name';
    

    Note: The nom_segment in WHERE USER_SEGMENTS is the name of the table. The name of the Partition appears in the column Where USER_SEGMENTS nom_partition.

    Hemant K Collette

  • What is the best way to get rid of computer viruses?

    Original title: virus windows support system.

    the best way to get rid of this thing?

    Hi DavidStirling7777,

    (a) I recommend you run a virus scan online from the link given below and check if it helps.

    http://OneCare.live.com/site/en-NZ/default.htm?mkt=en-NZ

    Also, make sure that you have the latest update of the software antivirus installed on your computer, so that it works correctly.

    (b) If you don't have any software antivirus installed, you can download & install Microsoft Security Essentials on your machine.

    Hope the helps of information.

    Please post back and we do know.

  • I'm looking for the best way and the best way to get a product key for my windows 7 Edition family.

    Hello.  I'm looking for the best way and the best way to get a product key for my windows 7 Edition family.  Thanks Bob

    Original title: product windows keys 7

    The cheapest option is the OEM System Builder for Windows 7 Home Premium license, but has some license restrictions:

    Amazon.com: Windows 7 Home Premium 64 - Bit System Builder...

    The OEM of Windows 7 versions are identical to the versions commercial full license with the following exception:

    -OEM versions don't offer any free direct support from Microsoft technical support Microsoft

    -OEM Licenses are tied to the computer first you install and activate it on

    -OEM versions allow all hardware upgrades except for an upgrade to a different model motherboard

    -OEM versions does not move directly from an older Windows operating system

    What is OEM software? :
    http://support.Microsoft.com/GP/oemsupport_1/en-GB

    Licensing FAQ:
    http://www.Microsoft.com/OEM/en/licensing/sblicensing/pages/licensing_faq.aspx

    OR

    A detail that does not have these restrictions:

    Where can I still get Windows 7?

    Full version - Microsoft Windows 7 Home Premium

    Version upgrade - Microsoft Windows 7 Home Premium Upgrade

    Family Pack: Upgrade of Microsoft Windows 7 Home Premium Family Pack (3 users)

  • What is the best way to get certificate of secure Channel, including CCNA, expensive etc. without training?

    Currently, what is the best way to get certificate of secure Channel, including CCNA, etc.?

    In the past, there is a way to get VCP using CCNA without expensive training

    Path 2 on this page: VCP6-NV Certification

    There was already an expiration date on the possibility of using a Cisco certification have the implemented training obligation, but the expiration date has been removed.

  • What is the best way to get a SVG file generated from After Effects?

    What is the best way to get a SVG file generated from After Effects?

    Is there a script to do this? I use the SVG file directly in my work. I did research online, but find that it has no native support of EI to achieve.

    I found some scripts online, but they convert output Adobe AE to the JSON file. Is there something similar available for the SVG file?

    Thank you

    AE makes pixels not vectors, so it's not possible.

  • What is the best way to get Adobe Illustrator?

    What is the best way to get Adobe Illustrator?

    [Moved from Illustrator to cloud... MOD]

    Cloud https://creative.adobe.com/plans by subscription Plans, if you always have the latest updates

    Or Creative Suite 6 if you want to pay only once and can use a software 3 year and liked that receive more updates

  • What is the best way to get a comp from AE 2014 to Flash Professional CC?

    I created a training video for 10 minutes for a customer who wants this video for an interactive flash presentation now. Now that the XFL export is no longer an option for AE, what is the best way to get all of the animations in Flash without having to rebuild the entire project?

    The XFL format was not much more than what I mean. The files are huge and for a project that I built in AE by using export, time would have been better spent just making the whole project in Flash.

    In addition, if you are only working in Flash, you can create projects that work on mobile devices and use HTML 5 instead of the traditional Flash Player. And in my never humble opinion the SWF format is dead.

  • Best way to get the content of the 1 page in a lot?

    Hi everyone - I just wanted to check with experts on the best way to get information from 1 html page.  For example, I have a page that shows every 1 '' Ribbons that we have in stock to be used on sandals, belts, bags, etc. dog collars;  (http://elizab.com/eb-1-inchribbons.html) I can do an iframe to pull this html page 1 to all others?  What is the best way to do it?

    Basically I just have to update only one page html (tapes 1 ") and then it is good on all other pages, instead of having me to go through and to update every page that uses ribbons 1" :-)

    I'm not sure what is always taken in charge and what is not recommended on this!

    Thank you-

    Use an SSI. Server Side includes. It's better than an iframe. Google for server-side includes.

    Usually, I use php for inclusions on server side, but your server must support php. If not, you can use .shtml server-side includes.

    You need only to update and download only one file when you want to make changes. So on what page/s you have included the SSI these pages updated as well.

    Although I am a little confused because your field of design takes a page in its entirety. How do you intend to include all of the information on other pages without doubt that contain other information as well?

    I guess that if you only have a small area in which to display all the different designs on your pages, then an iframe is probably the best solution for your because you can define its dimensions.

    Personally I would get really "upset" if I have to keep scrolling left and right and top and bottom, then maybe if you go the route iframe you can arrange at least all the vertical stripes so we don't have to scroll up and down or break designs down into smaller categories to its more manageable for the end user.

  • What is the best way to get DELL price adjustment?

    I just bought a laptop in two days, which is the Inspiron 5000 15 series. The quick price was 649.99 CAD with 6 GB of memory. Today (June 13,2014), I found that the price is low for 629,99 with 8 GB of memory.

    http://www.Dell.com/ca/p/Inspiron-15-5547-laptop/PD.aspx?c=CA&CS=cadhs1&l=en&s=DHS& ~ CK = mn

    I do not have the package again. What is the best way to obtain the price adjustment, or replace with the new laptop with 8 GB?

    Please notify.

    Thank you

    Only a sales Dell Canada agent service may solve the problem.

  • What is the best way to get the minimum or maximum of a table of numbers value?

    Let's say I have a table of numbers: [2,3,3,4,2,2,5,6,7,2]

    What is the best way to find the minimum or maximum value in the table?

    Now, just get the maximum, I'm a loop in the table and reset a variable to the value if it is greater than the existing value:

    What I ended up doing was sorting table (descending to MAX) upward for MIN and then grabbing the first element of the array. Works like a charm in very few lines of code.

    Thank you.

  • best way to get documents that are NOT in another table

    I have two large tables in oracle. An array of account that has millions of rows. Each account can be registered in a particular program and can therefore also to the Enrollment table, also with millions of rows. I am to find the most optimal way to find all accounts into ACCOUNT which are NOT in the Enrollment table.

    I did something like this:

    Select / * + index (ACCOUNT idx_acct_no) * /.
    a.Acct_No
    one account
    If a.acct_no not in (Select e.acct_no from e REGISTRATION);


    It takes a long time to run, even though I'm using the index.

    I even tried to use the PK on the ACCOUNT dashboard, as is a FK on the ENROLLMENT table as such:

    Select a.acct_no
    one account
    Where a.id not in (Select e.id of e REGISTRATION);

    too, it takes too much time to recover (if any).

    Is there a better way to make this choice please?

    +
    Try this:

    SELECT a.acct_no
      FROM ACCOUNT a
     WHERE NOT EXISTS (SELECT '?'
                         FROM ENROLLMENT e
                        WHERE e.acct_no = a.acct_no);
    

    : p

  • What is the best way to get a customized version # from an ESXi host?

    Each quarter, we generate a sequence of updates (including patches and security scripts) which are performed manually on our 5.0 ESXi hosts. I don't have an internet connection and so I have to do it this way.  I would like to be able to identify the last quarterly update that has been run on the vCenter servers and/or Client VI.

    Right now, I think adding the quarter, example 1 Q 13 on the DCUI message, then help PowerCLI, vCenter to retrieve the message DCUI, crawled and paste the quarter in the field host Annotations on vCenter.

    Kind of ugly, but I cannot find a cool way to get data like this outside of the host.  I don't want to rely on my user manually set to nothing, for example the field of Annotations on vCenter that is also subject to errors.

    I really want something that can also be seen on the VI Client, too, as the annotations are only on vCenter.

    I have ideas about the best approach to tackle this problem.

    Thank you

    Not sure if this is the best way, but that's what I ended up doing.   It feels like there should be a better way.

    I've updated my quarterly script to add the version number at the bottom of the file, / etc/vmware/welcome, whenever it is run on an ESXi host (e.g. myScript version: v1.0 Date: 04June2013).  This file appears under the banner DCUI.

    Then, I wrote a script powerCLI to roughly the following:

    foreach ($vmHostObj in Get-VMHost-name *) {}

    # Get the full message of DCUI in/etc/vmware/welcome

    $msgObj = echo $vmHostObj | Get-VMHostAdvancedConfiguration-name Annotations.WelcomeMessage

    # Convert a hash of a string table welcome message

    $msgTxt = echo $msgObj.Item ("Annotations.WelcomeMessage")

    # find the clue for the string containing my script information, which is at the end of the welcome message.

    # This is important because the substring below function will extract everything after the index.

    $idx = $msgTxt.IndexOf ("version myScript :")

    If ($idx - gt 0) {}

    $label = $msgTxt.Substring ($idx)

    Set Annotation - remarks on the entity $vmHostObj - CustomAttribute - value $label

    }

    }

    This replaces the Notes field for each host, one day I can go back and make it more user-friendly where it replaces the version leaving the rest of the field notes intact.

Maybe you are looking for

  • Since the update last night (05/02/2013) we are unable to access the internet.

    My son says that there is an update last night when he was on the computer and the browser only, that we can use to access the internet now is Windows Internet Explorer. I tried all of the recommended patches and it still does not work.

  • HP iPAQ h5550 Pocket PC PDA of 128 MB

    I have a H5550 running worm 4.20.1081 windows of microsoft pocket pc 2003, I would like to most recent update or a good current software so that it accepts better wireless connections and a better browser, many now do not accept a 2003 Navigator. whe

  • How to downgrade my Vista operating system computer portable...

    toward a new copy of XP PRO, so that everything works fine? I hate Vista and I want to just install XP pro, the drivers themselves will still work with xp? E-mail address is removed from the privacy *.

  • Several keys on laptop does not

    I have an EliteBook 2740 and there are several keys (6,7, y, u, h, j, n and m) stopped working. Any suggestion?

  • connect ipad with the adobe account

    Hello, how can I connect my ipad on the creative cloud account? I just downloaded some app included in my package of creative cloud , but I saw this phrase "Acquisti in-app" below the app. I think that my iPad is not connected with the adobe account