Sql programming



Download 0,49 Mb.
bet2/4
Sana16.04.2022
Hajmi0,49 Mb.
#556329
1   2   3   4
Bog'liq
1648792529 (1)

Connecting lines, solid lines that connect attributes to show the relationships of entities in the diagram.

  • Cardinality specifies how many instances of an entity relate to one instance of another entity. Ordinality is also closely linked to cardinality. While cardinality specifies the occurrences of a relationship, ordinality describes the relationship as either mandatory or optional. In other words, cardinality specifies the maximum number of relationships and ordinality specifies the absolute minimum number of relationships.


    There are many notation styles that express cardinality.







    Practical part:

    1. Task for practical work 1. Consider the following schema for a Database.


    Variant №1. Provide an ER-model diagram and sample schema diagrams for the LibraryDatabase, based on the following data:
    BOOK (Book_id, Title, Publisher_Name, Pub_Year)
    BOOK_AUTHORS (Book_id, Author_Name)
    PUBLISHER (Name, Address, Phone) BOOK_COPIES
    (Book_id, Branch_id, No-of_Copies)
    BOOK_LENDING (Book_id, Branch_id, Card_No, Date_Out, Due_Date)
    LIBRARY_BRANCH (Branch_id, Branch_Name, Address)
    Variant №2. Provide an ER-model diagram and sample schema diagrams for the OrderDatabase, based on the following data:
    SALESMAN (Salesman_id, Name, City, Commission)
    CUSTOMER (Customer_id, Cust_Name, City, Grade, Salesman_id)
    ORDERS (Ord_No, Purchase_Amt, Ord_Date, Customer_id, Salesman_id)

    Variant №3. Provide an ER-model diagram and sample schema diagrams for the MovieDatabase, based on the following data:
    ACTOR (Act_id, Act_Name, Act_Gender)
    DIRECTOR (Dir_id, Dir_Name, Dir_Phone)
    MOVIES (Mov_id, Mov_Title, Mov_Year, Mov_Lang, Dir_id)

    Download 0,49 Mb.

    Do'stlaringiz bilan baham:
  • 1   2   3   4




    Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
    ma'muriyatiga murojaat qiling

    kiriting | ro'yxatdan o'tish
        Bosh sahifa
    юртда тантана
    Боғда битган
    Бугун юртда
    Эшитганлар жилманглар
    Эшитмадим деманглар
    битган бодомлар
    Yangiariq tumani
    qitish marakazi
    Raqamli texnologiyalar
    ilishida muhokamadan
    tasdiqqa tavsiya
    tavsiya etilgan
    iqtisodiyot kafedrasi
    steiermarkischen landesregierung
    asarlaringizni yuboring
    o'zingizning asarlaringizni
    Iltimos faqat
    faqat o'zingizning
    steierm rkischen
    landesregierung fachabteilung
    rkischen landesregierung
    hamshira loyihasi
    loyihasi mavsum
    faolyatining oqibatlari
    asosiy adabiyotlar
    fakulteti ahborot
    ahborot havfsizligi
    havfsizligi kafedrasi
    fanidan bo’yicha
    fakulteti iqtisodiyot
    boshqaruv fakulteti
    chiqarishda boshqaruv
    ishlab chiqarishda
    iqtisodiyot fakultet
    multiservis tarmoqlari
    fanidan asosiy
    Uzbek fanidan
    mavzulari potok
    asosidagi multiservis
    'aliyyil a'ziym
    billahil 'aliyyil
    illaa billahil
    quvvata illaa
    falah' deganida
    Kompyuter savodxonligi
    bo’yicha mustaqil
    'alal falah'
    Hayya 'alal
    'alas soloh
    Hayya 'alas
    mavsum boyicha


    yuklab olish