NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

SQL

-DDL
create database szkola;

` drop table klasa

create table klasa (id int auto_increment primary key, nazwa varchar(2));

drop database;

alter table klasa change nazwa nazwa1 varchar(2);

alter table klasa drop nazwa;

alter table klasa add nazwa opis varchar(20);


-DML
insert into klasa values (1,"1a");

update wychowawca set nazwisko="ffff" where id=4;

delete from wychowawca where id=4;


-DQL

select * from uczen;

select * from uczen where nazwisko like "%a";

sleect * from uczen where nazwiskonot like "%a";

sleect * from uczen nazwisko not like "%a%";

Select * from uczen where nazwisko like "g%" or nazwisko like "p%" order by nazwisko desc;

select * from uczen where id between 1 and 10;

select * from uczen where id in(1,5,10); LUB sleect * from uczen where id=1 or id=2 or id=3;

funkcje agregujące

sum()
avg()
count()
min()
max()

select sum(ubezpieczenia) from auta;

select sum(ubezpieczenia) as razem from auta;

select marka, sum(ubezpieczenie) as razem from auta group by marka;

select marka, sum(ubezpieczenie) as razem from auta group by marka HAVING razem>1200;

select uczen.imie, uczen.nazwisko, wychowawca.nazwisko from uczen inner join wychowawca INNER JOIN klasa on uczen.id_klasy=klasa.ID AND klasa.ID=wychowawca.id_klasy







creata database bibliotkea
source C:/ baza_zad1.sql

select * from ksiazki where wydawnictwo = ossolineum

select ksiazki.tytul, autorzy.nazwisko from ksiazki inner join autorzy on ksiazki.autorID=autorzy.IDautor

select ksiazki.IDksiazki, ksiazki.tytul from ksazki innerj join egzemplarze on ksiazki.IDksiazki=egzemplarze.KsiazkiID where egzemplarze.dowypozyczenia=0

alter table autorzy add ID=3

create user









































SQL

-DDL
create database szkola;

` drop table klasa

create table klasa (id int auto_increment primary key, nazwa varchar(2));

drop database;

alter table klasa change nazwa nazwa1 varchar(2);

alter table klasa drop nazwa;

alter table klasa add nazwa opis varchar(20);


-DML
insert into klasa values (1,"1a");

update wychowawca set nazwisko="ffff" where id=4;

delete from wychowawca where id=4;


-DQL

select * from uczen;

select * from uczen where nazwisko like "%a";

sleect * from uczen where nazwiskonot like "%a";

sleect * from uczen nazwisko not like "%a%";

Select * from uczen where nazwisko like "g%" or nazwisko like "p%" order by nazwisko desc;

select * from uczen where id between 1 and 10;

select * from uczen where id in(1,5,10); LUB sleect * from uczen where id=1 or id=2 or id=3;

funkcje agregujące

sum()
avg()
count()
min()
max()

select sum(ubezpieczenia) from auta;

select sum(ubezpieczenia) as razem from auta;

select marka, sum(ubezpieczenie) as razem from auta group by marka;

select marka, sum(ubezpieczenie) as razem from auta group by marka HAVING razem>1200;

select uczen.imie, uczen.nazwisko, wychowawca.nazwisko from uczen inner join wychowawca INNER JOIN klasa on uczen.id_klasy=klasa.ID AND klasa.ID=wychowawca.id_klasy







creata database bibliotkea
source C:/ baza_zad1.sql

select * from ksiazki where wydawnictwo = ossolineum

select ksiazki.tytul, autorzy.nazwisko from ksiazki inner join autorzy on ksiazki.autorID=autorzy.IDautor

select ksiazki.IDksiazki, ksiazki.tytul from ksazki innerj join egzemplarze on ksiazki.IDksiazki=egzemplarze.KsiazkiID where egzemplarze.dowypozyczenia=0

alter table autorzy add ID=3

create user









































     
 
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.