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

Answer Posted / inderjeet yadav

Primary key:A key which is uniquely indetified a row in a
table and primary key can not be null.

Unique key: A key which is uniquely indetified a row in a
table and but unique key can be null.

Foreign:Primary key of the first table that refering in
second table is know as foreign of second table.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a database example?

534


A design problem was given in which I was supposed to make a design for the data base for a given problem.

561


How do database connections work?

495


how node connect with cpu?

1660


What are different types of joins used in?

622






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

1741


what is ad-hoc access? what is the diff b/w managed query and ad-hoc access?

1883


What is a trace file?

630


Can we use redis as database?

544


Define stored procedure?

599


WHAT IS NEED BY METION DATFMT AND TIMFMT IN H-SEPICITION IN RPGLE?

2477


Explain alternate key?

647


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.

2002


wHat Is THE difference between MOVEL and MOVEL(P)……….. CAN ANYONE EXPLAIN ME..

2500


What is the advantage of varchar2 over char?

788