what is primary key,unique key, foreign key? can u teach me
in simple language?

Answer Posted / nitin kumar

A primary key is one which uniquely identifies a row of a
table. This key does not allow null values and duplicate
values.

A foreign key is one which identifies a set of columns in a
table or enforce link between the in two tables.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

sparse lookup and where its options we find in OCI and db2?

1745


how to send multiple records which matches all the condition in the lookup transformation ? (if lookup matches the codition for duplicate values)

1597


Explain file manager?

620


Write a query to retrieve for many to many relationships?

578


What is the role of driver manager?

595






What are the disadvantages of views in a database?

545


What are different types of clusters present?

605


Why merge statement is used inside the database?

638


if i want to display the name of students such that to which city they belong must have count greaer than two

1784


Data structure used to implements a menu:

632


define primary key index, bitmap index, hash index,virtual indwx

2850


london school of science and technology has a software development unit,known as lsst solutions,which is responsible for developing and implementing software throughout the collegejames tristan keeps a record of all student details in the college including student id,name,and start date and phone number.There are many courses offered by LSST. For example MBA, MSc, BSc, BABS, DF, English etc. Each course id identified by course id, description, duration. Each course has many semesters. Each semester takes place during a particular term. Semester details and term details are required to be stored in the database. Each course has many subjects and same subject may be offered in many courses. For each subject many details such as Subject code, name, result and attendance are required to be stored. Every subject has mainly two assessments; one assignment and one exam. Assignment is worth of 30% and exam 70% respectively. You have been appointed as a database designer. Your job is to provide ERD with all possible entities and relationships. Note: Feel free to make necessary assumptions 3: Assignment Tasks. 1. Create an ERD for the above problem 2. Translate the ERD to Relational Data model (RDM) 3. Implement the RDM by creating the tables 4. Populate the database with your own data. 5. SQL Queries for the following tasks a. List all student details in each course along with course details b. Count and display number of students in each course. c. List student name, course name, assessment description, marks for all students.

2009


What is the best database software for small businesses?

507


During insert operation in Netezza Connector, if we give direct option as Yes , is there any issue?

952


How do you pass parameter in stored procedure?

734