{"id":402,"date":"2021-11-16T10:49:54","date_gmt":"2021-11-16T09:49:54","guid":{"rendered":"https:\/\/informatykachelm.pl\/?p=402"},"modified":"2021-11-18T22:54:05","modified_gmt":"2021-11-18T21:54:05","slug":"2e-kartkowka","status":"publish","type":"post","link":"https:\/\/informatykachelm.pl\/?p=402","title":{"rendered":"2d SQL &#8211; praca domowa"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<!--more-->\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:25%\"><\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:50%\">\n<p>polecenia dla Was &#8211; do zrobienia &#8211; wysy\u0142amy rozwi\u0105zania: same polecenia w pliku tekstowym do ko\u0144ca weekendu<\/p>\n\n\n\n<p>1. Utw\u00f3rz baz\u0119 danych \u2018zakupy\u2019<\/p>\n\n\n\n<p>2. Utw\u00f3rz w bazie danych zakupy tabele \u2018produkty\u2019<\/p>\n\n\n\n<p>3. W tabeli danych produkty dodaj nast\u0119puj\u0105ce rekordy:<\/p>\n\n\n\n<p>numer liczba ca\u0142kowita<\/p>\n\n\n\n<p>nazwa 30 znak\u00f3w<\/p>\n\n\n\n<p>cena liczba ca\u0142kowita<\/p>\n\n\n\n<p>rodzaj nazwa 20 znak\u00f3w<\/p>\n\n\n\n<p>4. Wstaw do tabeli nast\u0119puj\u0105ce produkty<\/p>\n\n\n\n<p>1. chleb 3 pieczywo<\/p>\n\n\n\n<p>2. mleko 4 nabia\u0142<\/p>\n\n\n\n<p>3. bu\u0142ka 1 pieczywo<\/p>\n\n\n\n<p>4. czekolada 5 s\u0142odycze<\/p>\n\n\n\n<p>5. kola 8 napoje<\/p>\n\n\n\n<p>6. sok pomidorowy 5 napoje<\/p>\n\n\n\n<p>7. ser 10 nabia\u0142<\/p>\n\n\n\n<p>8. poledwica 20 wedlina<\/p>\n\n\n\n<p>9. jab\u0142ka 7 owoce<\/p>\n\n\n\n<p>10. banan 6 owoce<\/p>\n\n\n\n<p>5. Polecenia select:<\/p>\n\n\n\n<p>&#8211; wy\u015bwietl najdro\u017cszy owoc<\/p>\n\n\n\n<p>&#8211; wy\u015bwietl najta\u0144sze 3 owoce<\/p>\n\n\n\n<p>&#8211; wy\u015bwietl wszystkie produkty kt\u00f3re s\u0105 dro\u017csze od 5 z\u0142<\/p>\n\n\n\n<p>&#8211; wy\u015bwietl wszystkie produkty kt\u00f3re s\u0105 dro\u017csze od 5 ale ta\u0144sze ni\u017c 10 z\u0142<\/p>\n\n\n\n<p>&#8211; wy\u015bwietl wszystkie produkty kt\u00f3re w nazwie maj\u0105 spacje<\/p>\n\n\n\n<p>&#8211; wy\u015bwietl tylko nazwe i rodzaj produkt\u00f3w kt\u00f3re zaczynaj\u0105 si\u0119 na \u2018s\u2019<\/p>\n\n\n\n<p>6. usu\u0144 tabel\u0119 i baz\u0119 danych<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-technik-programista wp-block-embed-technik-programista\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"oceanwp-oembed-wrap clr\"><blockquote class=\"wp-embedded-content\" data-secret=\"sp0k3pIGmx\"><a href=\"https:\/\/technikprogramista.pl\/kurs\/sql\/\">SQL<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8222;SQL&#8221; &#8212; Technik Programista\" src=\"https:\/\/technikprogramista.pl\/kurs\/sql\/embed\/#?secret=sp0k3pIGmx\" data-secret=\"sp0k3pIGmx\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/div>\n<\/div><\/figure>\n\n\n\n<p>zak\u0142adka przegl\u0105d kurs &#8211; i tam wybieramy:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"880\" height=\"400\" src=\"https:\/\/informatykachelm.pl\/wp-content\/uploads\/2021\/11\/obraz-2.png\" alt=\"\" class=\"wp-image-418\" srcset=\"https:\/\/informatykachelm.pl\/wp-content\/uploads\/2021\/11\/obraz-2.png 880w, https:\/\/informatykachelm.pl\/wp-content\/uploads\/2021\/11\/obraz-2-300x136.png 300w, https:\/\/informatykachelm.pl\/wp-content\/uploads\/2021\/11\/obraz-2-768x349.png 768w\" sizes=\"(max-width: 880px) 100vw, 880px\" \/><figcaption>to jest tylko do prze\u0107wiczenia<\/figcaption><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:25%\"><\/div>\n<\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-402","post","type-post","status-publish","format-standard","hentry","category-kp2","entry"],"_links":{"self":[{"href":"https:\/\/informatykachelm.pl\/index.php?rest_route=\/wp\/v2\/posts\/402","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/informatykachelm.pl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/informatykachelm.pl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/informatykachelm.pl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/informatykachelm.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=402"}],"version-history":[{"count":3,"href":"https:\/\/informatykachelm.pl\/index.php?rest_route=\/wp\/v2\/posts\/402\/revisions"}],"predecessor-version":[{"id":419,"href":"https:\/\/informatykachelm.pl\/index.php?rest_route=\/wp\/v2\/posts\/402\/revisions\/419"}],"wp:attachment":[{"href":"https:\/\/informatykachelm.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/informatykachelm.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=402"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/informatykachelm.pl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}