Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
10 views
3 pages
Testpripremabaze 1
Uploaded by
cecisol994
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
Download
Save
Save testpripremabaze1 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
10 views
3 pages
Testpripremabaze 1
Uploaded by
cecisol994
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save testpripremabaze1 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 3
Search
Fullscreen
create table licna
( licna_broj int(13) NOT NULL PRIMARY KEY,
datum_izdavanja date,
datum_isteka date
)ENGINE=INNODB;
create table studenti
(
student_id int(2) AUTO_INCREMENT PRIMARY KEY,
ime varchar(45) NOT NULL,
prezime varchar(45) NOT NULL,
godina_studija int(1) NOT NULL,
licna_broj int(13) NOT NULL,
FOREIGN KEY(licna_broj) references licna(licna_broj) ON DELETE CASCADE
)ENGINE=INNODB;
create table predmeti
(
naziv varchar(45) NOT NULL PRIMARY KEY,
semestar_slusanja int(1) NOT NULL
)ENGINE=INNODB;
create table profesori
(
profesor_id int(2) AUTO_INCREMENT PRIMARY KEY,
ime varchar(45) NOT NULL,
prezime varchar(45) NOT NULL,
katedra varchar(100) NOT NULL
)ENGINE=INNODB;
create table ocene
(
ocena_id int(2) AUTO_INCREMENT PRIMARY KEY,
ocena int(1) NOT NULL,
student_id int(2),
datum_ocene date,
predmet_ocene varchar(45),
FOREIGN KEY (student_id) REFERENCES studenti(student_id) ON DELETE CASCADE,
FOREIGN KEY (predmet_ocene) REFERENCES predmeti(naziv) ON DELETE CASCADE
)ENGINE=INNODB;
create table konsultacije
(
konsultacija_id int(2) AUTO_INCREMENT PRIMARY KEY,
student_id int(2),
profesor_id int(2),
FOREIGN KEY (student_id) REFERENCES studenti(student_id) ON DELETE CASCADE,
FOREIGN KEY (profesor_id) REFERENCES profesori(profesor_id) ON DELETE CASCADE,
datum_zakazivanja datetime
)ENGINE=INNODB;
INSERT INTO licna (licna_broj, datum_izdavanja, datum_isteka) VALUES
(12345, '2020-01-01', '2030-01-01'),
(123456, '2021-05-15', '2031-05-15');
INSERT INTO studenti (student_id, ime, prezime, godina_studija, licna_broj) VALUES
(1, 'Marko', 'Marković', 2, 12345),
(2, 'Ana', 'Anić', 3, 123456);
INSERT INTO predmeti (naziv, semestar_slusanja) VALUES
('Matematika', 1),
('Programiranje', 2);
INSERT INTO profesori (profesor_id, ime, prezime, katedra) VALUES
(1, 'Dragan', 'Ilić', 'Računarske nauke'),
(2, 'Milica', 'Milić', 'Primenjena matematika');
INSERT INTO ocene (ocena_id, ocena, student_id, datum_ocene, predmet_ocene) VALUES
(1, 8, 1, '2023-06-15', 'Matematika'),
(2, 9, 2, '2023-06-16', 'Programiranje');
INSERT INTO konsultacije (konsultacija_id, student_id, profesor_id,
datum_zakazivanja) VALUES
(1, 1, 1, '2023-09-20 10:00:00'),
(2, 2, 2, '2023-09-21 14:00:00');
ALTER TABLE studenti
ADD COLUMN mesto_rodjenja varchar(100);
2.
CREATE TABLE `autor`
(
autor_id int(5) AUTO_INCREMENT PRIMARY KEY,
ime varchar(50) NOT NULL,
prezime varchar(50) NOT NULL
)ENGINE=INNODB;
CREATE TABLE `knjiga`
(
knjiga_id int(5) AUTO_INCREMENT PRIMARY KEY,
naslov varchar(100) NOT NULL,
godina_izdanja int(4) NOT NULL,
autor_id int(5),
FOREIGN KEY (autor_id) REFERENCES autor(autor_id) ON DELETE CASCADE
)ENGINE=INNODB;
CREATE TABLE `clan`
(
clan_id int(5) AUTO_INCREMENT PRIMARY KEY,
ime varchar(50) NOT NULL,
prezime varchar(50) NOT NULL,
mesecna_clanarina int(4) NOT NULL
)ENGINE=INNODB;
CREATE TABLE `clanarina`
(
clanarina_id int(5) AUTO_INCREMENT PRIMARY KEY,
clan_id int(5),
iznos int(5) NOT NULL,
datum_isteka DATE NOT NULL,
FOREIGN KEY (clan_id) REFERENCES clan(clan_id) ON DELETE CASCADE
)ENGINE=INNODB;
INSERT INTO `autor` (ime, prezime)
VALUES
('Ivo', 'Andrić'),
('Branislav', 'Nušić');
INSERT INTO `knjiga` (naslov, godina_izdanja, autor_id)
VALUES
('Na Drini ćuprija', 1945, 1),
('Autobiografija', 1932, 2);
INSERT INTO `clan` (ime, prezime, mesecna_clanarina)
VALUES
('Marko', 'Marković', 500),
('Ana', 'Anić', 600);
INSERT INTO `clanarina` (clan_id, iznos, datum_isteka)
VALUES
(1, 500, '2024-10-15'),
(2, 600, '2024-11-01');
alter table clanarina
drop column datum_isteka
You might also like
Delivery of Goods Under Bills of Lading PDF
PDF
100% (2)
Delivery of Goods Under Bills of Lading PDF
230 pages
LU26Bylaws 20180601035730
PDF
No ratings yet
LU26Bylaws 20180601035730
32 pages
C++ Exercises 2
PDF
No ratings yet
C++ Exercises 2
23 pages
Baza Studentska Sluzba V
PDF
No ratings yet
Baza Studentska Sluzba V
16 pages
PBP 6
PDF
No ratings yet
PBP 6
68 pages
Struktura I Organizacija Baza Podataka: DR Slavica Aleksi Ć, Milanka Bjelica, Nikola Obrenović
PDF
No ratings yet
Struktura I Organizacija Baza Podataka: DR Slavica Aleksi Ć, Milanka Bjelica, Nikola Obrenović
44 pages
Lekcija 7 - Rdbms & SQL
PDF
No ratings yet
Lekcija 7 - Rdbms & SQL
41 pages
Globalization and Social Change
PDF
No ratings yet
Globalization and Social Change
85 pages
MS Access II PDF
PDF
No ratings yet
MS Access II PDF
44 pages
20 Greek Philosopher
PDF
100% (1)
20 Greek Philosopher
59 pages
Data Manipulation
PDF
No ratings yet
Data Manipulation
33 pages
Professional Members Directory As On 26th November 18
PDF
No ratings yet
Professional Members Directory As On 26th November 18
120 pages
宏观经济学 第八版 (英文版) 多恩布什
PDF
No ratings yet
宏观经济学 第八版 (英文版) 多恩布什
212 pages
Select Sintaksa: Primjer
PDF
No ratings yet
Select Sintaksa: Primjer
18 pages
Digital Assignment Database Technologies: Name-Shaswata Ganguly Register Number 18MCA0021
PDF
No ratings yet
Digital Assignment Database Technologies: Name-Shaswata Ganguly Register Number 18MCA0021
48 pages
CMJD Class Note 01 - Database Management Systems
PDF
No ratings yet
CMJD Class Note 01 - Database Management Systems
8 pages
internal dbms
PDF
No ratings yet
internal dbms
7 pages
Atividade mapa banco de dados - unicesumar - analise e desenvolvimento de sistemas
PDF
No ratings yet
Atividade mapa banco de dados - unicesumar - analise e desenvolvimento de sistemas
6 pages
Assignment 1-4
PDF
No ratings yet
Assignment 1-4
24 pages
Rdbms Codes
PDF
No ratings yet
Rdbms Codes
20 pages
TA41 en TheCircusOfTransformation DS
PDF
No ratings yet
TA41 en TheCircusOfTransformation DS
44 pages
SQL All You Need For Nothing
PDF
No ratings yet
SQL All You Need For Nothing
11 pages
Willing Statement Letter
PDF
0% (1)
Willing Statement Letter
3 pages
6 Kreiranje Baze Podataka PDF 11494
PDF
No ratings yet
6 Kreiranje Baze Podataka PDF 11494
8 pages
DBA Lab Ass 2
PDF
No ratings yet
DBA Lab Ass 2
10 pages
Testpripremabaze 2
PDF
No ratings yet
Testpripremabaze 2
2 pages
Skripta Za Administratora Sa Udemy-A
PDF
No ratings yet
Skripta Za Administratora Sa Udemy-A
5 pages
SQL Practice Questions
PDF
No ratings yet
SQL Practice Questions
15 pages
For Dummy Database if Not Exists School_012937
PDF
No ratings yet
For Dummy Database if Not Exists School_012937
4 pages
Assignment
PDF
No ratings yet
Assignment
4 pages
02.relacijska Baza
PDF
No ratings yet
02.relacijska Baza
3 pages
Teachers & Students
PDF
No ratings yet
Teachers & Students
4 pages
Standard Bid Evaluation Guide For Procurement of Goods and User S Guide - November 2010
PDF
100% (1)
Standard Bid Evaluation Guide For Procurement of Goods and User S Guide - November 2010
55 pages
18 Upiti - V Deo - View
PDF
No ratings yet
18 Upiti - V Deo - View
4 pages
HotelZeljana
PDF
No ratings yet
HotelZeljana
3 pages
SQL Osnovne Komande I Opis
PDF
No ratings yet
SQL Osnovne Komande I Opis
5 pages
Vstud Shema
PDF
No ratings yet
Vstud Shema
2 pages
SCMUN 2025 - Delegate Handbook
PDF
No ratings yet
SCMUN 2025 - Delegate Handbook
15 pages
CollegeManagement SQL DDL and Views
PDF
No ratings yet
CollegeManagement SQL DDL and Views
3 pages
KEY CONSTRAINTS
PDF
No ratings yet
KEY CONSTRAINTS
4 pages
ASSIGNMENT-2
PDF
No ratings yet
ASSIGNMENT-2
3 pages
Fakultet
PDF
No ratings yet
Fakultet
2 pages
certificate of graduation_af30a42b-2296-4d48-8d19-8ea90969ed8f
PDF
No ratings yet
certificate of graduation_af30a42b-2296-4d48-8d19-8ea90969ed8f
2 pages
1.lab Vježba. Napredne Baze Podataka
PDF
No ratings yet
1.lab Vježba. Napredne Baze Podataka
4 pages
training1
PDF
No ratings yet
training1
4 pages
Print at
PDF
No ratings yet
Print at
2 pages
Ristanović Dragoslav
PDF
No ratings yet
Ristanović Dragoslav
1 page
PracticeSet
PDF
No ratings yet
PracticeSet
2 pages
New Text Document
PDF
No ratings yet
New Text Document
2 pages
Creates Consultasql3
PDF
No ratings yet
Creates Consultasql3
2 pages
RDBMS
PDF
No ratings yet
RDBMS
3 pages
Ne Diagramin e DB Realizoni
PDF
No ratings yet
Ne Diagramin e DB Realizoni
5 pages
CEMEX: Sunnier Days in Mexico? (DRAFT)
PDF
No ratings yet
CEMEX: Sunnier Days in Mexico? (DRAFT)
10 pages
Create Table Department (
PDF
No ratings yet
Create Table Department (
2 pages
Creating the database
PDF
No ratings yet
Creating the database
2 pages
ER Diagram SQL Code
PDF
No ratings yet
ER Diagram SQL Code
2 pages
EntityRelationshipModel
PDF
No ratings yet
EntityRelationshipModel
2 pages
DDL
PDF
No ratings yet
DDL
2 pages
Access Zadaci
PDF
No ratings yet
Access Zadaci
3 pages
SQL Zadaci
PDF
No ratings yet
SQL Zadaci
2 pages
Una Drakulic (681), Pismeni Ispit Informacioni Sistemi, Primjer Scenario Fastfood Racun ..
PDF
No ratings yet
Una Drakulic (681), Pismeni Ispit Informacioni Sistemi, Primjer Scenario Fastfood Racun ..
3 pages
WAC01 2016 Oct AS QP
PDF
No ratings yet
WAC01 2016 Oct AS QP
16 pages
SQL Create Table Student (
PDF
No ratings yet
SQL Create Table Student (
1 page
Student I
PDF
No ratings yet
Student I
1 page
SQL Query
PDF
No ratings yet
SQL Query
5 pages
Priprema Primeri Kol
PDF
No ratings yet
Priprema Primeri Kol
1 page
SQL
PDF
No ratings yet
SQL
4 pages
Univesity Management System Databasee
PDF
No ratings yet
Univesity Management System Databasee
4 pages
Calculation Exchange Ratio
PDF
100% (1)
Calculation Exchange Ratio
10 pages
IEE 505 HW2 Solution
PDF
No ratings yet
IEE 505 HW2 Solution
2 pages
Macbeth - Act One Scene 2
PDF
No ratings yet
Macbeth - Act One Scene 2
12 pages
Revised Fire Code of The Philippines of 2008
PDF
100% (1)
Revised Fire Code of The Philippines of 2008
13 pages
FIDIC and The Standard Form Contracts
PDF
100% (12)
FIDIC and The Standard Form Contracts
108 pages
Calculation of Ratios
PDF
No ratings yet
Calculation of Ratios
5 pages
?n7sfidprb - Module 6 SOCSCI102
PDF
No ratings yet
?n7sfidprb - Module 6 SOCSCI102
4 pages
First Quarter Exam Grade 6 Hele
PDF
No ratings yet
First Quarter Exam Grade 6 Hele
3 pages
Forth Bridge Solutions Intl. Inc.: Memorandum of Contract and Agreement
PDF
No ratings yet
Forth Bridge Solutions Intl. Inc.: Memorandum of Contract and Agreement
5 pages
Misco Home Access Welcome Guide v2
PDF
No ratings yet
Misco Home Access Welcome Guide v2
24 pages
Aishwarya Rai Profile
PDF
No ratings yet
Aishwarya Rai Profile
1 page
We Are Investocrypt
PDF
No ratings yet
We Are Investocrypt
9 pages
Access Zadaci
PDF
No ratings yet
Access Zadaci
3 pages
Enclosure SIDPH School Basedlsx 1 1
PDF
No ratings yet
Enclosure SIDPH School Basedlsx 1 1
1 page
Islamic Development Bank Scholarship
PDF
No ratings yet
Islamic Development Bank Scholarship
2 pages
Book
PDF
No ratings yet
Book
1 page
? Keyword Pass FB ?
PDF
No ratings yet
? Keyword Pass FB ?
1 page
Base All Your Answers On The Text.: HHHHHHHHHHHHHHHHHHHH
PDF
No ratings yet
Base All Your Answers On The Text.: HHHHHHHHHHHHHHHHHHHH
5 pages
Abstract Submission 2710 Preview 2
PDF
No ratings yet
Abstract Submission 2710 Preview 2
1 page
Imogen Is Engaged
PDF
No ratings yet
Imogen Is Engaged
3 pages
Sql Plsql Oracle
From Everand
Sql Plsql Oracle
Andrew Igla
No ratings yet
Blazor and API Example: Classroom Quiz Application
From Everand
Blazor and API Example: Classroom Quiz Application
Taurius Litvinavicius
No ratings yet