السلام علیکم و رحمتہ اللہ
Saba Sis Aap ki assignment thek hy agr ho sky to is m ek chez add kr dn.. Inko tables k columns ki form m b likh den :)
والسلام
اویس | محمود | اعوان
MC110202428
PWCT01, Wah Cantt.
MC110202428
PWCT01, Wah Cantt.
On Thu, Dec 29, 2011 at 12:26 PM, mc110200207 Saba Shafique <mc110200207@vu.edu.pk> wrote:
salam;
mn ne assignment to bna li hy but mjy kuch kami lgti hy baki jitni b hy theek hy agr koi kami hy to plz add kr lain is mn thanks...........
jitna mj se ho ska hy mn ne kr diya hy............
2011/12/28 اویس اعوان <mc110202428@vu.edu.pk>السلام علیکم و رحمتہ اللہ
Sister
Primary keys un attributes ya columns ko kehty hn jo k ksi bhi table k andr se distinct record select krny k liye use hoty hn..
Like in Product table, P_ID is a good candidate of being Primary Key because through P_ID go to a specific single record.
Foreign is a type of attribute through which we can select a single or multiple records relating to the same primary key existing in another table.
Example:
Suppose there are two tables Customer and Order
Customer:
Cus_ID PK
CName
Address
Order:
O_ID PK
Description
Amount
Cus_ID FK
Here in table named Order, there is an attribute named Cus_ID. This attribute will help us to select one or more records which are made by a specific Customer.
Hope it would be helpful :)
والسلام
--
Join us at facebook: https://www.facebook.com/VU.Study.Corner
Group Link: http://groups.google.com/group/VU-Study-Corner?hl=en
Group Rules: http://groups.google.com/group/VU-Study-Corner/web/group-rules
Unsubscribe: VU-Study-Corner+unsubscribe@googlegroups.com
Adult contents, Spamming, Immoral & Rudish talk, Cell number, Websites & Groups links specially in paper days are strictly prohibited and banned in group.
--.......barbi......
--
Join us at facebook: https://www.facebook.com/VU.Study.Corner
Group Link: http://groups.google.com/group/VU-Study-Corner?hl=en
Group Rules: http://groups.google.com/group/VU-Study-Corner/web/group-rules
Unsubscribe: VU-Study-Corner+unsubscribe@googlegroups.com
Adult contents, Spamming, Immoral & Rudish talk, Cell number, Websites & Groups links specially in paper days are strictly prohibited and banned in group.
-- --
Join us at facebook: https://www.facebook.com/VU.Study.Corner
Group Link: http://groups.google.com/group/VU-Study-Corner?hl=en
Group Rules: http://groups.google.com/group/VU-Study-Corner/web/group-rules
Unsubscribe: VU-Study-Corner+unsubscribe@googlegroups.com
Adult contents, Spamming, Immoral & Rudish talk, Cell number, Websites & Groups links specially in paper days are strictly prohibited and banned in group.
No comments:
Post a Comment