Composite PK with DATE, how to eliminate the time part of PK?

Hello
I'm looking in the design of a table that have composite PK: REL_DATE (date) + ID_SKU (number).

REL_DATE the value column is real time in it, and I would have that PK is defined only for the part of MY-JJ-AA without time, is it possible? Or should I set up columns for mon-JJ-AA and hh24:mi:ss separately?

I don't know how Oracle trade this situation, can I prune Date in the definition of PK or there another way to do this, my taks overall to have unique PK on REL_DATE(dd-mon-yy) + ID_SKU, without part time so I should have valid data as shown in the insert:
I'm on Ora10g.
...
CONSTRAINT PK_RYBA_01 PRIMARY KEY (REL_DATE, ID_SKU)); 

REL_DATE                ID_SKU     MATRL_IDX...
12-Aug 10 09:14:00      75         TAB12
12-Aug 10 11:14:12      75         INDIGO
12-Aug 10 14:14:57      75         OSB  
TX
Trento

Yes, you can create what is called a function-based index.

CREATE INDEX index_name ON table_name
(TRUNC (REL_DATE), ID_SKU);

Kind regards
Naren

Tags: Database

Similar Questions

  • How to eliminate the blue HP page with the F keys, hand, photos, music started

    With Windows Vista 64-bit, how I eliminate the HPO start with items described above page?

    I'm sorry, but disabling the HP logo screen is accessible neither BIOS nor Windows configuration. He is tattooed in DMI.

  • How to eliminate the paper on the window to appear of the old microsoft/qwest deal

    I have qwest (now century link) phone line DSL.  Qwest was an agreement to host with MSN email which ended.  However, whenever I am on a Web site with a link to click on send the company or the person on the Web site, the 'old window' opens to qwest/msn to connect to read emails.  The happesn of thing even if I go into file, send a link so that on a section of the Web site I want to send to others.   I can access my email on internet explorer or firefox hotmail account and have no problem using it.  I just want to know how to eliminate the Qwest/Msn link that is still on my computor

    You will find support for Windows Live Hotmail in these forums: http://windowslivehelp.com/forums.aspx?productid=1 [1]

    ===================================================
    [1] your * address email is removed from the privacy * account is still valid and is accessible via the webmail Hotmail page: www.hotmail.com

  • How do eliminate the password entry every time that I start

    How to eliminate the need to enter my word happening whenever I connect?

    Hello

    Please try:

    http://www.SevenForums.com/tutorials/377-log-automatically-startup.html

    Kind regards.

  • After you create an action to reduce the size and convert them to JPEG format, how to eliminate the word "copy" of each image name?

    After you create an action to reduce the size and convert them to JPEG format, how to eliminate the word "copy" of each image name?

    You can batch process using the image processor script and no user action should still be included in the process.  Check out our menu file > Scripts > image processor.

  • When I uninstall an application virtualized with ThinApp does not eliminate the root folder, any suggestions to fix this?

    When I uninstall an application virtualized with ThinApp does not eliminate the root folder, any suggestions to fix this?

    Can you try to change the shortcuts = active on all entry Points setting?

    Change of Shortcuts=%Programs%\Check Point\Identity Shortcuts=%Programs%\IdentityAgent Agent

    In this way, we can see if it's the second folder level do. Because when I use only one file, I don't get the issue you reported.

    Out of curiosity:

    It is a Security Check Point Software? What is doing? It works like a ThinApp package?

  • How to display the time of growth of the autoextended oracle files?

    Hello

    How to display the time of growth of the autoextended oracle files?

    Hello

    1. do you have re - seen view data dictionary in the oracle documentation?

    DBA_DATA_FILES

    dba_free_space

    dba_Tablespaces

    -Regarding (updated)

    DBA_HIST_SEG_STAT

    DBA_HIST_SNAPSHOT

    DBA_TABLESPACE_USAGE_METRICS

    DBA_HIST_TBSPC_SPACE_USAGE

    2. If not, then re - discovers once and understand the use of columns and build the query.

    3. If Yes, then why you have not tried to build queries

    4. again, if you're lazy, search in google or forums. ton of translates queries

    5. What are the disadvantage of step 4 - you will not get to learn something (0% gain of knowledge).  If you really want to learn, then try to learn to build query, and try to understand the views of data dictionary

    6. When you spend above task at the end of the task you will get satistided with two things

    --> Understand how to use the Oracle docs for help and where to look in the future

    --> Your skills / knowledge gain - trust me it will make you another step to learn new things.

    7. If you don't know SQL, learn the basics takes hardly 2 to 3 hours and then you can build query.

    It may be useful

    -Pavan Kumar N

  • How to set the time between slides in a slideshow (iPhoto, el capitan)

    How to set the time to say - 5 seconds or 20 seconds - between slide show photos in iPhoto. I use el capitan.

    See the Settings button at the bottom right of the toolbar (at the bottom of the slide show). Click on it and you have a small window with two tabes, refers to all the slides, the other to the selected slide. You can make your choice

  • How to set the time stamp for incoming mail?

    How to set the time stamp for incoming mail?  I have windows vista. I use hotmail/windows live email. My computer has the time is set correctly. My e-mail timestamps incoming messages 7 hours a head of real time. Example: it is now 09:48. A new email is stamped as to settle at 16:48. How can I fix it? Note: the computer is correct.

    Thank you
    Laura
    2.13.2012

    If you mean the customer of email Windows Live Mail, the time stamp on messages is governed by your time zonesystem. Right-click on the clock in the lower right of the screen and select CONFIGURATION... Change your time zone, and then set your clock at the present time.

    If you are talking about the Windows Live Hotmail service, the time zone (s) used are those contained in your account data. Reach
    https://account.live.com/EditProf.aspx
    and change the time zones for the good...

    Windows Live programs and services have their own forums for support at the Windows Live Solution Center. Please address any questions you may have about Windows Live Mail to one of the forums on the right side of this page. For Hotmail, forums and responses are available via this page.

    Noel

  • How to pass the time slot to the dashboard in URL parameters

    Hi all

    Does anyone have example on how to spend the time slot to the dashboard in URL parameters?

    That's what I tried. Normally, the dashboard has timeRange as a required context, I deleted and added "startTime" and "end" like required context, so that I can spend 2 timestamps in URL, and then I created a 'extra context' called "timeRange", which calls a WCF function to create a CustomTimeRange, it works pretty well. But the problem is if I have exploration down this dashboard to a different dashboard, the slot not transmitted properly. So I guess, I was not the right way. Does anyone have an example?

    Thank you

    Xiaoning

    1 re: timeRange not spent in drilldown pages

    Please confirm that you have defined one or more entries in context "Required". If you do not, please add a (like "hostName") and re - test. It work?

    2. with 'nologin' user URL redirects to the login screen

    Yes, what is expected. With nologin user, you should always use the form http://foglight_fms:80/console/foglight_ext?viewId=system:mywcfmodule.1?hostName=myhost of the URL rather than the

    form of http://foglight_fms:80/console/page/System:mywcfmodule.1?hostname=myhost .

    It would be great if you could post a brief description of your design dashboard once you have this work. That sounds like something that the other members of the Foglight community would be very interested!

    Kind regards

    Brian Wheeldon

  • How to display the time in the report?

    Hi all

    I created a form master / detail in which one of the fields is the date in the format "MM/DD/YYYY HH: mi» The main report displays only "MM/DD/YYYY". How to display the time as well?

    Thanks for the help!

    Change the format of the item page for the JJ/MM/AAAA HH: mi, he probably missed just JJ/MM/AAAA...

    Thank you

    Tony Miller
    Webster, TX

  • How to set the time that my screen stays on?

    How to set the time that my screen lights up.  I have an iPod Touch 6?

    Settings > general > auto-lock

  • On Apple Watch, how to change the time when traveling to a different country, like London or Singapore?

    For Apple Watch, can someone please show me how to change the time on my watch when I travel to another country, like London or Singapore? Thank you.

    Hello

    When traveling to a different time zone, it is not necessary to manually change the time on Apple Watch.

    After turning off the flight on each of your iPhone and Apple Watch, the time on your watch can be updated automatically to reflect the local time.

    If it is not the case, try restarting your watch:

    -To switch off your watch: press and hold the button side until you see the cursor off the power; slide it to turn off.

    -To reactivate: press and hold the side button until you see the Apple logo.

  • How to view the "timer" current user time

    Hello

    How to display the "timer" right now?

    Currently I have in my program using timer, how to display the current time left on the timer to warn the user the time left on the timer?

    The number of timer upward or the countdown?

    using TimerCB

    a Council does

    Thank you

    Ben

    I'm not aware of the possibility of obtaining the hour up to what a timer callback will be called, then I would say a different approach:

    If, say, you want some action to happen every 10 minutes, but I would like to update the user interface of every second indicating the remaining time I would set the timer to 1 s interval. In the reminder of the timer, I would use a setting that is incremented each time the callback is called; If this value reaches 60 x 10 I reset the parameter and call the function to get the job done. In all other cases, you can simply view 600 - setting (in seconds) than the rest of the time.

    An alternative may be to use two counters, one for the action, called every 10 minutes, and one for the update of the UI, called say every second...

  • How to prolong the time that deleted files stay for me to see

    How to prolong the time that deleted files stay for me to see

    Original title: files deleted

    How to prolong the time that deleted files stay for me to see

    Hello

    You ask about the trash?

    Files remain in the Recycle Bin until you manually clear the location or you or someone else, manages the disk cleanup.

    If you do not ask the trash, please provide details.

    Don

Maybe you are looking for

  • Cannot update Firefox.

    I use Firefox 39.0. I turned on the 'automatic update'. But despite starting, my Firefox is not being updated automatically. I need to download a new version every time in order to stay up to date. Help, please.

  • Firefox does not work for multiple instances of the SAME user account on Windows Multipoint Server 2011

    We have a PC HP of MulitSeat MS6200It runs Microsoft Windows MultiPoint Server 2011 (which seems to be a twisted version of Windows 7)It is implemented in a laboratory of computer science and students connect you using their account for shared room -

  • Satellite M105-S308: silent acoustic CD/DVD icon appears in the taskbar

    I used my Satellite M105-S3084 for quite awhile (year?) when suddenly for the first time a new icon appeared on my taskbar of Windows XP. This is the icon for the acoustic CD/DVD Toshiba muffler. Because I've never had this icon appears before (and y

  • Administrators build - in the Local Group

    There is build-in the Local group such as administrators. In a book, it is said that the members of this group can access the computer from the network. Could someone explain what this actually means. If it is a Local Group and the members of this gr

  • Is it possible to change the settings via the keyboard?

    The screen of my laptop is broken, so I use a VGA cable to project the screen on my monitor. I factory reset my phone, so all my settings have been reset to the default value. What I was wondering is, is it possible to use my keyboard to change the s