NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

SHENIME DBA 13.01.2023
VLERA JAN MAR NGA DIAGRAMI I ERISIT

vlera specifike per rolin e puntorit
qe do te thot qe ka vlera bosh per profesionet e tjera


do lidhet tabela pilot me tab fluturime per te gjetur mesataren
kur behet lidhja me pilot dhe fluturime do lidhet me puntor sepse pilot eshte pjes e tab puntor
behet join


TAB puntor ka 100
tab fluturime ka 100
behen 10000 krahasime
sepse 100*100 ul performancen
entiteti supertip
do krijohet supertip
emer mbiemer dat punsimi
nen tip me 3 atribute te vecanta

__________________________________________________________________________________________
1. supertip vendosen atributet perbashkta (emer mbiemer dat punsimi)
2. nentip vendosen atributet e vecanta (dieta licensa etj)
3. ID kalon te supertipi dhe id trashgohet tek te gjith nentipet (piloti do ket pun_ID mekaniku do ket PUN_ID)
PK, FK bashke
nese eshte pk dhe fk bashk tregon trashgimi ne kete rast nuk vendoset mardhenia sepse dihet qe eshte nje me nje
4. Kufizimi
kufizimi i ndarjes dhe kufizimin i mbivendosjes

(d) ndarje - disjoint MAX 1
(o) mbivendosje - overlap MAX shume
(=) i plot
(-) i pjesshem
kombinohen psh ( ndarje e plot)
ndarje eshtenje lement e supertipit nuk mund te jet pjes e me shume se nje nentip
ndarje e plot MIN 1 (nje element i supertipit mund te lidhet me nje dhe vetem nje nentip)[1:1]
ndarje e pjesshme MIN 0 [0:1] (jo me shume se nje )
mbivendosje e plot (te pakten nje) [1:M]
mbivendsoje e pjesshme (nuk ka kufizim) [0:M]
5. Diskriminusi
eshte nje atribut te entiteti supertip i cili percakton se kujt nentipi i perket ai element
vlerat qe mer diskriminusi shenohen ne diagram (P M K )
Diskriminusi kur kemi ndarje do ket nje diskriminus te perbashket
kur kemi mbivendosje bejm shume diskriminues
praktikisht behen nga nje diskriminues per cdo nentip
pra kemi 3 nentipe 3 diskriminus
PUN_PIL 0:1
PUN_MEK 0:1
PUN_KON 0:1
PUN_TIP CHAR (1) CHECK ('P', 'M', 'K')

PUN_PIL BIT NOT NULL






SELECT * (20100 VEPRIME)
FROM PERSON P, PUNETOR PU
WHERE P.PER_ID=PU.PER_ID
AND PUN_DAT >= '01-10-2019'
__________
SELECT * (10100 VEPRIME)
FROM PERSON
WHERE PER_ID IN (SELECT PER_ID FROM PUNETOR WHERE PUN_DAT >= '01-10-2019')

__________________________________________________
CREATE VIEW AS KOT (5100 VEPRIME)
SELECT *
FROM PERSON
WHERE PER_PUN = 1;
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.