Need Your comments please!!!!

HI,
I have four tables like below.
region_master(regionid, region_name)
country_master (country_id, country_name)
state_master(stateid, stte_name)
user_master(user_id,user_name,user_regionid,user_countryid,user_stateid, user_cityname);
Now I want to find our the users who matches to the search words using the intermedia search,
For this I am feeling two ways of searching
1. Searching all the tables with join queries,
2. Making a new column LOCATION in the user_master table and putting the concatenated value of region,country,state,city in it.
So I feel by doing the first way is the exact normalizatin, Doing the second way is some what aquard.
But I feel as I am using the intermedia search , to maintain the indexes and to reduce the number of indexes, and to retrieve from the one table without joins is preferable then joins.
But any way I feel following the first way is the good thing...
So if any comments, you are most welcome... with reasons.
Thanks in advance,
Khaleel.

You are right to be cautious. De-norm,alisation is inherently a bad thing, and only to be approached when you know you have a performance problem that cannot be solved any other way. First of all you ought to try the four table join route and establish that that is too slow and cannot be improved upon.
In that circumstance you need to answer two further questions:
Is the USER_MASTER table fairly stable (i.e. few updates (in particular location derived stuff) and few inserts)?
Is this particular query going to be run often (i.e. at least several times an hour)?
If the answers to both those questions are 'Yes' then de-normalisation is worth the hassle of supporting it. Bear in mind that if you are using STATE_MASTER, etc. as foreign key references to USER_MASTER that can cause the mutating table problem (ORA-4091, ORA-4094), so denormalising via triggers is a bag o' tricks in its own right.
Cheers, APC

Similar Messages

  • Hi, my iphone its in recovery mode and when i restore my iphone 5s loading show the blue screen and show note on itunes (unknown error 14) please i need your help please . thanks

    Hi, my iphone its in recovery mode and when i restore my iphone 5s loading show the blue screen and show note on itunes (unknown error 14) please i need your help please . thanks

    In the article Resolve iOS update and restore errors this is what it says about error 14:
    Check your USB connections
    Related errors: 13, 14, 1600, 1601, 1602, 1603, 1604, 1611, 1643-1650, 2000, 2001, 2002, 2005, 2006, 2009, 4005, 4013, 4014, or “invalid response."
    If the USB connection between your device and computer is interrupted, you may be unable to update or restore.
    To narrow down the issue, you can also change up your hardware:
    Use the USB cable that came with your device, or a different Apple USB cable.
    Plug your cable into a different USB port directly on your computer. Don't plug it into your keyboard.
    Try a different computer.
    If necessary, resolve any further issues with the USB connection, then with your security software.
    If you're still seeing the error message, check for hardware issues by following the next section.

  • HT1199 I need your help, PLEASE. How can to fix "NO MOUNTABLE FILE SYSTEM" error of my back up hard drive on Mountain Lion OS?

    I need your help, PLEASE. How can to fix "NO MOUNTABLE FILE SYSTEM" error of my back up hard drive on Mountain Lion OS?

    Did you format the drive for Mac use before you tried to use it as a backup drive?
    Are you using Time Machine on the drive? You can't view the contents of its backup database and the only way to access the info is directly from the Time Machine app.

  • HT201328 Hey, i bought an iphone from online shop and its locked by orange france, i contact them to unlock it but they refused, they said that we regret to inform you that we'r not able to unlock second hand phones? I need your help please.

    Hey, i bought an iphone from online shop as a used phone and its locked by orange france, i contact them to unlock it but they refused, they said that we regret to inform you that we'r not able to unlock second hand phones? I need your help please. Its not fair , apple should figure it out
    Regards,
    Orange

    This is no different with any carrier locked phone. Getting a carrier locked phone officially unlocked is the responsibility of the carrier, not the cell phone manufacturer. A cell phone manufacture cannot unlock a carrier locked phone without the carrier's authorization.
    An iPhone sold as officially unlocked when new can be used by others as a second hand phone, and the same with any carrier locked iPhone that can be unlocked by the carrier, and many carriers offer it.

  • HT4623 I. Tried many time to install my apple to update software but can't fix I need your help please and Thanks.

    How i fix and software update i was tried but cant i need your help please and thanks.

    "but cant"
    That doesnt tell us anything useful. You need to post EXACTLY what you did and EXACTLY what happened, including any error messages.

  • I need your help, please. I can't get my photostream synchronized

    Dear friends, I need your help again!!!
    My photostream from my computer, windows vista, is not updating the pictures on my photostream in neither one of my IOS devices.
    I'm sure that the photostream in both IOS are turned on. In my computer it is also turned on.
    For example, I tranferred some pictures from a normal file to the photostream in the computer and I expected that them went also to my
    iphone and ipad, but it not occurred.
    Please, do you have some advise for me?
    Thanks in advance.

    first i would try a simple restart of your computer and your iPad and see if they show up after they reboot. Also which folder are you putting them in? on windows there will be a seperate folder in the photostream folder that will show upload/uploads you will want to make sure they are in there. Also here are some basics about photostream to make sure you are meeting all the requirements and are not over your limit, http://support.apple.com/kb/HT4486

  • PT880 Neo 4 red led, Need your help please!!

    Hello all
    It is my first post and I need your help. Today I purchased a combo P4 3/800 E Box CPU, MSI PT880 Neo FSR Mboard  and DDR 512MB 3200 VS Corsair 400Mhz 184 Pin Dimm from Fry's Electronic. I can not get my system to boot , no beep but only 4 red led and nothing on the screen. I used on my system Enermax 300W with DVD burner, DVD player, 60G HD, SBlive 5.1, ALL in Wonder Radeon 32Mb..After I am following all recommendation in the defferents Topic, I have no luck it won't boot. The 4 red leds are still on. Help me please thank you
    Brono85

    I've just got my Noisetaker 470watts too, it has the same rails as CoolerGiant , but I like CoolerGiant's active cooling system for both CPU and PSU , just that it's too lengthy and my chassis was small in size .
    Back to the topic, likewise anr11 mentioned, you may need a BIOS flash and you can use Memtest86 to test your RAMs out .

  • HT201210 I tried to update to IPad 5.1, but when it finished and tried to restore the backup, it shows me that Itunes could not back up because a session could not be started with iPad. need your help please

    I tried to update to IPad 5.1, but when it finished and tried to restore the backup, it shows me that Itunes could not back up because a session could not be started with iPad. need your help please

    This has happened to me a couple of times and what I do is quit iTunes and restart my Mac and then try again and then it will work.
    If iTunes has already created the backup, you should still be able to restore from the backup when you are connected to iTunes. Right click on the iPad name on the left side of iTunes and select restore from backup. After the process completes, sync with iTunes to transfer all of your apps, music, photos and other media back onto the iPad.

  • I need your comments , your suggestions , please.

    Use the necessary facilities of the Java Programming langgue to build a visual calculator which
    can carry out tha following operation. The operation needed are :
    + - * / clear memorize recall
    Each of these operations is represented by a button which a user can press in order to carry
    out the task. This calculator can be used to work out the value of an expression such as :
    23*12+22-3
    Pressing a wrong commbination of keys may gererate a warning sound. Moreover an animated icon should
    be used to indicate when "
    - the calculator is idle and free to be used
    - the calculator is busy ( being used )
    ***** This is the code :
    import java.awt.event.*;//Abstract windows ToolKit
    import java.awt.*;
    public class calculator extends Frame implements ActionListener
    TextField name;
    Label aHeader;
    Button b[];
    String expression;
    public calculator()
    super("DUY 'S CALCULATOR");
    setLayout(new BorderLayout());
    Panel p1 = new Panel();
    p1.setBackground(new Color(18,70,1));
    p1.setLayout(new FlowLayout());
    aHeader = new Label("DUY'S CALCULATOR");
    aHeader.setFont(new Font("Times New Roman",Font.BOLD,24));
    aHeader.setForeground(new Color(255,0,0));
    p1.add(aHeader);
    add("North",p1);
    Panel p2 = new Panel();
    p2.setBackground(new Color(27,183,100));
    p2.setLayout(new GridLayout(0,1));
    name = new TextField(20);
    p2.add(name);
    add("Center",p2);
    Panel p3 = new Panel();
    p3.setLayout(new GridLayout(0,6));
    b = new Button[25];
    b[0] = new Button("MC");
    b[0].addActionListener(this);
    b[1] = new Button("7");
    b[1].addActionListener(this);
    b[2] = new Button("8");
    b[2].addActionListener(this);
    b[3] = new Button("9");
    b[3].addActionListener(this);
    b[4] = new Button("/");
    b[4].addActionListener(this);
    b[5] = new Button("sqrt");
    b[5].addActionListener(this);
    b[6] = new Button("CE");
    b[6].addActionListener(this);
    b[7] = new Button("4");
    b[7].addActionListener(this);
    b[8] = new Button("5");
    b[8].addActionListener(this);
    b[9] = new Button("6");
    b[9].addActionListener(this);
    b[10] = new Button("*");
    b[10].addActionListener(this);
    b[11] = new Button("%");
    b[11].addActionListener(this);
    b[12] = new Button("MS");
    b[12].addActionListener(this);
    b[13] = new Button("1");
    b[13].addActionListener(this);
    b[14] = new Button("2");
    b[14].addActionListener(this);
    b[15] = new Button("3");
    b[15].addActionListener(this);
    b[16] = new Button("-");
    b[16].addActionListener(this);
    b[17] = new Button("1/x");
    b[17].addActionListener(this);
    b[18] = new Button("M+");
    b[18].addActionListener(this);
    b[19] = new Button("0");
    b[19].addActionListener(this);
    b[20] = new Button("+/-");
    b[20].addActionListener(this);
    b[21] = new Button(".");
    b[21].addActionListener(this);
    b[22] = new Button("+");
    b[22].addActionListener(this);
    b[23] = new Button("=");
    b[23].addActionListener(this);
    b[24] =new Button("exit");
    b[24].addActionListener(this);
    for(int i=0;i<=24;i++)
    { p3.add(b);
    add("South",p3);
    super.addWindowListener(new WindowAdapter(){
    public void windowClosing(WindowEvent e)
    {System.exit(0);}});
    setLocation(200,100);
    pack();
    setVisible(true);
    }//end of constructor
    public void actionPerformed(ActionEvent evt)
    String command = evt.getActionCommand();
    StringBuffer tmp, first, second;
    int value, size, k;
    char ch, op = ' ';
    first = new StringBuffer();
    second = new StringBuffer();
    if ("CE".equals(command))
    name.setText("");
    else if("7".equals(command))
    expression = name.getText();
    name.setText(expression+"7");
    else if ("8".equals(command))
    expression = name.getText();
    name.setText(expression+"8");
    else if ("9".equals(command))
    expression = name.getText();
    name.setText(expression+"9");
    else if("4".equals(command))
    expression = name.getText();
    name.setText(expression+"4");
    else if("5".equals(command))
    expression = name.getText();
    name.setText(expression+"5");
    else if("6".equals(command))
    expression = name.getText();
    name.setText(expression+"6");
    else if("1".equals(command))
    expression = name.getText();
    name.setText(expression+"1");
    else if("2".equals(command))
    expression = name.getText();
    name.setText(expression+"2");
    else if("3".equals(command))
    expression = name.getText();
    name.setText(expression+"3");
    else if("0".equals(command))
    expression = name.getText();
    name.setText(expression+"0");
    else if("+".equals(command))
    expression = name.getText();
    name.setText(expression+"+");
    else if("-".equals(command))
    expression = name.getText();
    name.setText(expression+"-");
    else if("*".equals(command))
    expression = name.getText();
    name.setText(expression+"*");
    else if("/".equals(command))
    expression = name.getText();
    name.setText(expression+"/");
    else if("=".equals(command))
    expression = name.getText();
    size = expression.length();
    tmp = new StringBuffer( expression );
    for(int i = 0;i<size;i++)
    ch = tmp.charAt(i);
    if(ch != '+' && ch != '*' && ch != '-' && ch != '/')
    first . insert(i, ch);
    else
    op = ch;
    k = 0;
    for(int j = i+1; j< size ; j++)
    ch = tmp.charAt(j);
    second.insert(k,ch);
    k++;
    break;
    switch(op)
    case '+' : value = Integer.parseInt(new String(first)) +
    Integer.parseInt(new String(second));
    name.setText(new Integer(value).toString());
    break;
    case '-' : value = Integer.parseInt(new String(first)) -
    Integer.parseInt(new String(second));
    name.setText(new Integer(value).toString());
    break;
    case '*' : value = Integer.parseInt(new String(first)) *
    Integer.parseInt(new String(second));
    name.setText(new Integer(value).toString());
    break;
    case '/' : value = Integer.parseInt(new String(first)) /
    Integer.parseInt(new String(second));
    name.setText(new Integer(value).toString());
    break;
    } //end of actionPerformed
    /**main method to invoke from JVM.*/
    public static void main(String args[])
    new calculator();
    This is the file calculator.java .I create this program follow the lecturer's guide . But actually
    i think this is not good jobs . Anybody can help me to change something on this program ???? . And
    please show me the reason why in each case of its . Thanks so much .
    I have to submit it by this friday, so i think i can receive all reply soon . Again, thanks so much.

    As I said before, check out:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=271751
    I actually think there's some examples of what NOT to do in that message that look uncannily similar to what you've posted.
    This is the third time you've asked somebody to do your homework for you. Read the javadocs, check out the tutorials, test the code yourself and experiment with it.
    You can't just throw a bunch of code out and ask some vague questions and expect answers.
    This is the file calculator.java .I create this program follow the lecturer's guide . But actually
    i think this is not good jobs . Anybody can help me to change something on this program ???? . And
    please show me the reason why in each case of its . Thanks so much .
    I have to submit it by this friday, so i think i can receive all reply soon . Again, thanks so much.
    Start by asking some specific questions.
    And your code would be much easier to read if you put it in [ code ] blocks. Check out http://forum.java.sun.com/faq.jsp#messageformat for information on formatting.

  • Your Comments Please: Business Case for XI

    We are a small site commencing a major project that will involve integrating SAP R/3, BW, CRM, and various non-SAP applications (web and client/server). The applications have a number of external interfaces, receiving data from or sending data to external agencies.
    I'm trying to understand the costs and benefits of including XI in the solution and would welcome comments from people already using the tool. I've read a lot of the SAP documentation so understand that it is the best thing since sliced bread, but I'd also be interested to hear your general comments and also your thoughts on the following specific points:
    (1) Maintenance effort: since we are a small site we don't have teams of people to work on each piece of technology, what is likely to be the time and effort of the training, initial configuration and on-going support?
    (2) Data transformation capabilities: are there extensive functions to manipulate the data without writing code? If you are familiar with ETL tools such as DataStage, Informatica, etc. how does it compare?
    (3) Performance with large data sets: one of our external data sources will include about two million rows of data per day, how would XI cope?
    (4) What is it like to work with? Do you spend half your time searching for, and trying to decipher notes, and applying patches, or is it generally an enjoyable experience? (for someone who doesn't enjoy the above) -- and if so why is this forum so popular?
    Many thanks
    Rob

    Hi Robert,
    I have just starting using XI 3.0 and am finding it a good experience on the whole. In answer to your points :
    1. Maintenance effort is low. Once you have grasped the concepts and steps for development it is relatively easy with no coding (although you should really have a basic understanding of Java). I would recommend attending the SAP XI 3.0 Fundamentals course for training purposes. The initial configuration has been minimal so far as it is Basis who should perform the basic configuration steps during the installation
    2. The mapping tool is a GUI driven tool and has a lot of basic functions for transforming data. It also allows the use of any specific Java functions you may already use to transform data
    3. Performance would be driven by the volume of data and the number of integration servers you have. I would personally recommend having an Integration Server solely for use for the very high volume data set you mention.
    4. From what I have seen so far, it is an enjoyable experience. Patches should be applied regularly by your Basis team so you shouldn't need to worry too much about that side of things.You are bound to get teething difficulties with such a vast product but once you get to grips with it, it is very good indeed.
    Finally, I would definitely recommend attending the XI course I mentioned. It concretes the basic understanding you would get from the SAP documentation.
    Hope this helps.
    Kind regards
    Colin

  • I need your advices please

    I want to buy a canon camera 
    and i'm not sure yet 
    i think that i'll buy this one !!
    if you don't agree 
    please giveme some choices
    [Mod note - removed broken link]

    The link you provided is not working.
    Everything depends on the type of photos you are planning to take and the type of photographer you are when making a choice for a new camera. For instance, if you are the type of person who will always be shooting in the Auto mode, and posting to social media, then most low cost compact cameras should suit you fine. If you want to get a lot of fast action shots, then you may need an enthusiast camera or DSLR. If you are into wildlife, you may want a camera with a long zoom range. If you are into nature photography, then a bridge camera may be your answer.
    Deciding factors will include your budget (price range), how well the camera fits in your hands, flexibility of the camera to use other shooting modes such as full manual control, and if you want to shoot in RAW mode as well as JPEG. You will need to let us know a bit more information so that the community can assist you better. Overall, the final choice will be yours as the opinions given may or may not suit your style, but should be a guide in helping you make a more informed choice.
    Good luck and hope we can all help you in some way!

  • My iPad2 is frozen at slide to unlock and every few minutes te apple appears on the middle for a while and then back on freeze to the slide to unlock screen. Please I need your help please

    My iPad2 is frozen at slide to unlock screen, every few minutes the apple appears in the middle of the screen and couple of minutes later it will go back on freeze to the slide to unlock screen .  I have tried all tricks even the restoration through iTunes which I was never able to complete because of the apple screen; iTunes thinks I am resetting my iPad and the restoration get aborted.
    Please help, I can't even turn it off.

    Force iPad into Recovery Mode
    1. Turn off iPad
    2. Connect USB cable to computer; leave the other end alone
    3. Press and hold the Home button down and connect the docking end of cable to iPad
    4. Continue holding the Home button until you see the "Connect To iTune" screen
    5. Release the Home button
    6. Open iTune
    7. You should see "iTunes has detected an iPad in recovery mode"
    8. Use iTune to restore iPad
    Note: You need to be patient and repeat the above many times.

  • Error message 1418 ... I need your help please!!!!

    I cannot connect my shuffle because is not recognized (in Win explorator) and when i try to copy music, i have an error message saying "the ipod cannot updated. REad and write are impossible on this disk..."
    Someone have an idea ??
    PS: i already install the new version of Itunes (7.0.2)
    thanks a lot !!

    As per your question it appears that your requirement is
    1. Define a earning which is dependent on Grade of the employee .
    2. Define a deduction which is percentage of total earning .
    3. Define an IR which is an earning ( I assume , though its not clear from your requirement ) .
    Step 1.
    You can Write a fast formula which returns the value to be paid based on the assignments current Grade ( Use formula function for returning the required value ).
    Step 2 .
    Attach the Fast formula created in step 1 with ann_sal and make a return the result as Direct Result in the "Pay Value" of ann_sal
    Step 3.
    As per Oracle priority of earnings should be greater than that of deduction deduction hence we need to process "IR" before the deduction so that taxes are calculated correctly.
    But make sure that the priority of IR is lesser than the priority of other earning element so that it can be calculated once all the earning elements are calculated.
    Step 4
    Write a fast formula in which you calculate Assur as per your business requirement
    Now do calculations for IR as per your algorithm .
    Return the calculated value .
    Step 5 .
    Attach formula created in step 4 to IR and make a return the result as Direct Result in the "Pay Value" of IR
    Step 6.
    Now write one more fast formula to calculate assur .
    Use "_ASG_RUN" as the balance dimension in the fast formula to get dbi values. You can refer any seeded formula .
    Now associate the formula with the deduction.
    Hope it helps.

  • Baby Web Designer Need Your Help Please iWeb (iLife 08)

    Hi,
    I am very new to designing a web page but iWeb let me complete one and it is up and running on
    .Mac=http://web.mac.com/mrmnlewis/Site/Welcome.html
    what I need to know is I signed up with 1and1.com due to a article in MacWorld and I want
    to use my domain from 1and1.com with a web site I built with iWeb I tried to go to
    set up a Personal Domain and I put my 1and1.com site name in the area that I was supposed
    to and then it (iWeb Internet) said that my paid domain site would need a Alias and I emailed
    1and1.com and they said since I built my site using iWeb I needed to get help from  and not them
    in the simple mode: I need to learn how to use iWeb and be able to use my web site I built with iWeb
    and use it for my paid domain site> whathashappened2yourmacthisweek.com

    It has nothing to do with iWeb and apple really. If you are hosting your domain name with 1and1, then they should help you, because you will have to alter settings to enable this to happen.
    By changing the .Mac setting to personal domain, you obviously want to use CNAME to redirect your website?
    If you want to do this, then you need to go to your 1and1 hosting control panel and alter the DNS settings. Most control panels have a manage DNS section. You need to enter CNAME and enter web.mac.com and whatever else they need you to do.
    If you don't want to use CNAME, then you can use web forwarding with or without masking. For this you would need to enter web.mac.com/username/Site.
    If they won't give you help to alter these settings then I would transfer your domain elsewhere. I did this recently, so I had both my domains under one roof and for ease of management.

  • I need your help please

    Dear Database Support Professional,
    I am Database Administrator and I am writing to ask for your help in responding to a 10-12 minute survey for a degree requirement on relational database support professionals in the USA. Please note that the respondent is completely anonymous. If I don’t get this portion of my degree completed by the end of this semester, then I would have to wait for another year which entails additional costs and time on me. By completing the survey, you will be contributing to research in our field and also there is the satisfaction of having helped a fellow professional and a fellow human being attain his goals. I believe a good turn always bring another in some way in our lives. I therefore kindly beg for your help to a fellow database professional by completing this survey. The link to the survey is provided below. If possible please forward to other database professionals or groups:
    http://www.surveymonkey.com/s.aspx?sm=a1JqU7GVt1g6rCkIPyL23w_3d_3d
    Thank you earnestly for your kindness.
    Gabriel
    This survey is done solely for the purposed of a College degree requirement and is not associated with, nor represents the views, policy, or demands of any individuals, corporation, or any other named organization.
    Thank you in advance for your kind participation

    Reported as spam.

Maybe you are looking for