{"id":1004,"date":"2025-09-30T08:56:51","date_gmt":"2025-09-30T06:56:51","guid":{"rendered":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/?p=1004"},"modified":"2025-10-28T12:11:51","modified_gmt":"2025-10-28T09:11:51","slug":"1004","status":"publish","type":"post","link":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1004","title":{"rendered":"Foorum: TABEL\/PROTSEDUURID"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>SQL ADMINISTRATOR (vaata alla XMAPP)<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: sql; title: ; notranslate\" title=\"\">\nCREATE DATABASE arvaLoodust;\n\nCreate table puu(\npuuId int Primary Key identity(1,1),\npuudeHulk int,\npuuNimi varchar(30),\npuuK\u00f5rgus int);\n\n-- seeing it\nSelect * from puu;\n-- deleting it if I am confused \nDROP TABLE puu;\n-- I wasn&#039;t told how to add so :P\nInsert into puu(puudeHulk, puuNimi, puuK\u00f5rgus)\nvalues (1, &#039;MegaTree&#039;, 200)\n\nInsert into puu(puudeHulk, puuNimi, puuK\u00f5rgus)\nvalues (2, &#039;Honourtree&#039;, 30)\n\nInsert into puu(puudeHulk, puuNimi, puuK\u00f5rgus)\nvalues (3, &#039;ObagTree&#039;, 20)\n\n-- Created a procedure to count and calculate (what I have been told)\nCREATE PROCEDURE kokkuPuu\n\nAS\nBEGIN\nSELECT count(*) AS &#039;puu arv&#039;, AVG(puuK\u00f5rgus) AS &#039;keskimine puu k\u00f5rgus&#039;, MAX(puuK\u00f5rgus) AS &#039;maximum puuK\u00f5rgus&#039;, Min(puuK\u00f5rgus) AS &#039;minimum puuK\u00f5rgus&#039;\nFROM puu;\nEND;\n\nEXEC kokkuPuu;\n\n-- adding more tress\nCREATE PROCEDURE AddMoreTrees\n@pHulk int,\n@pnimi varchar(30),\n@pK\u00f5rgus int\nAS\nBEGIN\nInsert into puu(puudeHulk, puuNimi, puuK\u00f5rgus)\nvalues (@pHulk, @pnimi, @pK\u00f5rgus);\nSELECT * from puu\n\nEND;\n\n-- adding more\nEXEC AddMoreTrees @pHulk = 4, @pnimi=&#039;obamium&#039;, @pK\u00f5rgus=56\n\n\nDELETE FROM puu WHERE puuID=4;\n\n--Now... DESTROYING THEM   &gt;:3\nCREATE PROCEDURE BurningDownTheTress\n@deleteID int\nAS\nBEGIN\nSELECT * from puu;\nDELETE FROM puu WHERE puuID=@deleteID;\nSELECT * from puu;\n\nEND;\n\ndrop procedure BurningDownTheTress;\n\n--DESTROY\nEXEC BurningDownTheTress 5;\n<\/pre><\/div>\n\n\n<p>SQL\/XMAPP<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/tahmazovhussejn.wordpress.com\/wp-content\/uploads\/2025\/02\/5b80bfa2-b739-4a17-8167-bca494992008.png?w=606\" alt=\"\" class=\"wp-image-185\" \/><\/figure>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: sql; title: ; notranslate\" title=\"\">\nBEGIN\nSELECT count(*) AS &#039;puu arv&#039;, AVG(puuK\u00f5rgus) AS &#039;keskimine puu k\u00f5rgus&#039;, MAX(puuK\u00f5rgus) AS &#039;maximum puuK\u00f5rgus&#039;, Min(puuK\u00f5rgus) AS &#039;minimum puuK\u00f5rgus&#039;\nFROM puu;\nEND\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/tahmazovhussejn.wordpress.com\/wp-content\/uploads\/2025\/02\/dff4b44a-3864-488b-9491-da3ec290a2c9.png?w=613\" alt=\"\" class=\"wp-image-187\" \/><\/figure>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: sql; title: ; notranslate\" title=\"\">\nBEGIN\nInsert into puu(puudeHulk, puuNimi, puuK\u00f5rgus)\nvalues (pHulk, pnimi, pK\u00f5rgus);\n\nEND\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/tahmazovhussejn.wordpress.com\/wp-content\/uploads\/2025\/02\/c0e4ea17-9456-4041-ad06-1e7f221d493b.png?w=617\" alt=\"\" class=\"wp-image-189\" \/><\/figure>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: sql; title: ; notranslate\" title=\"\">\nBEGIN\nSELECT * from puu;\nDELETE FROM puu WHERE puuID=deleteID;\nSELECT * from puu;\n\nEND\n<\/pre><\/div>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SQL ADMINISTRATOR (vaata alla XMAPP) SQL\/XMAPP<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-1004","post","type-post","status-publish","format-standard","hentry","category-database"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Foorum: TABEL\/PROTSEDUURID - Hussein Tahmazov portfolio eng<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1004\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Foorum: TABEL\/PROTSEDUURID - Hussein Tahmazov portfolio eng\" \/>\n<meta property=\"og:description\" content=\"SQL ADMINISTRATOR (vaata alla XMAPP) SQL\/XMAPP\" \/>\n<meta property=\"og:url\" content=\"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1004\" \/>\n<meta property=\"og:site_name\" content=\"Hussein Tahmazov portfolio eng\" \/>\n<meta property=\"article:published_time\" content=\"2025-09-30T06:56:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-28T09:11:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/tahmazovhussejn.wordpress.com\/wp-content\/uploads\/2025\/02\/5b80bfa2-b739-4a17-8167-bca494992008.png?w=606\" \/>\n<meta name=\"author\" content=\"Hussein\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hussein\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/?p=1004#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/?p=1004\"},\"author\":{\"name\":\"Hussein\",\"@id\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/#\\\/schema\\\/person\\\/f75baafdedeb73cd9ef1d8d87311bbb0\"},\"headline\":\"Foorum: TABEL\\\/PROTSEDUURID\",\"datePublished\":\"2025-09-30T06:56:51+00:00\",\"dateModified\":\"2025-10-28T09:11:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/?p=1004\"},\"wordCount\":10,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/?p=1004#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/tahmazovhussejn.wordpress.com\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/5b80bfa2-b739-4a17-8167-bca494992008.png?w=606\",\"articleSection\":[\"Database\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/?p=1004#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/?p=1004\",\"url\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/?p=1004\",\"name\":\"Foorum: TABEL\\\/PROTSEDUURID - Hussein Tahmazov portfolio eng\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/?p=1004#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/?p=1004#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/tahmazovhussejn.wordpress.com\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/5b80bfa2-b739-4a17-8167-bca494992008.png?w=606\",\"datePublished\":\"2025-09-30T06:56:51+00:00\",\"dateModified\":\"2025-10-28T09:11:51+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/#\\\/schema\\\/person\\\/f75baafdedeb73cd9ef1d8d87311bbb0\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/?p=1004#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/?p=1004\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/?p=1004#primaryimage\",\"url\":\"https:\\\/\\\/tahmazovhussejn.wordpress.com\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/5b80bfa2-b739-4a17-8167-bca494992008.png?w=606\",\"contentUrl\":\"https:\\\/\\\/tahmazovhussejn.wordpress.com\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/5b80bfa2-b739-4a17-8167-bca494992008.png?w=606\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/?p=1004#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Foorum: TABEL\\\/PROTSEDUURID\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/#website\",\"url\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/\",\"name\":\"Hussein Tahmazov portfolio eng\",\"description\":\"Junior Software Developer\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/#\\\/schema\\\/person\\\/f75baafdedeb73cd9ef1d8d87311bbb0\",\"name\":\"Hussein\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e10dcd9bae99726932e7824a93117d2a279e021c0f4ff3cc2972016580127314?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e10dcd9bae99726932e7824a93117d2a279e021c0f4ff3cc2972016580127314?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e10dcd9bae99726932e7824a93117d2a279e021c0f4ff3cc2972016580127314?s=96&d=mm&r=g\",\"caption\":\"Hussein\"},\"sameAs\":[\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\"],\"url\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Foorum: TABEL\/PROTSEDUURID - Hussein Tahmazov portfolio eng","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1004","og_locale":"en_GB","og_type":"article","og_title":"Foorum: TABEL\/PROTSEDUURID - Hussein Tahmazov portfolio eng","og_description":"SQL ADMINISTRATOR (vaata alla XMAPP) SQL\/XMAPP","og_url":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1004","og_site_name":"Hussein Tahmazov portfolio eng","article_published_time":"2025-09-30T06:56:51+00:00","article_modified_time":"2025-10-28T09:11:51+00:00","og_image":[{"url":"https:\/\/tahmazovhussejn.wordpress.com\/wp-content\/uploads\/2025\/02\/5b80bfa2-b739-4a17-8167-bca494992008.png?w=606","type":"","width":"","height":""}],"author":"Hussein","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Hussein","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1004#article","isPartOf":{"@id":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1004"},"author":{"name":"Hussein","@id":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/#\/schema\/person\/f75baafdedeb73cd9ef1d8d87311bbb0"},"headline":"Foorum: TABEL\/PROTSEDUURID","datePublished":"2025-09-30T06:56:51+00:00","dateModified":"2025-10-28T09:11:51+00:00","mainEntityOfPage":{"@id":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1004"},"wordCount":10,"commentCount":0,"image":{"@id":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1004#primaryimage"},"thumbnailUrl":"https:\/\/tahmazovhussejn.wordpress.com\/wp-content\/uploads\/2025\/02\/5b80bfa2-b739-4a17-8167-bca494992008.png?w=606","articleSection":["Database"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1004#respond"]}]},{"@type":"WebPage","@id":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1004","url":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1004","name":"Foorum: TABEL\/PROTSEDUURID - Hussein Tahmazov portfolio eng","isPartOf":{"@id":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/#website"},"primaryImageOfPage":{"@id":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1004#primaryimage"},"image":{"@id":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1004#primaryimage"},"thumbnailUrl":"https:\/\/tahmazovhussejn.wordpress.com\/wp-content\/uploads\/2025\/02\/5b80bfa2-b739-4a17-8167-bca494992008.png?w=606","datePublished":"2025-09-30T06:56:51+00:00","dateModified":"2025-10-28T09:11:51+00:00","author":{"@id":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/#\/schema\/person\/f75baafdedeb73cd9ef1d8d87311bbb0"},"breadcrumb":{"@id":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1004#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1004"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1004#primaryimage","url":"https:\/\/tahmazovhussejn.wordpress.com\/wp-content\/uploads\/2025\/02\/5b80bfa2-b739-4a17-8167-bca494992008.png?w=606","contentUrl":"https:\/\/tahmazovhussejn.wordpress.com\/wp-content\/uploads\/2025\/02\/5b80bfa2-b739-4a17-8167-bca494992008.png?w=606"},{"@type":"BreadcrumbList","@id":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1004#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng"},{"@type":"ListItem","position":2,"name":"Foorum: TABEL\/PROTSEDUURID"}]},{"@type":"WebSite","@id":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/#website","url":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/","name":"Hussein Tahmazov portfolio eng","description":"Junior Software Developer","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/#\/schema\/person\/f75baafdedeb73cd9ef1d8d87311bbb0","name":"Hussein","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/e10dcd9bae99726932e7824a93117d2a279e021c0f4ff3cc2972016580127314?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/e10dcd9bae99726932e7824a93117d2a279e021c0f4ff3cc2972016580127314?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e10dcd9bae99726932e7824a93117d2a279e021c0f4ff3cc2972016580127314?s=96&d=mm&r=g","caption":"Hussein"},"sameAs":["https:\/\/khusseintakhmazov24.thkit.ee\/wp"],"url":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?author=1"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/index.php?rest_route=\/wp\/v2\/posts\/1004","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1004"}],"version-history":[{"count":1,"href":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/index.php?rest_route=\/wp\/v2\/posts\/1004\/revisions"}],"predecessor-version":[{"id":1312,"href":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/index.php?rest_route=\/wp\/v2\/posts\/1004\/revisions\/1312"}],"wp:attachment":[{"href":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1004"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}