What is the advantage of Foreign keys in database

suppose if we do not have FK then what kind of advantage we could not avail. we can fetch data from two table by creating a relation in sql.....then why FK is required. thanks

Hi Mou_kolkata
Overall foreign keys are very useful for maintaining data integrity.
A nice article written by Armando
Prato at mssqltips.com explains
about importance of FKs.
Advantages and disadvantages of using Foreign keys was also discussed under the design section of msdn forums at.
SQL Server > Database Design.
Hope they are helpful.
Thanks and Regards, Ibrahim Mehdi. MCSE-DataPlatform

Similar Messages

  • What is the advantages of using Flexconnect groups

    what is the advantages of using Flexconnect groups in WLC?
    Reg,
    Ezra.

    Pls refer this document for more detail about these features
    http://www.cisco.com/c/en/us/td/docs/solutions/Enterprise/Mobility/emob73dg/emob73/ch7_HREA.html#wp1091114
    FlexConnect is one mode an AP can operate, typically deployed in Branch setup where you do not have a controller at branch site. Those AP can register to a controller at your HQ or main site. So traffic will terminate at your branch switch instead of tunnel back to HQ-WLC.
    If you want roaming within your branch FlexConnect AP then you have to put those AP into a FlexConnect Group. Then only key information shared among those AP to facilitate fast roaming.
    Pls do not forget to rate our responses if you find them useful.
    HTH
    Rasika

  • What's the advantage of Sql Azure?

    Hi all;
    We assumed that Sql Azure handled clustering, but apparently that feature is in beta (and has been making no progress for a long time). So what's the advantage of Sql Azure over having a VM we install Sql Server on? Because it looks to me like the VM route
    is equivalent or better (better because you don't get the occasional delay).
    I'm not trying to be antagonistic here, just trying to understand the utility of Sql Azure.
    ??? - thanks - dave
    What we did for the last 6 months -
    Made the world's coolest reporting & docgen system even more amazing

    Hi;
    First off, we've never found Sql Server all that much work. Installs easily and then we're off and running.  I understand people finding create & go a big win, but Sql Server is pretty much that already for us.
    Our use case is we are creating a cloud app that we hope to see world-wide use of it. So we want to start located in the US & Europe and use TrafficManager to send apps to the closest server. There are 2 key DB records for all the requests we'll get,
    the customer & the user.
    The user will tend to be on one continent (but not always). But the customer can have employees (users) on every continent. And for each request coming through, we need to get that customer record fast. Very very fast.
    I'm guessing that 95% (or more) of our DB activity will be selects. 
    Our hope was you had Sql Azure working so it could be instantiated in each data center we have our cloud service and then each is hitting a local DB. But we need it keeping each in-sync with the other because of that customer record (and the user record
    in case of TrafficManager switching who they go to because something went down).
    This is the one thing we've never been able to get Sql Server (on our servers) to do - sync between instances. So I understand that this is hard (impossible?). But at the same time, I think many have this same need we have.
    thanks - dave
    What we did for the last 6 months -
    Made the world's coolest reporting & docgen system even more amazing

  • In the new Pages 5.0, what is the page break shortcut key. I cannot find the key as indicated on the drop down menu.

    in the new Pages 5.0, what is the page break shortcut key (it used to be the Fn + enter). I cannot find the (new) key as indicated on the drop down menu. Please help.

    Hi Bruce and fruhulda,
    ok, I found the keyboard viewer, it only shows the traditional symbol 'return'.  something like a sideway u-turn continued with the arrow under.  This is the Canadian or US keyboard. 
    btw thanks for your suggestion.

  • What is VIEW in Database table what is the advantage

    Hi:
    I would like to get your opinion on what is the advantage of Table VIEW?
    I read a note saying it is all about simplifying Query.
    But when you come to XMLTYPE where there is only ONE ROW and NO COLUMN,
    How do you create XMLVIEW for a large XML files?
    Please help
    Ali_02

    Overview of Views
    Read here...
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10713/schemaob.htm#i20690
    XMLView or XMLTYPE ?
    Overview of XML in Oracle Database
    Read here...
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10713/cncptdev.htm#CNCPT1535
    Edited by: ordba on Mar 4, 2010 9:50 AM

  • What is the advantage of using IB to create XIBs/Class Objects over coding?

    Hi all,
    I hoping someone can provide me some pros and cons as to when I should use IB to create XIBs and/or class objects as opposed to directly coding them.
    For example, if I choose Apple's Template for creating a Navigation Based Application (cocoa touch), the project creates two NIB files - MainMenu and RootViewController.
    However looking at one of demo apps SimpleDrillDown, it does not have a RootViewController XIB and instead creates it via code.
    Another example from the same two apps is that the template generates a "Navigation Controller" class object in the Mainmenu.xib. SimpleDrillDown does not bother with this in the XIB, but uses code to generate the controller:
    - (void)applicationDidFinishLaunching:(UIApplication *)application {
    // Create the navigation and view controllers
    RootViewController *rootViewController = [[RootViewController alloc] init];
    UINavigationController *aNavigationController = [[UINavigationController alloc] initWithRootViewController:rootViewController];
    self.navigationController = aNavigationController;
    [aNavigationController release];
    [rootViewController release];
    // Configure and show the window
    [window addSubview:[navigationController view]];
    [window makeKeyAndVisible];
    as opposed to the template which only needs this:
    - (void)applicationDidFinishLaunching:(UIApplication *)application {
    // Configure and show the window
    // Navigation Controller is defined in MainWindow.xib
    [window addSubview:[navigationController view]];
    [window makeKeyAndVisible];
    So what are the advantages of each approach. Why does apple suggest one approach and yet all its demos use another.
    Any thoughts, answers gratefully received.
    TIA, Michael.

    You can do whatever you're comfortable with, but most of the best Cocoa programmers--the ones on the Mac, I mean--recommend putting everything you can into Interface Builder.
    It's a little like the difference between writing a program to do a bunch of financial calculations and using a spreadsheet. Yeah, the program can do everything the spreadsheet can--and more besides--but you'll find it far easier to create, use and modify the spreadsheet.
    Interface Builder takes away a lot of completely meaningless choices ("What order should I create the objects in? How should I name the variables? How should I create their frames? What order should I set the attributes in?"), leaving you with an interface optimized for creating and arranging objects, and allowing your code to focus on what you really do need to think about--your application's logic.
    (By the way--part of the reason Apple's demos don't all use Interface Builder is that the very first SDK releases didn't have it. Back then, you had to create all your views programatically. Believe me, I have no wish to go back to setting autoresize masks manually. Now get off my lawn, whippersnapper.)

  • What are the advantages of compressor and it it even necessary

    what are the advantages of compressor and it it even necessary?

    Necessary for some and not for others – probably a large majority – who can by with the presets avalaible in FCX.
    The users who need Compressor are those who want to control the parameters of the encodes to get the best possible trade-off between file size and quality. Or those who want to do things like standards conversions, complex frame speed changes, better re-scaling capabilities, de-interlacing, re-interlacing, output formats beyond which are available in FCX, chapter markers for DVD and Blu-Ray authoring, batch conversions for multiple purposes through droplets, access to clusters for faster rendering.
    Russ

  • What are the advantage of using a passive monitoring technique ?

    What are the advantage of using a passive monitoring technique

    Hi Plawansai,
    I saw your question that is still unanswered.
    I believe an advantage of using a passive monitoring technique is that it won't interfer with live traffic, as it does not inject traffic into the network or modify the traffic that is already on the network.
    One drawback anyway, is that post-processing time can take a large amount of time with passive monitoring!
    A combination of the two monitoring methods seems to be the route to go.
    V.

  • What are the advantages of WiFi + cellular as to just WiFi devices

    What are the advantages of WiFi + cellular as to just WiFi devices

    Advantages of Wi-Fi and cellular iPad.
    1. You can use it in places without Wi-Fi.
    2. The cellular model have GPS.

  • What are the advantages of varying write speeds and burn speeds?

    What are the advantages of varying write speeds and burn speeds?

    The slower the speed, the fewer burn errors (or, in other words, you'll burn fewer "coasters"). I've always tried to burn at a slower speed, i.e. 2x - 4x. I'd rather wait a few minutes more and I've never had any burn errors.

  • What is the advantages of polymorphism over method overriding?

    what is the advantages of polymorphism over method overriding,that means if we are able to to create object at different instances at diff time for that sub class reff variable than what is the need of careating object of super class data type(i.e why always it is necessary to have upcasting for polymorphism?but if we can achive the same output without upcasting).....please tell me..lets have complete discuss..

    Seriously though....
    WebLogic (for which I have deployed many apps on) as
    well as Websphere are both high end Java application
    servers, meaning J2EE servers (in short). They allow
    one to deploy Enterprise Archive(EAR), a Web
    Archive(WAR), or an EJB Archive (in a JR file).
    These two servers allow one to deploy EJBs, use
    e JNDI, JMS, connectors, and other J2EE technologies
    - Tomcat does not. well, EJBs - no
    JNDI, yes - http://tomcat.apache.org/tomcat-4.1-doc/jndi-resources-howto.html
    JMS - yes (with an implementation, such as ActiveMQ: http://activemq.codehaus.org/Tomcat)
    Not sure what you mean by "connectors".
    Tomcat provides quite a bit of functionality (but yes, no EJBs)

  • What is the advantage of an iCloud mail account?

    I recently updated to iOS 5 on my 64GB iPad 2 +3G. I signed up for iCloud using the same Apple ID I have been using all along.
    I was also able to create a new iCloud mail account using @me.com.  What is the advantage of having this new email account?
    I kind of understand the function of iCloud. It enables me to access the same content via all my iOS devices.  If I have a photo in my iPad 2, for example, iCloud could push that same photo to my iPhone if I had one.  (It is not much use to me now as I have no other devices besides my iPad 2. I guess I could use the computer at the library and access stuff at iCloud.com.)
    The two email accounts I already have are already accessible using other devices.
    I can access the same Yahoo account using my iPad 2, an iPhone, or a computer at the local library. So, why do I really need this iCloud account?
    I have seen postings from others who have had prior Apple IDs, @me.com accounts, and something called MobileMe. My head spins when reading those posts.
    I am new to the Apple world, so luckily I don't have those problems concerning the use of previously established stuff.
    I used the same Apple ID I already had to set up my iCloud, but I used a slightly different variation of that email address to set up the iCloud mail account.
    Was that a mistake? I am now wondering if I should have kept it all the same. It tells you you cannot change the @me.com address once it is established anyway.
    Also, the iPad is considered superior to other tablets because of the wealth of apps available (140,000). Isn't that a little hyped?
    There seem to be a lot of duplicative apps that are not too useful. For example, there are tons of calculator, alarm clock, and reminder apps in the app store.
    Thanks for any insights you can provide.

    "What is the advantage of having this new email account?"
    It is simply an extra email if you wish to use it. You don't have to.
    "Also, the iPad is considered superior to other tablets because of the wealth of apps available (140,000). Isn't that a little hyped?"
    No. It is actually +600,000 apps.
    The 140,000 is iPad specific apps. You can also run iPhone apps and universal apps just fine.
    Sure there are lots of duplicates and a bunch of apps are lame but there are definitely plenty of very good quality apps.

  • What are Parameters? How are they differenet from Variables? Why can't we use variables for passing data from one sequnece to another? What is the advantage of using Parameters instead of Variables?

    Hi All,
    I am new to TestStand. Still in the process of learning it.
    What are Parameters? How are they differenet from Variables? Why can't we use variables for passing data from one sequnece to another? What is the advantage of using Parameters instead of Variables?
    Thanks in advance,
    LaVIEWan
    Solved!
    Go to Solution.

    Hi,
    Using the Parameters is the correct method to pass data into and out of a sub sequence. You assign your data to be passed into or out of a Sequence when you are in the Edit Sequence Call dialog and in the Sequence Parameter list.
    Regards
    Ray Farmer

  • What are the advantages of Tomcat 6.x in comparison to Tomcat 5.5?

    Hi,
    What are the advantages of Tomcat 6.x in comparison to Tomcat 5.5, in terms of performance, scalability, development and deployment.
    Is there any particular reason for the changed directory structure in Tomcat 6.x, other than making it simplified.
    In case this is not the right place for this question, please direct me to the right forum.
    Thanks

    http://forums.sun.com/thread.jspa?threadID=5422359&messageID=10897994#10897994
    http://forums.sun.com/thread.jspa?threadID=5422354&messageID=10897951#10897951
    http://forums.sun.com/thread.jspa?threadID=5422095&messageID=10896690#10896690

  • What are the advantages to using BlazeDS or Granite?

    We have decided to use Flex3 to upgrade our UI. We have heard
    good things about using Granite Data Services, but it requires jdk5
    or higher, and the same for BlazeDS.
    We are currently using Websphere 6.0 and are discussing our
    environment options: replace Websphere with JBoss 4.2 (Sun jdk6),
    upgrade to Websphere 6.1 (IBM jdk5), or keep the current Websphere
    6.0 (IBM jdk4). The concerns are upgrade cost, and time to develop
    and qa any changes to the environment.
    We would like to get some feedback on pros and cons of using
    Flex with these three environments. If we stay with jdk4, will we
    spend nn% more time writing code that could have been done out of
    the box with Granite? Are there improvements with memory, speed,
    etc. using Flex with a later version of the jdk? Will development
    time be shorter with a later version of the jdk? What are the
    advantages and disadvantages of using Flex with WebSphere versus
    JBoss?
    Thanks for your input!

    BBM and PIN messages are messages sent from one BlackBerry to another.  The message is composed by the sender and goes through RIM's secure server before being delivered to the recipient.  They are only available to BlackBerry users.
    The thing I like about them is how you can see if they've been received by the recipient.  Once the message reaches the recipient's phone, you'll notice a small 'D' at the start of your message.  This means it's been delivered.  When the recipient opens the message, that 'D' will switch to an 'R', for 'read'.  So now you know that it's actually been received by the recipient.
    One more great thing about these messages is that there is no limit to length.  As you're probably aware, most carriers limit text messages to 160 characters; not so with these messages, they can be much longer.
    BBM and PIN messages are the same type of message, but with PIN messages you're limited to just that one contact receiving it.  With BBM, you can have many contacts in on a chat or you can broadcast a message to many contacts at once.
    I hope that explains things for you. 
    - If my response has helped you, please click "Options" beside my post and mark it as solved. Clicking the "thumbs up" icon near the bottom of my response would also be appreciated.

Maybe you are looking for

  • Pan & Zoom - Different renditions

    I have a 4 pan and zoom objects that are just fine in a 1024 x 768 for horizontal and vertical rendition of my article. I created an alternate layout for the iPad 3/4 - 2048 x 1536 for horizontal and vertical. I cannot upload my article to my folio b

  • All my contacts have the same birthday... how to remove them?

    HI all, I have had this issue for a few years... in fact, since the very DAY I switched from Windows to MAC! All my contacts have that date entered as their birthday as well as their aniversary. Sounds funny perhaps but.... is not, really. How can I

  • N73-1 WEB application crashes

    I have had my N73-2 for just over 3 months now and find it an awesome handset. However one of my main reason for buying this handset was for its superb built in WEB browser which hands down beets anything on offer there is on the market in terms of m

  • CRMXIF_PARTNER_SAVE_M IDOC customization

    Hi All, I need to filter the XIF Business Partner Master IDOC based on certain vaues like create by,changed by fields. For that I have customized the basic IDOC type to 'YCRMXIF_PARTNER_SAVE_M01' with required segments and assigned it to Message Type

  • Firefox 4,5,6 refreshes all tabs although no internet connection exists

    Since I've updated Firefox 4 and later to Firefox 5 and Firefox 6 (Aurora) I've been missing one particular feature which was working very nicely inFirefox 3.x. In Firefox 3.x I could start it without a internet connection and almost all of my open t