<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8305675988893866325</id><updated>2026-03-24T19:01:40.941-07:00</updated><category term="MSSQL DBA Scripts"/><category term="MSSQL"/><category term="MSSQL Error"/><category term="Slides"/><category term="Algae Study"/><category term="AlgaeServices"/><category term="Analytics"/><category term="Interview Questions"/><category term="SQL"/><category term="Cloud"/><category term="Data Science"/><category term="ERP"/><category term="Difference between"/><category term="MSSQL Demo"/><category term="MSSQL Security"/><category term="MSSQL Architecture"/><category term="HADOOP"/><category term="MSSQL Backup Restore"/><category term="GCP"/><category term="MSSQL Internals"/><category term="MSSQL Issues"/><category term="Statistics"/><category term="MSSQL Replication"/><category term="Installation"/><category term="AlgaeStudy"/><category term="Management"/><category term="Mohit T"/><category term="AWS"/><category term="Windows"/><category term="Nazia"/><category term="DBMS"/><category term="MSSQL Install"/><category term="Big Data"/><category term="GoogleCloud"/><category term="Finance"/><category term="Indexes"/><category term="NoSQL"/><category term="Python"/><category term="Spark"/><category term="Demo"/><category term="Machine learning"/><category term="Analytics Lab"/><category term="Mohammed Adil"/><category term="R"/><category term="MSSQL Tuning"/><category term="Questions"/><category term="Vendor Management"/><category term="Hive"/><category term="Marketing"/><category term="MongoDB"/><category term="Azure"/><category term="Data Scientist"/><category term="GCP-LAB"/><category term="MSSQL T-Log"/><category term="Pradeepa"/><category term="pyspark"/><category term="Business Intelligence"/><category term="Business Process Re-engineering"/><category term="MSSQL Protocols"/><category term="Neo4J"/><category term="PPT"/><category term="Ubuntu"/><category term="Accounting"/><category term="Agile"/><category term="Automation"/><category term="EVS"/><category term="Error"/><category term="Lab"/><category term="MSSQL Agent"/><category term="MSSQL Maintenance"/><category term="probability"/><category term="Data Engineering"/><category term="Dead Lock"/><category term="Entrepreneurial development"/><category term="Hadoop Lab"/><category term="MSSQL Cluster"/><category term="MSSQL Configuration"/><category term="MSSQL Stats"/><category term="Macroeconomics"/><category term="PDW"/><category term="Pig"/><category term="Connection"/><category term="EXCEL"/><category term="HDFS"/><category term="Hive-QL"/><category term="MSSQL Ports"/><category term="Marketing Analytics"/><category term="Nirmala"/><category term="PubSub"/><category term="Statistics Beginner"/><category term="Tableau"/><category term="data in a study"/><category term="visualization"/><category term="AzureDBA"/><category term="Certificate"/><category term="DataProc"/><category term="Databases"/><category term="Kubernetes"/><category term="Log Shipping"/><category term="MCQ"/><category term="MSSQL Trace"/><category term="Memory"/><category term="Power Shell"/><category term="SSRS"/><category term="Vendor"/><category term="distribution"/><category term="AI-ML"/><category term="Account"/><category term="Batch Scripts"/><category term="Business Plan"/><category term="CSM"/><category term="CheatsSheet"/><category term="Concept"/><category term="GraphDb"/><category term="HR Analytics"/><category term="Hcatalog"/><category term="High Availability"/><category term="MSSQL Locks"/><category term="Must Read"/><category term="Neha R"/><category term="Neo4J-Lab"/><category term="Nitte"/><category term="Performance Issues"/><category term="Refactoring"/><category term="SQL Azure"/><category term="Scripts"/><category term="Scrum Master"/><category term="business"/><category term="issue"/><category term="A.Yoga Sai Satwik"/><category term="Agile Interview"/><category term="Aliya Khanum"/><category term="AlwaysOn"/><category term="BigQuery"/><category term="BigTable"/><category term="Case Study"/><category term="CentOS"/><category term="Certificate Dumps"/><category term="Chetan Das"/><category term="CloudSQL"/><category term="Cluster"/><category term="DTU"/><category term="Database"/><category term="Databricks"/><category term="Descriptive Statistics"/><category term="Discrete Probability"/><category term="Dumps"/><category term="Elastic-search"/><category term="Firewall"/><category term="GDP"/><category term="Hyper-V"/><category term="IAM User"/><category term="IMS"/><category term="ITIL"/><category term="Indian Constitution"/><category term="MSSQL Migration"/><category term="MSSQL tempdb"/><category term="MYSQL"/><category term="Noble John Paul"/><category term="OSQL"/><category term="Partition"/><category term="Performance Tuning"/><category term="Power BI"/><category term="Promotion"/><category term="Regression"/><category term="Replication"/><category term="Robocopy"/><category term="SPN"/><category term="SSAS"/><category term="SSIS"/><category term="Sampling"/><category term="Spark-Error"/><category term="Sqoop"/><category term="Storm"/><category term="Syllabus"/><category term="Tarun Yellogi"/><category term="Types of Graph"/><category term="Yogesh"/><category term="bell shaped frequency"/><category term="conditional probability"/><category term="linux"/><category term="sas"/><category term="standard deviation"/><category term="statements"/><category term="streams"/><category term="unix"/><category term="AI"/><category term="AWS Account"/><category term="AWS Shield"/><category term="Accountable"/><category term="Active Directory"/><category term="Agreement"/><category term="Amazon"/><category term="Analysis Strategies"/><category term="Anchal Garg"/><category term="Answers"/><category term="Artifact"/><category term="Artificial Intelligence"/><category term="Assets"/><category term="Badges"/><category term="Bayes"/><category term="Benefits"/><category term="Binomial Distribution"/><category term="CAM"/><category term="CDC"/><category term="CQL"/><category term="CRM"/><category term="CTE"/><category term="Chances of bias"/><category term="Chithra Nair"/><category term="CloudFunction"/><category term="Commads"/><category term="Commitment"/><category term="Compliance"/><category term="Concern"/><category term="Conditional"/><category term="Consulted"/><category term="Contained database"/><category term="Contemporary Approaches to Management"/><category term="Continuous Probability"/><category term="Continuous Random Variable"/><category term="Convenience"/><category term="DDL"/><category term="DML"/><category term="Data Manipulation"/><category term="Data Quality Services"/><category term="DataLab"/><category term="Delivery Risk"/><category term="Dependent Event"/><category term="Discrete Random Variable"/><category term="Docker"/><category term="Domain Analytics"/><category term="Double-Take"/><category term="Economics"/><category term="ElasticPools"/><category term="Empirical Rule"/><category term="Employee Turnover"/><category term="English"/><category term="Entity"/><category term="Equation"/><category term="Equity"/><category term="Exam"/><category term="Experiment"/><category term="FileZilla"/><category term="GMAT"/><category term="Gitlab"/><category term="Going"/><category term="Golden"/><category term="Hadoop Sandbox"/><category term="Hbase"/><category term="Himanshu Tindwani"/><category term="Hyper-V Error"/><category term="IAM Groups"/><category term="IAM Policies"/><category term="IAM Roles"/><category term="IT Jobs"/><category term="Idera"/><category term="Independent Event"/><category term="Indian Market"/><category term="Informed"/><category term="Inspector"/><category term="Java"/><category term="Jayalakshmi V"/><category term="Join"/><category term="Judgement"/><category term="Justin Jacob"/><category term="Kaviya u.c"/><category term="Key terms"/><category term="Language"/><category term="Less time consuming"/><category term="Life Cycle"/><category term="Likitha Y"/><category term="Low cost"/><category term="MSSQL Corruption"/><category term="MSSQL Jobs"/><category term="MSSQL MDS"/><category term="MSSQL Shrink"/><category term="MYSQL Install"/><category term="ManagedServices"/><category term="Map Reduce"/><category term="MariaDB"/><category term="Matplotlib"/><category term="Matrics"/><category term="Measurement"/><category term="Meenakshi Aishwarya"/><category term="Monami Ghosh"/><category term="Money Measurement"/><category term="Natural Language Processing"/><category term="Naveen Shankar"/><category term="Negotiation"/><category term="Niramala"/><category term="NoSQL Error"/><category term="Normal Probability Distribution"/><category term="Nrimala"/><category term="Numpy"/><category term="Online Tutorial"/><category term="Organ donation"/><category term="Organisations"/><category term="Outsourcing"/><category term="Pandas"/><category term="Parameter"/><category term="Perfmon"/><category term="Performance"/><category term="Pie chart"/><category term="Pivot"/><category term="Poisson Distribution"/><category term="Population"/><category term="PostgreSQL"/><category term="Price"/><category term="Prior probability"/><category term="Procurement"/><category term="Product"/><category term="Query Tuning"/><category term="Quota"/><category term="RASCI"/><category term="RabbitMQ"/><category term="Rahul Menon"/><category term="Random Variable"/><category term="Rashi Nigam"/><category term="Relationship Management"/><category term="Respnsibility Model"/><category term="Responsible"/><category term="Retail"/><category term="Root User"/><category term="Roshna Rahman"/><category term="Royal George"/><category term="Rules"/><category term="S.V.Kiran"/><category term="SHALINI KANCHAN PANDA"/><category term="SIDBI"/><category term="SQL Server"/><category term="SSMS"/><category term="Samhitha Yadav"/><category term="Sample"/><category term="Sample Space"/><category term="Samuel A"/><category term="Satish N"/><category term="Scope of Work"/><category term="Semaphore"/><category term="Shield"/><category term="Shivani Nehra"/><category term="SiteMap"/><category term="Small Industries Development Bank of India"/><category term="Solution"/><category term="SonalSinha"/><category term="Spatial"/><category term="Staffing"/><category term="Standard Normal Probability Distribution"/><category term="Statement of Work"/><category term="Succes"/><category term="Supply Chain Management"/><category term="Support"/><category term="Systematic"/><category term="TDE"/><category term="Tanya Mangath"/><category term="Taufeeq Rawoof"/><category term="Telecom"/><category term="TensorFlow"/><category term="Third Party Tool"/><category term="Thomas Bayes"/><category term="Types"/><category term="UPDATE"/><category term="VM"/><category term="VMWare"/><category term="VPC"/><category term="Vendors"/><category term="Video"/><category term="Visual Studio"/><category term="accounts"/><category term="bar chart line chart variance"/><category term="bucketing"/><category term="commands"/><category term="computing"/><category term="concepts"/><category term="cost"/><category term="distribution sigma rule"/><category term="dual"/><category term="import"/><category term="kurtosis"/><category term="limited resources"/><category term="litespeed"/><category term="mode"/><category term="nature"/><category term="network"/><category term="owners"/><category term="posterior probability"/><category term="putty"/><category term="record"/><category term="separate"/><category term="strata"/><category term="streaming"/><category term="table"/><category term="theorem"/><category term="three-sigma rule"/><category term="timeseries"/><category term="transaction"/><category term="trialBalance"/><category term="two"/><category term="way"/><title type='text'>Algae Education Services</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://www.algaestudy.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='https://www.algaestudy.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Algae Education</name><uri>http://www.blogger.com/profile/12443040604753343283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='9' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQEOhe1V67n6e421LF5bUPOMBi3pPbW_IkAEQb_PNAxDB_ZyC6N9QqlIKNR3OIXafo4XbBlB3aO8i9w0cAuuNfUec1DD-skkLSiuvwvIHjkLjkGXkwssfCNrkK0GUkmJc/s220/Algae3.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>645</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8305675988893866325.post-1332046651176589405</id><published>2024-09-21T17:41:00.000-07:00</published><updated>2024-09-21T22:15:30.941-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="GCP"/><category scheme="http://www.blogger.com/atom/ns#" term="GCP-LAB"/><category scheme="http://www.blogger.com/atom/ns#" term="GoogleCloud"/><category scheme="http://www.blogger.com/atom/ns#" term="Lab"/><category scheme="http://www.blogger.com/atom/ns#" term="VPC"/><title type='text'>Setup Virtual Private Cloud in GCP - LAB</title><content type='html'>&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;h1 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h1&gt;&lt;h1 style=&quot;text-align: center;&quot;&gt;My First VPC in Google Cloud&amp;nbsp;&lt;/h1&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Virtual Private Cloud networks help you build the house for all your resources, and help provide the networking for all of your services.&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Problem Statement:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif;&quot;&gt;You have been tasked with creating a test VPC network with a public subnet in the IOWA region. Your company would like to provision and test resources as they wish in this environment. In the end, you will provision a VPC network that meets their exact need.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhB-ohMS4__reT3-BPgIsbq8f00Z8WPWd-Lkw4yEblPfz2T8TPV80GunOW8LUHNh1OCK1qeq-sF9TUnfgkz8UJiypKHN2aR5en8U8l0I3fn34UrmG8jgpgKTcFAiiEWWgNZuWqujTlRWqSkQcM_V25QOp4x1ttJri3_6r6VBdiyWPIhZwsBnvfEWZUfIy8&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;hyptechie, algaestudy, algaeservices&quot; data-original-height=&quot;383&quot; data-original-width=&quot;327&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhB-ohMS4__reT3-BPgIsbq8f00Z8WPWd-Lkw4yEblPfz2T8TPV80GunOW8LUHNh1OCK1qeq-sF9TUnfgkz8UJiypKHN2aR5en8U8l0I3fn34UrmG8jgpgKTcFAiiEWWgNZuWqujTlRWqSkQcM_V25QOp4x1ttJri3_6r6VBdiyWPIhZwsBnvfEWZUfIy8=w342-h400&quot; title=&quot;Virtual Private cloud , Google cloud Platform&quot; width=&quot;342&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Steps :&lt;/h3&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Create the VPC&lt;/li&gt;&lt;li&gt;From Google Cloud console&#39;s main navigation, choose VPC Network.&lt;/li&gt;&lt;li&gt;Click Create VPC Network. (In a production environment, you would choose the applicable project before creating the VPN Network.&lt;/li&gt;&lt;li&gt;Give your VPC a name.&lt;/li&gt;&lt;li&gt;On Subnets, click Custom. Give a unique name to your subnet.&lt;/li&gt;&lt;li&gt;Set Region to US-Central-1&lt;/li&gt;&lt;li&gt;Set you IP Address range to &lt;a data-saferedirecturl=&quot;https://www.google.com/url?q=http://10.0.1.0/24&amp;amp;source=gmail&amp;amp;ust=1727051042604000&amp;amp;usg=AOvVaw2BZLki2Xb3RPRRjOAjF-GQ&quot; href=&quot;http://10.0.1.0/24&quot; target=&quot;_blank&quot;&gt;10.0.1.0/24&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Click Done.&lt;/li&gt;&lt;li&gt;Click Create.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjS1n7FMpNGZ57VZZhfjkNU2oPAebRnagootmofl3DqlG766ttVK2ZpveB47CkUbTepk1FecGP7puHRn03Ojas8YqXjpbYxnD4j0Od7OgsE2qF91QrfYJ2XlFjQ-5JTjg895gOge8Ow1bqfgquBxX-rM7fyjfKA4UxtnhnibTNEXFMEsWreHThy4Sfr5Io&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;algaestudy, hyptechie, algaeservices.co.in&quot; data-original-height=&quot;518&quot; data-original-width=&quot;946&quot; height=&quot;350&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjS1n7FMpNGZ57VZZhfjkNU2oPAebRnagootmofl3DqlG766ttVK2ZpveB47CkUbTepk1FecGP7puHRn03Ojas8YqXjpbYxnD4j0Od7OgsE2qF91QrfYJ2XlFjQ-5JTjg895gOge8Ow1bqfgquBxX-rM7fyjfKA4UxtnhnibTNEXFMEsWreHThy4Sfr5Io=w640-h350&quot; title=&quot;Virtual Private Cloud first lab&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: right;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEh1llkbRFk2tIPYmo_fTjrjkzQNydYpieMkoAbI2vS1_Ym6y3IUFxGp0QnEDfcHdxk-APaSj5_N3v4V4Tdl5LNCaOW5SPnmgdjHELVlwn-LvumVSP3ddDmR5T7RyxQLWKXeb64-Rfek4DFMV66YNynFbKXKm8yhMkUYFjKPxG2SibMfgBdjI2jXBsU7-vw&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;algaestudy, hyptechie, algaeservices.co.in&quot; data-original-height=&quot;653&quot; data-original-width=&quot;691&quot; height=&quot;605&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEh1llkbRFk2tIPYmo_fTjrjkzQNydYpieMkoAbI2vS1_Ym6y3IUFxGp0QnEDfcHdxk-APaSj5_N3v4V4Tdl5LNCaOW5SPnmgdjHELVlwn-LvumVSP3ddDmR5T7RyxQLWKXeb64-Rfek4DFMV66YNynFbKXKm8yhMkUYFjKPxG2SibMfgBdjI2jXBsU7-vw=w640-h605&quot; title=&quot;Virtual Private Cloud first lab&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhxXHVFp0cKAvw4lL8CMyXIatpjRBc69IcvCIrKiEoxT9VdObJUtKHiIbh0-dl1CK-41Cv8SuMjUOEVcts87BNnsc2gR9NyV2yKuMz7UfSs2uCTNhJ3H9hdbP2hlgUU6ehLt0ZklvB3G2YLoxbay8OCTQo-2l7Nu8RvkW1ZlbDON62PPkAXYYXCTXUX0ZI&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;algaestudy, hyptechie, algaeservices.co.in&quot; data-original-height=&quot;662&quot; data-original-width=&quot;442&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhxXHVFp0cKAvw4lL8CMyXIatpjRBc69IcvCIrKiEoxT9VdObJUtKHiIbh0-dl1CK-41Cv8SuMjUOEVcts87BNnsc2gR9NyV2yKuMz7UfSs2uCTNhJ3H9hdbP2hlgUU6ehLt0ZklvB3G2YLoxbay8OCTQo-2l7Nu8RvkW1ZlbDON62PPkAXYYXCTXUX0ZI=w427-h640&quot; title=&quot;Virtual Private Cloud first lab&quot; width=&quot;427&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;My First VPC is ready with its subnet&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.algaestudy.com/feeds/1332046651176589405/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.algaestudy.com/2024/09/setup-virtual-private-cloud-in-gcp-lab.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/1332046651176589405'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/1332046651176589405'/><link rel='alternate' type='text/html' href='https://www.algaestudy.com/2024/09/setup-virtual-private-cloud-in-gcp-lab.html' title='Setup Virtual Private Cloud in GCP - LAB'/><author><name>Algae Education</name><uri>http://www.blogger.com/profile/12443040604753343283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='9' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQEOhe1V67n6e421LF5bUPOMBi3pPbW_IkAEQb_PNAxDB_ZyC6N9QqlIKNR3OIXafo4XbBlB3aO8i9w0cAuuNfUec1DD-skkLSiuvwvIHjkLjkGXkwssfCNrkK0GUkmJc/s220/Algae3.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEhB-ohMS4__reT3-BPgIsbq8f00Z8WPWd-Lkw4yEblPfz2T8TPV80GunOW8LUHNh1OCK1qeq-sF9TUnfgkz8UJiypKHN2aR5en8U8l0I3fn34UrmG8jgpgKTcFAiiEWWgNZuWqujTlRWqSkQcM_V25QOp4x1ttJri3_6r6VBdiyWPIhZwsBnvfEWZUfIy8=s72-w342-h400-c" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>273H+WR Sabigoma, Tanzania</georss:featurename><georss:point>-3.995181 30.2795858</georss:point><georss:box>-36.379159295658688 -4.8766642000000004 28.388797295658687 65.4358358</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8305675988893866325.post-5584165942604748623</id><published>2024-09-21T16:57:00.000-07:00</published><updated>2024-09-21T16:57:29.659-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="BigQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="Cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="GCP"/><category scheme="http://www.blogger.com/atom/ns#" term="GCP-LAB"/><category scheme="http://www.blogger.com/atom/ns#" term="Machine learning"/><title type='text'>Machine Learning with Big Query</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;h1 style=&quot;text-align: center;&quot;&gt;Bigquery Studio for Training the model&lt;/h1&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I&#39;m preparing to train a logistic regression model using a publicly available dataset in Bigquery. I will use inbuilt functions availabe in BigQuery&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Steps:&lt;/h2&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Log in to Google Cloud Platform and Open BigQuery.&lt;/li&gt;&lt;li&gt;Create the dataset in BigQuery&lt;/li&gt;&lt;li&gt;Create and Train the ML Model&lt;/li&gt;&lt;li&gt;Evaluate the ML Model&lt;/li&gt;&lt;li&gt;Predict Using the ML Model&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Create the BigQuery Dataset&lt;/h3&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;From the Google Cloud console main navigation (hamburger menu on the top left), select BigQuery. (Click DONE to close the &quot;Welcome&quot; dialog box if it is displayed.)&lt;/li&gt;&lt;li&gt;Click the vertical three-dot menu next to the pinned project (in the Explorer) to View actions.&lt;/li&gt;&lt;li&gt;Select Create dataset.&lt;/li&gt;&lt;li&gt;For Dataset ID, enter acg_bqml.&lt;/li&gt;&lt;li&gt;For Data location, select us.&lt;/li&gt;&lt;li&gt;Click CREATE DATASET.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjNF-C8UfkCBYpedKbsYQHdAlnKN-95QFi6bm_iO4pmerp42nF6e488nrM2-GgVEElJjMD4DMzwyhYXz3XMTFDlsaH_F-5eNrRnvizTWyzUoPe8rdYCUcMrNjmBihPOjmuadLFdip9dV0U9n0mkwf0cJjqlYAvqzqgQPohGt0iRVv3ovPICUHnRGywcqCU&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;593&quot; data-original-width=&quot;842&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjNF-C8UfkCBYpedKbsYQHdAlnKN-95QFi6bm_iO4pmerp42nF6e488nrM2-GgVEElJjMD4DMzwyhYXz3XMTFDlsaH_F-5eNrRnvizTWyzUoPe8rdYCUcMrNjmBihPOjmuadLFdip9dV0U9n0mkwf0cJjqlYAvqzqgQPohGt0iRVv3ovPICUHnRGywcqCU&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;h3 style=&quot;clear: both; text-align: left;&quot;&gt;Create and Train the ML Model&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Run a SQL function to create and train a logistic regression model.&lt;/li&gt;&lt;li&gt;Add the following query to the Query editor.&amp;nbsp;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;This query first creates and trains the model with the dataset/table first_bqml.transactions_model.&amp;nbsp;&lt;/li&gt;&lt;li&gt;The query then declares the model_type as a logistic regression.&amp;nbsp;&lt;/li&gt;&lt;li&gt;The query selects the columns declared within the SELECT statement.&amp;nbsp;&lt;/li&gt;&lt;li&gt;Data is selected from the public bigquery-public-data.google_analytics_sample.ga_sessions_* dataset, where the * indicates you&#39;ll query a set of tables sharded by date.&amp;nbsp;&lt;/li&gt;&lt;li&gt;The WHERE clause indicates that tables between August 1, 2016 and June 30, 2017 will be queried:&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;i style=&quot;background-color: #fcff01;&quot;&gt;CREATE MODEL `first_bqml.transactions_model`&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;i style=&quot;background-color: #fcff01;&quot;&gt;OPTIONS(model_type=&#39;logistic_reg&#39;) AS&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;i style=&quot;background-color: #fcff01;&quot;&gt;SELECT&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;i style=&quot;background-color: #fcff01;&quot;&gt;&amp;nbsp; IF(totals.transactions IS NULL, 0, 1) AS label,&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;i style=&quot;background-color: #fcff01;&quot;&gt;&amp;nbsp; IFNULL(device.operatingSystem, &quot;&quot;) AS os,&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;i style=&quot;background-color: #fcff01;&quot;&gt;&amp;nbsp; device.isMobile AS is_mobile,&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;i style=&quot;background-color: #fcff01;&quot;&gt;&amp;nbsp; IFNULL(geoNetwork.country, &quot;&quot;) AS country,&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;i style=&quot;background-color: #fcff01;&quot;&gt;&amp;nbsp; IFNULL(totals.pageviews, 0) AS pageviews&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;i style=&quot;background-color: #fcff01;&quot;&gt;FROM&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;i style=&quot;background-color: #fcff01;&quot;&gt;&amp;nbsp; `bigquery-public-data.google_analytics_sample.ga_sessions_*`&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;i style=&quot;background-color: #fcff01;&quot;&gt;WHERE&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;i style=&quot;background-color: #fcff01;&quot;&gt;&amp;nbsp; _TABLE_SUFFIX BETWEEN &#39;20160801&#39; AND &#39;20170630&#39;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: right;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgcPb6WDHj7_NzqmYJKpjYN2qq2DwAhd2eFcrW1YIs0ZnB-9avdrJUAPxBxSdSh7Aay94PKkrmCebO4-wXr9Itgm2Q7R9cD3CKgnu0Z-T47cwNHGO3jUxnnfHM49X2cyGjKCs7_hsZC6xn0MEAquc31mHZ8ex565JEw9uZdTXXa9Llnd6XkFk5u0X6Yq4M&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;bigquery Machinelearning&quot; data-original-height=&quot;467&quot; data-original-width=&quot;836&quot; height=&quot;224&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgcPb6WDHj7_NzqmYJKpjYN2qq2DwAhd2eFcrW1YIs0ZnB-9avdrJUAPxBxSdSh7Aay94PKkrmCebO4-wXr9Itgm2Q7R9cD3CKgnu0Z-T47cwNHGO3jUxnnfHM49X2cyGjKCs7_hsZC6xn0MEAquc31mHZ8ex565JEw9uZdTXXa9Llnd6XkFk5u0X6Yq4M=w400-h224&quot; title=&quot;hyptechie.com,  job portal , algae services&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;At the top, click RUN. It will take a minute or two for the query to process.&lt;/li&gt;&lt;li&gt;In the Results tab at the bottom, click GO TO MODEL.&lt;/li&gt;&lt;li&gt;Select the TRAINING tab. Observe the Loss is decreasing, while the Learn rate is increasing.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEi0IgwGjh4oqyshYYVCUKN3iX-RSC8kH_tzrP3-UBzEgOWEhGoE2BiC921yQwlk051hLGA22JDBK8SWTqvMZxDYJ_LnLob52O2kqjufU7AjrApM023QPRqnCRLDkUTs-prVs77JLVkaeR_t_OTIgQgV0OwwkXjvW7ugIEqxfTxa6O-XFM33mzNZdO2J1LY&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;bigquery lodss function&quot; data-original-height=&quot;344&quot; data-original-width=&quot;975&quot; height=&quot;226&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEi0IgwGjh4oqyshYYVCUKN3iX-RSC8kH_tzrP3-UBzEgOWEhGoE2BiC921yQwlk051hLGA22JDBK8SWTqvMZxDYJ_LnLob52O2kqjufU7AjrApM023QPRqnCRLDkUTs-prVs77JLVkaeR_t_OTIgQgV0OwwkXjvW7ugIEqxfTxa6O-XFM33mzNZdO2J1LY=w640-h226&quot; title=&quot;algaestudy.com  algae services&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;h3 style=&quot;clear: both; text-align: left;&quot;&gt;Evaluate the ML Model&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Evaluate the predicted values against the current data via SQL.&lt;/li&gt;&lt;li&gt;Go back to the Query editor, and replace the existing query with the query below.&amp;nbsp;&lt;/li&gt;&lt;li&gt;This query will evaluate the model and is similar to the previous query.&amp;nbsp;&lt;/li&gt;&lt;li&gt;Note that the SELECT statement will include all fields from the evaluated model.&amp;nbsp;&lt;/li&gt;&lt;li&gt;Additionally, observe the inclusion of the ML.EVALUATE statement, which will evaluate the newly created model:&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #fcff01;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;SELECT&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #fcff01;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; *&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #fcff01;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;FROM&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #fcff01;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; ML.EVALUATE(MODEL `first_bqml.transactions_model`, (&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #fcff01;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;SELECT&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #fcff01;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; IF(totals.transactions IS NULL, 0, 1) AS label,&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #fcff01;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; IFNULL(device.operatingSystem, &quot;&quot;) AS os,&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #fcff01;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; device.isMobile AS is_mobile,&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #fcff01;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; IFNULL(geoNetwork.country, &quot;&quot;) AS country,&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #fcff01;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; IFNULL(totals.pageviews, 0) AS pageviews&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #fcff01;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;FROM&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #fcff01;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; `bigquery-public-data.google_analytics_sample.ga_sessions_*`&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #fcff01;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;WHERE&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #fcff01;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; _TABLE_SUFFIX BETWEEN &#39;20170701&#39; AND &#39;20170801&#39;))&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEh7mi2WaDiWRCteziGCjhU9eLzppl6VqEhCWYoHrwKRUa5LAdHGncpZSIf5skSyggqanI1ynad-j9OVgTlsHhPP97rEepy3OJezRG0mPsUW7Y9rw1Rwv2OHUuL4-iVHKlNWU_UB-_Za2IkCYdeTKG9God_TItbr5GE1RIw38etRDTq7bHwk6DO9FKel9l4&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEh7mi2WaDiWRCteziGCjhU9eLzppl6VqEhCWYoHrwKRUa5LAdHGncpZSIf5skSyggqanI1ynad-j9OVgTlsHhPP97rEepy3OJezRG0mPsUW7Y9rw1Rwv2OHUuL4-iVHKlNWU_UB-_Za2IkCYdeTKG9God_TItbr5GE1RIw38etRDTq7bHwk6DO9FKel9l4&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEh7mi2WaDiWRCteziGCjhU9eLzppl6VqEhCWYoHrwKRUa5LAdHGncpZSIf5skSyggqanI1ynad-j9OVgTlsHhPP97rEepy3OJezRG0mPsUW7Y9rw1Rwv2OHUuL4-iVHKlNWU_UB-_Za2IkCYdeTKG9God_TItbr5GE1RIw38etRDTq7bHwk6DO9FKel9l4&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEh7mi2WaDiWRCteziGCjhU9eLzppl6VqEhCWYoHrwKRUa5LAdHGncpZSIf5skSyggqanI1ynad-j9OVgTlsHhPP97rEepy3OJezRG0mPsUW7Y9rw1Rwv2OHUuL4-iVHKlNWU_UB-_Za2IkCYdeTKG9God_TItbr5GE1RIw38etRDTq7bHwk6DO9FKel9l4&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img data-original-height=&quot;443&quot; data-original-width=&quot;801&quot; height=&quot;354&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEh7mi2WaDiWRCteziGCjhU9eLzppl6VqEhCWYoHrwKRUa5LAdHGncpZSIf5skSyggqanI1ynad-j9OVgTlsHhPP97rEepy3OJezRG0mPsUW7Y9rw1Rwv2OHUuL4-iVHKlNWU_UB-_Za2IkCYdeTKG9God_TItbr5GE1RIw38etRDTq7bHwk6DO9FKel9l4=w640-h354&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p class=&quot;MsoNormal&quot;&gt;In the Results tab at the bottom, observe the fields
returned, which evaluate the model&#39;s accuracy and precision.&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhlyGxK2YWsJK2xNpuR7hFxAg9nFVxJRbwLu5JYD-Cr_-ILWiu7-KXVHbjhJ_zSyT1AYcviUWytGXIM8JR7TLD7mrKvVpyt9JvDAgpQjlYp73BTSTQ7Xm0O_cdNTsX9IUEuQ6e561jI2sSJnfuH7lmptsg3Ecqb36dkbCEoDmSlW-UWFaE5MkoBa63_3cc&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img data-original-height=&quot;123&quot; data-original-width=&quot;975&quot; height=&quot;80&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhlyGxK2YWsJK2xNpuR7hFxAg9nFVxJRbwLu5JYD-Cr_-ILWiu7-KXVHbjhJ_zSyT1AYcviUWytGXIM8JR7TLD7mrKvVpyt9JvDAgpQjlYp73BTSTQ7Xm0O_cdNTsX9IUEuQ6e561jI2sSJnfuH7lmptsg3Ecqb36dkbCEoDmSlW-UWFaE5MkoBa63_3cc=w640-h80&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;[{&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;
&quot;precision&quot;: &quot;0.468503937007874&quot;,&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &quot;recall&quot;:
&quot;0.11080074487895716&quot;,&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;
&quot;accuracy&quot;: &quot;0.98534315834767638&quot;,&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;
&quot;f1_score&quot;: &quot;0.17921686746987953&quot;,&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;
&quot;log_loss&quot;: &quot;0.046242211011772519&quot;,&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &quot;roc_auc&quot;:
&quot;0.98174825174825175&quot;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;}]&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;













&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Predict Using the ML Model&lt;/h3&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Use BigQuery ML SQL to predict the number of transactions for various countries.&lt;/li&gt;&lt;li&gt;Back up in the Query editor, replace the existing query with the query below to make predictions.&amp;nbsp;&lt;/li&gt;&lt;li&gt;The initial SELECT statement retrieves the country column and computes a sum of the predicted_label column from the ML.PREDICT function.&amp;nbsp;&lt;/li&gt;&lt;li&gt;The nested SELECT, FROM, and WHERE clauses are repeated, with the results grouped by country and ordered by total_predicted_purchases:&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;i style=&quot;background-color: #fcff01;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;SELECT&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i style=&quot;background-color: #fcff01;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; country,&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i style=&quot;background-color: #fcff01;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; SUM(predicted_label) as total_predicted_purchases&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i style=&quot;background-color: #fcff01;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;FROM&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i style=&quot;background-color: #fcff01;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; ML.PREDICT(MODEL `first_bqml.transactions_model`, (&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i style=&quot;background-color: #fcff01;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;SELECT&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i style=&quot;background-color: #fcff01;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; IFNULL(device.operatingSystem, &quot;&quot;) AS os,&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i style=&quot;background-color: #fcff01;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; device.isMobile AS is_mobile,&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i style=&quot;background-color: #fcff01;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; IFNULL(totals.pageviews, 0) AS pageviews,&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i style=&quot;background-color: #fcff01;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; IFNULL(geoNetwork.country, &quot;&quot;) AS country&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i style=&quot;background-color: #fcff01;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;FROM&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i style=&quot;background-color: #fcff01;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; `bigquery-public-data.google_analytics_sample.ga_sessions_*`&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i style=&quot;background-color: #fcff01;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;WHERE&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i style=&quot;background-color: #fcff01;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; _TABLE_SUFFIX BETWEEN &#39;20170701&#39; AND &#39;20170801&#39;))&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i style=&quot;background-color: #fcff01;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;GROUP BY country&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i style=&quot;background-color: #fcff01;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;ORDER BY total_predicted_purchases DESC&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;i style=&quot;background-color: #fcff01;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;LIMIT 15&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEib5ZLxQusb-N5x0Tb0aYKoSasoFVqshoLwSARxE41koU-4nIM1lA0aqFpSaFmngscYUMub4Iurb54UBIn7rStuweWx8bf7wkkHRx955ZLresH66F8ZYz_BpnMtrfvaKbGVax3ji7a4Bs9AWeiztcDIU6iecmdJuK2E99bsGsVWXrghYFfd1YEbU73u33Q&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img data-original-height=&quot;717&quot; data-original-width=&quot;560&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEib5ZLxQusb-N5x0Tb0aYKoSasoFVqshoLwSARxE41koU-4nIM1lA0aqFpSaFmngscYUMub4Iurb54UBIn7rStuweWx8bf7wkkHRx955ZLresH66F8ZYz_BpnMtrfvaKbGVax3ji7a4Bs9AWeiztcDIU6iecmdJuK2E99bsGsVWXrghYFfd1YEbU73u33Q=w499-h640&quot; width=&quot;499&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;p class=&quot;MsoNormal&quot;&gt;In the Results tab at the bottom, observe the
total_predicted_purchases column in the output. Note the United States has the
most predicted purchases, followed by Taiwan, and then Canada.&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.algaestudy.com/feeds/5584165942604748623/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.algaestudy.com/2024/09/machine-learning-with-big-query.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/5584165942604748623'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/5584165942604748623'/><link rel='alternate' type='text/html' href='https://www.algaestudy.com/2024/09/machine-learning-with-big-query.html' title='Machine Learning with Big Query'/><author><name>Algae Education</name><uri>http://www.blogger.com/profile/12443040604753343283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='9' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQEOhe1V67n6e421LF5bUPOMBi3pPbW_IkAEQb_PNAxDB_ZyC6N9QqlIKNR3OIXafo4XbBlB3aO8i9w0cAuuNfUec1DD-skkLSiuvwvIHjkLjkGXkwssfCNrkK0GUkmJc/s220/Algae3.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEjNF-C8UfkCBYpedKbsYQHdAlnKN-95QFi6bm_iO4pmerp42nF6e488nrM2-GgVEElJjMD4DMzwyhYXz3XMTFDlsaH_F-5eNrRnvizTWyzUoPe8rdYCUcMrNjmBihPOjmuadLFdip9dV0U9n0mkwf0cJjqlYAvqzqgQPohGt0iRVv3ovPICUHnRGywcqCU=s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8305675988893866325.post-8098134993702719102</id><published>2024-09-11T09:30:00.000-07:00</published><updated>2024-09-11T09:31:07.988-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DBMS"/><category scheme="http://www.blogger.com/atom/ns#" term="MSSQL"/><category scheme="http://www.blogger.com/atom/ns#" term="PPT"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>Normalization and Decomposition</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;h1 style=&quot;text-align: center;&quot;&gt;Normalization&lt;/h1&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&quot;true&quot; frameborder=&quot;0&quot; height=&quot;389&quot; mozallowfullscreen=&quot;true&quot; src=&quot;https://docs.google.com/presentation/d/1JX3enWjFWRdM2uLZYae6WaFia_okoIRs/embed?start=true&amp;amp;loop=true&amp;amp;delayms=10000&quot; webkitallowfullscreen=&quot;true&quot; width=&quot;640&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.algaestudy.com/feeds/8098134993702719102/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.algaestudy.com/2024/09/normalization-and-decomposition.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/8098134993702719102'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/8098134993702719102'/><link rel='alternate' type='text/html' href='https://www.algaestudy.com/2024/09/normalization-and-decomposition.html' title='Normalization and Decomposition'/><author><name>Algae Education</name><uri>http://www.blogger.com/profile/12443040604753343283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='9' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQEOhe1V67n6e421LF5bUPOMBi3pPbW_IkAEQb_PNAxDB_ZyC6N9QqlIKNR3OIXafo4XbBlB3aO8i9w0cAuuNfUec1DD-skkLSiuvwvIHjkLjkGXkwssfCNrkK0GUkmJc/s220/Algae3.png'/></author><thr:total>0</thr:total><georss:featurename>986 W Minnehaha Ave, St Paul, MN 55104, USA</georss:featurename><georss:point>44.9627801 -93.1418718</georss:point><georss:box>43.414382927417378 -95.339137425 46.511177272582628 -90.944606175</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8305675988893866325.post-6070234019615970897</id><published>2024-09-11T09:15:00.000-07:00</published><updated>2024-09-11T09:15:58.089-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DBMS"/><category scheme="http://www.blogger.com/atom/ns#" term="MSSQL"/><category scheme="http://www.blogger.com/atom/ns#" term="PPT"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>Window Functions in SQL Server PPT</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;h1 style=&quot;text-align: center;&quot;&gt;Window function&lt;/h1&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 14px; margin: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;https://www.algaestudy.com/2016/08/module-1-introduction-to-database.html&quot; rel=&quot;nofollow&quot; style=&quot;color: #2874f0; margin: 0px; outline: none; padding: 0px; text-decoration-line: none;&quot; target=&quot;_blank&quot;&gt;Module 1 Introduction to Database Management System&lt;/a&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: &amp;quot;Source Sans Pro&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Helvetica, Arial, sans-serif; font-size: 14px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 14px; margin: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;https://www.algaestudy.com/2016/08/module-2-database-design.html&quot; rel=&quot;nofollow&quot; style=&quot;color: #2874f0; margin: 0px; outline: none; padding: 0px; text-decoration-line: none;&quot; target=&quot;_blank&quot;&gt;Module 2: Database Design&lt;/a&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: &amp;quot;Source Sans Pro&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Helvetica, Arial, sans-serif; font-size: 14px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 14px; margin: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;https://www.algaestudy.com/2016/08/module-3-dbms-relational-model.html&quot; rel=&quot;nofollow&quot; style=&quot;color: #2874f0; margin: 0px; outline: none; padding: 0px; text-decoration-line: none;&quot; target=&quot;_blank&quot;&gt;Module 3: DBMS | Relational Model&lt;/a&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: &amp;quot;Source Sans Pro&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Helvetica, Arial, sans-serif; font-size: 14px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 14px; margin: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;https://www.algaestudy.com/2017/08/module-4-dbms-sql-language.html&quot; rel=&quot;nofollow&quot; style=&quot;color: #2874f0; margin: 0px; outline: none; padding: 0px; text-decoration-line: none;&quot; target=&quot;_blank&quot;&gt;MODULE 4: DBMS | SQL Language&lt;/a&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: &amp;quot;Source Sans Pro&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Helvetica, Arial, sans-serif; font-size: 14px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 14px; margin: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;https://www.algaestudy.com/2016/08/module-5-dbms-transactions.html&quot; rel=&quot;nofollow&quot; style=&quot;color: #2874f0; margin: 0px; outline: none; padding: 0px; text-decoration-line: none;&quot; target=&quot;_blank&quot;&gt;Module 5: DBMS | Transactions&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&quot;true&quot; frameborder=&quot;0&quot; height=&quot;389&quot; mozallowfullscreen=&quot;true&quot; src=&quot;https://docs.google.com/presentation/d/11bhEYpqnw4ae8SOfnvsI2Mc0LSTPXM_l/embed?start=true&amp;amp;loop=true&amp;amp;delayms=10000&quot; webkitallowfullscreen=&quot;true&quot; width=&quot;640&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.algaestudy.com/feeds/6070234019615970897/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.algaestudy.com/2024/09/window-functions-ppt.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/6070234019615970897'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/6070234019615970897'/><link rel='alternate' type='text/html' href='https://www.algaestudy.com/2024/09/window-functions-ppt.html' title='Window Functions in SQL Server PPT'/><author><name>Algae Education</name><uri>http://www.blogger.com/profile/12443040604753343283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='9' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQEOhe1V67n6e421LF5bUPOMBi3pPbW_IkAEQb_PNAxDB_ZyC6N9QqlIKNR3OIXafo4XbBlB3aO8i9w0cAuuNfUec1DD-skkLSiuvwvIHjkLjkGXkwssfCNrkK0GUkmJc/s220/Algae3.png'/></author><thr:total>0</thr:total><georss:featurename>8J86+CV Bor Khandi Kalan, Rajasthan, India</georss:featurename><georss:point>26.3160041 75.6122125</georss:point><georss:box>24.321526610790876 73.414946875 28.310481589209125 77.809478125</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8305675988893866325.post-1317443766866446443</id><published>2024-09-08T01:24:00.000-07:00</published><updated>2024-09-08T01:24:33.805-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CloudFunction"/><category scheme="http://www.blogger.com/atom/ns#" term="GCP"/><category scheme="http://www.blogger.com/atom/ns#" term="GoogleCloud"/><title type='text'>What is Cloud Function in GCP</title><content type='html'>&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;h1 style=&quot;text-align: center;&quot;&gt;How Cloud Functions Works&lt;/h1&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Google Cloud Functions is a serverless event-driven managed platform for building and connecting cloud services.&lt;/h3&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjZet7UNrtIaDfmST1zxLmNZ_D3TjisWIZYrSgOvZlTYFYr5gXLwrrDEqiEwU93ElRgxW_ABJfrQ5WJVv3_5hnEG4XfB3izvRNBJGiwjRvYzeMDA_QmdamPrhgUxjeFPhfYTOBUTzIRfknwiL8WcZ9HgY35wH4dnECnb1WC0jfpORUnG0fgrb8zaCVVRjk&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;362&quot; data-original-width=&quot;752&quot; height=&quot;154&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjZet7UNrtIaDfmST1zxLmNZ_D3TjisWIZYrSgOvZlTYFYr5gXLwrrDEqiEwU93ElRgxW_ABJfrQ5WJVv3_5hnEG4XfB3izvRNBJGiwjRvYzeMDA_QmdamPrhgUxjeFPhfYTOBUTzIRfknwiL8WcZ9HgY35wH4dnECnb1WC0jfpORUnG0fgrb8zaCVVRjk=w574-h154&quot; width=&quot;574&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Cloud Functions is a serverless service, which means that the underlying infrastructure is automatically allocated as needed.&lt;/li&gt;&lt;li&gt;This cloud service is event-driven.&lt;/li&gt;&lt;li&gt;Cloud Functions is a fully managed platform.&lt;/li&gt;&lt;li&gt;Google Cloud handles pretty much everything for you. All you need to provide is the actual function.&lt;/li&gt;&lt;li&gt;The primary benefit is that Cloud Functions connects and extends services.&lt;/li&gt;&lt;li&gt;No server management, no provisioning, no configuring, no maintaining.&lt;/li&gt;&lt;li&gt;Benefit of being serverless is that scaling on-demand, whether up or down, is automatic.&lt;/li&gt;&lt;li&gt;Because Cloud Functions is all about the code, you only pay for when that code executes.&lt;/li&gt;&lt;li&gt;The code is available in a wide range of flavors, including Node.js, Python, Go, Java, .NET, Ruby, and PHP.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;General Cloud Functions workflow.&lt;/h2&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;The event triggers a Cloud Function.&lt;/li&gt;&lt;li&gt;The code in the Cloud Function executes&lt;/li&gt;&lt;li&gt;Outputs a result.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiDVGUG4yzoK9jcRXZAw4xEhxMw-Y4g7hQ89ZZhk7fR6E42_kj6fzD6MgeaCzknbrMpXNsfrF6ow_3yv4g5nt1LsDK1lxmayAvrixnG5cNbLweQcGwgVuqGQo_jPlyKYRGTl0FTYmHafOrNXu9DOGUrgBM62wmI5uZhFX51p7iDCKMEsRs_-Q-vb95ZFik&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;302&quot; data-original-width=&quot;1230&quot; height=&quot;114&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiDVGUG4yzoK9jcRXZAw4xEhxMw-Y4g7hQ89ZZhk7fR6E42_kj6fzD6MgeaCzknbrMpXNsfrF6ow_3yv4g5nt1LsDK1lxmayAvrixnG5cNbLweQcGwgVuqGQo_jPlyKYRGTl0FTYmHafOrNXu9DOGUrgBM62wmI5uZhFX51p7iDCKMEsRs_-Q-vb95ZFik=w463-h114&quot; width=&quot;463&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Workflow&amp;nbsp; Example&lt;/h3&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;First an image is uploaded to a Cloud Storage bucket&lt;/li&gt;&lt;li&gt;That action in the Cloud Storage triggers a Cloud Function.&lt;/li&gt;&lt;li&gt;When the function is executed, it calls the Vision API.&lt;/li&gt;&lt;li&gt;The Vision API extracts the text from the message and posts its results in a Pub/Sub topic, which in turn, triggers another Cloud Function.&lt;/li&gt;&lt;li&gt;This particular function calls Cloud Translate, and that API translates the extracted text.&lt;/li&gt;&lt;li&gt;The API stores its results in a different Pub/Sub topic, which triggers our third and final Cloud Function.&lt;/li&gt;&lt;li&gt;And this Cloud Function saves the results in a different Cloud Storage bucket.&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEj0MkoRI2TTjAnz82hJ6Qe6a006yic9lSLHWIjAdfvuUw98BJ2O2Dmlww_ckhJNg5oBXI3KwUFzHmDVOkzSz1gU2Paj9vaRA0cxNd18XGFNhg4A9dwq2XSuOP8Q80PRWBZC7_N073psrqxuqAM9sYbiIMqE_mqdE40C6F01QsQdGQ-ivhdv4zLlGd3ljmw&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;GCP, Accenture, Hytechie, AlgaeStudy, AlgaeServices&quot; data-original-height=&quot;943&quot; data-original-width=&quot;1772&quot; height=&quot;341&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEj0MkoRI2TTjAnz82hJ6Qe6a006yic9lSLHWIjAdfvuUw98BJ2O2Dmlww_ckhJNg5oBXI3KwUFzHmDVOkzSz1gU2Paj9vaRA0cxNd18XGFNhg4A9dwq2XSuOP8Q80PRWBZC7_N073psrqxuqAM9sYbiIMqE_mqdE40C6F01QsQdGQ-ivhdv4zLlGd3ljmw=w640-h341&quot; title=&quot;Google Cloud Function Workflow Example&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Here we see 3 different Cloud Functions, linking together 4 different services numerous times. It&#39;s worth noting that the code for all the functions in this workflow can be contained in a single file.&lt;/p&gt;&lt;p&gt;Cloud Function can play a part in especially when it comes to connecting and expanding existing services, both on and off the Google Cloud Platform.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Cloud Functions can integrate with those services off GCP, and it&#39;s all done through&amp;nbsp;&lt;/h3&gt;&lt;p&gt;&lt;/p&gt;&lt;h4&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Available APIs:&lt;/li&gt;&lt;/ul&gt;&lt;/h4&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;ul&gt;&lt;li&gt;Applications programming interfaces. APIs, such as those from GitHub, Slack, and Twilio.&lt;/li&gt;&lt;li&gt;Mobile backends. Cloud Functions have always had direct connection to Google&#39;s mobile application development platform, Firebase, and you can trigger functions based on changes to your backend database, like a new user signing up and adding a record as well as events from analytics, authentication, or even remote configuration to the entire app.&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;h4&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;IoT Backends:&lt;/li&gt;&lt;/ul&gt;&lt;/h4&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;ul&gt;&lt;li&gt;It is a specific area of stream processing that deserves a special callout. As the internet of things continues to grow exponentially, data from these devices, whether we&#39;re talking traffic monitors, thermostats, or home smart hubs can trigger any number of Cloud Functions.&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;h4&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Unstructured data:&lt;/li&gt;&lt;/ul&gt;&lt;/h4&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;ul&gt;&lt;li&gt;Cloud Functions can be integrated to react to detected images or categorize video clips for easy search and retrieval.&lt;/li&gt;&lt;li&gt;Cloud Functions can work with other services, like the Cloud Natural Language API, to perform sentiment analysis of text and trigger appropriate alerts and responses.&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.algaestudy.com/feeds/1317443766866446443/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.algaestudy.com/2024/09/what-is-cloud-function-in-gcp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/1317443766866446443'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/1317443766866446443'/><link rel='alternate' type='text/html' href='https://www.algaestudy.com/2024/09/what-is-cloud-function-in-gcp.html' title='What is Cloud Function in GCP'/><author><name>Algae Education</name><uri>http://www.blogger.com/profile/12443040604753343283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='9' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQEOhe1V67n6e421LF5bUPOMBi3pPbW_IkAEQb_PNAxDB_ZyC6N9QqlIKNR3OIXafo4XbBlB3aO8i9w0cAuuNfUec1DD-skkLSiuvwvIHjkLjkGXkwssfCNrkK0GUkmJc/s220/Algae3.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEjZet7UNrtIaDfmST1zxLmNZ_D3TjisWIZYrSgOvZlTYFYr5gXLwrrDEqiEwU93ElRgxW_ABJfrQ5WJVv3_5hnEG4XfB3izvRNBJGiwjRvYzeMDA_QmdamPrhgUxjeFPhfYTOBUTzIRfknwiL8WcZ9HgY35wH4dnECnb1WC0jfpORUnG0fgrb8zaCVVRjk=s72-w574-h154-c" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>1 Rugby Street, Newtown, Wellington 6021, New Zealand</georss:featurename><georss:point>-41.3005037 174.7802489</georss:point><georss:box>-41.300705203859522 174.77998067909851 -41.300302196140478 174.78051712090149</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8305675988893866325.post-2528678521778181191</id><published>2024-09-08T00:34:00.000-07:00</published><updated>2024-09-08T00:34:54.306-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="DataLab"/><category scheme="http://www.blogger.com/atom/ns#" term="GCP"/><category scheme="http://www.blogger.com/atom/ns#" term="GoogleCloud"/><title type='text'>Cloud DataLab or Jupyter Notebook</title><content type='html'>&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/h2&gt;&lt;h1 style=&quot;text-align: center;&quot;&gt;Cloud Datalab&lt;/h1&gt;&lt;h3 style=&quot;text-align: center;&quot;&gt;An interactive tool for data exploration, analysis, visualization, and machine learning.&lt;/h3&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgGnb9ufm477H9wtIkadCaUA4fqds4zE_VB9vM-j_kfeD04TfsqDBB4MBSEatfhrN8tPBaGB_edZk96ofxfBsBAL5LDIQpzpE7HG9qgz7xaY1U4gStLlhXmPe9JKG6V6DIRoVanYSHoIN3KVcSZ6o955yGWhUWklntgsfQChPIkAvT9Y2l-xiiIcx4rxAw&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;282&quot; data-original-width=&quot;287&quot; height=&quot;105&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgGnb9ufm477H9wtIkadCaUA4fqds4zE_VB9vM-j_kfeD04TfsqDBB4MBSEatfhrN8tPBaGB_edZk96ofxfBsBAL5LDIQpzpE7HG9qgz7xaY1U4gStLlhXmPe9JKG6V6DIRoVanYSHoIN3KVcSZ6o955yGWhUWklntgsfQChPIkAvT9Y2l-xiiIcx4rxAw=w107-h105&quot; width=&quot;107&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgSCUXOVRhGKBY8o7zVISqAFbfE01H5fNTyhvNJveq8zQiMeFoXujYNZBBnrm9EGvZxnJwxJqmUcle34jHNR0zE48DzlnWDo27X_7tROp_ogl1T_qQ53jFoHY_eKI32mq8lrF7czd8Mh2zZZu5kNRJAUPbLMVlW2QGW33FJo7wCjSl7pXTOEugzsQCDWIM&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;215&quot; data-original-width=&quot;333&quot; height=&quot;104&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgSCUXOVRhGKBY8o7zVISqAFbfE01H5fNTyhvNJveq8zQiMeFoXujYNZBBnrm9EGvZxnJwxJqmUcle34jHNR0zE48DzlnWDo27X_7tROp_ogl1T_qQ53jFoHY_eKI32mq8lrF7czd8Mh2zZZu5kNRJAUPbLMVlW2QGW33FJo7wCjSl7pXTOEugzsQCDWIM=w160-h104&quot; width=&quot;160&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;What is Cloud Datalab?&lt;/h3&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;As a GCP service, it&#39;s basically a preexisting technology that gets wrapped in some GCP conveniences.&lt;/li&gt;&lt;li&gt;That preexisting technology is called Jupyter Notebooks.&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Jupyter Notebooks an interactive webpages, look a bit like a web-based text editor,&lt;/li&gt;&lt;li&gt;Jupyter Notebooks can contain documentation, code, and most importantly, elements which are the results of compiled code.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Datalab/Jupyter elements could include graphs, visualizations,or just the results of some mathematical calculation.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;So I can say, Data lab is a simple notebook in which we can add Some text to explain what my notebook is all about&lt;/h4&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;I can also add some Python code right inside the notebook, and then I can actually run that code and the results will be displayed inside my notebook.&lt;/li&gt;&lt;li&gt;Datalab notebook, something called a kernel process is launched on the VM hosting the notebook.&lt;/li&gt;&lt;li&gt;The DataLab kernel process can execute code within the notebook and access GCP services like BigQuery or ML Engine.&lt;/li&gt;&lt;li&gt;Everything you do while working on your notebook exists within a session run on this kernel.&lt;/li&gt;&lt;li&gt;Outputs from one section of code can be used in the next section of code.&lt;/li&gt;&lt;li&gt;As its mixed media support in Jupyter Notebooks/Data lab, they are a fantastic way to share and collaborate on information.&lt;/li&gt;&lt;li&gt;Datalab/Jupyter Notebooks have built-in support for a variety of Python graphing and plotting libraries.&lt;/li&gt;&lt;li&gt;You can easily share notebooks with other people, allowing them to run calculations for themselves with their own instance of the notebook.&lt;/li&gt;&lt;li&gt;Cloud Datalab configures a Google Source Repository for your notebooks, which is automatically cloned onto the persistent disk attached to your Datalab instance.&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjnyS11a-dvbI-4p8WQC3qYt47f-zMfC3BvlkjFu0tNAerDayGhMdyU8kFTKwxkSgRPNz3W9n1FcOwSiRJJwFZbVS8euRK5FfPcvdswcJzpoNrRfykh36gdlIqIf1lpL20EmHZ4Va8kGtkQUKI2b6BAlba2KnLLhpsVJ-VbjNoP3aze0lqYneTot8y6B2w&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;GCP, Accenture, AlgaeStudy,  AlgaeServices, hyptechie&quot; data-original-height=&quot;338&quot; data-original-width=&quot;1037&quot; height=&quot;134&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjnyS11a-dvbI-4p8WQC3qYt47f-zMfC3BvlkjFu0tNAerDayGhMdyU8kFTKwxkSgRPNz3W9n1FcOwSiRJJwFZbVS8euRK5FfPcvdswcJzpoNrRfykh36gdlIqIf1lpL20EmHZ4Va8kGtkQUKI2b6BAlba2KnLLhpsVJ-VbjNoP3aze0lqYneTot8y6B2w=w456-h134&quot; title=&quot;Cloud google Data Lab&quot; width=&quot;456&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;If Jupyter Notebooks are so great on their own, why do we need Cloud Datalab?&lt;/h4&gt;&lt;p&gt;&lt;b&gt;&amp;nbsp;It&#39;s all about convenience.&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Google&#39;s Datalab command line tool manages the lifecycle of a Datalab instance, which hosts your notebooks and kernel processes.&lt;/li&gt;&lt;li&gt;It can quickly create a Datalab VM in seconds without you having to worry about downloading, installing, and configuring the correct software.&lt;/li&gt;&lt;li&gt;Datalab creates the Git repo for your notebooks in Google Cloud Source Repositories, can be cloned onto the persistent disk of the Datalab instance.&lt;/li&gt;&lt;li&gt;Changes to notebooks can then be committed back to the repo. You can also safely delete a Datalab instance while retaining its persistent disk.&lt;/li&gt;&lt;li&gt;You can then use the existing disk when you create a new Datalab instance.&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;To Create Google Cloud Datalab, follow the below instructions&lt;/h3&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Enable Cloud Source Repositories API&amp;nbsp; (&lt;i&gt;If your repository is not created, this option is disable for use&lt;/i&gt;)&lt;/li&gt;&lt;li&gt;Open Google Cloud shell and run the below command to Create DataLab VM&lt;/li&gt;&lt;ul&gt;&lt;li&gt;gcloud components update&lt;/li&gt;&lt;li&gt;gcloud components install datalab&lt;/li&gt;&lt;li&gt;datalab create datalab-demo&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Say yes in option for SSH key and copy output URL to&amp;nbsp; open Datalab instance&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjge547Za3wC_n-C4k-k7Cy-wKUWNWc6Ya30ZpgF2RyXTsVyK5-N-OYZ11hECCCOofA-W9g9pF5DkiSSiAIXwsvCqSex7pqwaLN1qMEO0h6ACInAfnG_AJe9Aa1kMAKsOZsGDUUeiHfn6FGeD3JKIrWSqk_68BgrDl_HG9396gZUwOw-2xXwNY2Q_rxKzo&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;223&quot; data-original-width=&quot;693&quot; height=&quot;126&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjge547Za3wC_n-C4k-k7Cy-wKUWNWc6Ya30ZpgF2RyXTsVyK5-N-OYZ11hECCCOofA-W9g9pF5DkiSSiAIXwsvCqSex7pqwaLN1qMEO0h6ACInAfnG_AJe9Aa1kMAKsOZsGDUUeiHfn6FGeD3JKIrWSqk_68BgrDl_HG9396gZUwOw-2xXwNY2Q_rxKzo=w391-h126&quot; width=&quot;391&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: right;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgY6O10sMPdP-8Q0Crbf-UCwloNuJCzL0P5CAIY0ph_xQbXgfPld-80cdQ9Mx3xhEUSMovOmznN-C-2VovCEAMgBNkyaby2thWfBqcgqUhyc8Kn1AYLvaIoc7zl2iztlM7TtPzgAVNaHeG6w-qOxIFYYoGrZ6pfi_9bAxjTe58Bdh5Vyce5NRmft-BdgQ4&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;467&quot; data-original-width=&quot;1432&quot; height=&quot;158&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgY6O10sMPdP-8Q0Crbf-UCwloNuJCzL0P5CAIY0ph_xQbXgfPld-80cdQ9Mx3xhEUSMovOmznN-C-2VovCEAMgBNkyaby2thWfBqcgqUhyc8Kn1AYLvaIoc7zl2iztlM7TtPzgAVNaHeG6w-qOxIFYYoGrZ6pfi_9bAxjTe58Bdh5Vyce5NRmft-BdgQ4=w486-h158&quot; width=&quot;486&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: right;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: right;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.algaestudy.com/feeds/2528678521778181191/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.algaestudy.com/2024/09/cloud-datalab-or-jupyter-notebook.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/2528678521778181191'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/2528678521778181191'/><link rel='alternate' type='text/html' href='https://www.algaestudy.com/2024/09/cloud-datalab-or-jupyter-notebook.html' title='Cloud DataLab or Jupyter Notebook'/><author><name>Algae Education</name><uri>http://www.blogger.com/profile/12443040604753343283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='9' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQEOhe1V67n6e421LF5bUPOMBi3pPbW_IkAEQb_PNAxDB_ZyC6N9QqlIKNR3OIXafo4XbBlB3aO8i9w0cAuuNfUec1DD-skkLSiuvwvIHjkLjkGXkwssfCNrkK0GUkmJc/s220/Algae3.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEgGnb9ufm477H9wtIkadCaUA4fqds4zE_VB9vM-j_kfeD04TfsqDBB4MBSEatfhrN8tPBaGB_edZk96ofxfBsBAL5LDIQpzpE7HG9qgz7xaY1U4gStLlhXmPe9JKG6V6DIRoVanYSHoIN3KVcSZ6o955yGWhUWklntgsfQChPIkAvT9Y2l-xiiIcx4rxAw=s72-w107-h105-c" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>200 Chartres St, Houston, TX 77003, USA</georss:featurename><georss:point>29.7597805 -95.3501314</georss:point><georss:box>29.700160836011705 -95.418795950781245 29.8194001639883 -95.281466849218745</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8305675988893866325.post-2488614294790780949</id><published>2024-08-25T21:48:00.000-07:00</published><updated>2024-08-25T21:48:55.852-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MongoDB"/><category scheme="http://www.blogger.com/atom/ns#" term="NoSQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Python"/><title type='text'>Import Data in Mongo using Python</title><content type='html'>&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;h1 style=&quot;text-align: center;&quot;&gt;&amp;nbsp;PY-MONGO&amp;nbsp; DATA IMPORT&lt;/h1&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;STEPS&lt;/h3&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Install Mongodb&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Download MongoDB “https://www.mongodb.com/try/download/community&lt;/li&gt;&lt;li&gt;Install Mongodb from GUI&lt;/li&gt;&lt;li&gt;Download and Install Python “https://www.python.org/downloads/”&lt;/li&gt;&lt;li&gt;Install Py-Mongo from command prompt using command from command prompt&amp;nbsp; &quot;python -m pip install pymongo&quot;Collect Connection String&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Install&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Python [using command prompt &quot;pip install notebook&quot;]&lt;/li&gt;&lt;li&gt;Jupyter [using command prompt&amp;nbsp; &quot;jupyter notebook&quot;]&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Data Preparation&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Prepare a csv file with name “data.csv”&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Install&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;Pymongo&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Execute the Python code&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;Import the Data and Validate&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Your CV is loaded successfully Mongodb database “CSV” , collection name “data_csv”&lt;/li&gt;&lt;li&gt;Connect to MongoDB compass and validate&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;Code To be Executed from Jupyter Notebook&lt;/b&gt;&lt;/h2&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;/***********Python Code to Import Data***********/&lt;/h3&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;#Install Py-Mongo from command prompt using below&amp;nbsp; &quot;python -m pip install pymongo&quot;&lt;br /&gt;#My Local MongoDB string:&amp;nbsp; &quot;mongodb://localhost:27017&quot;&lt;/h4&gt;&lt;div&gt;import csv&lt;/div&gt;&lt;div&gt;from pymongo import MongoClient&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;#Connect to MongoDB&lt;/h4&gt;&lt;div&gt;client = MongoClient(&quot;mongodb://localhost:27017&quot;)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;#Name of You database&lt;/h4&gt;&lt;div&gt;db=client[&quot;CSV&quot;]&lt;/div&gt;&lt;div&gt;#Name of your collection&lt;/div&gt;&lt;div&gt;collection =db[&quot;cdv_data_4&quot;]&lt;/div&gt;&lt;div&gt;#Path to your CSV file&lt;/div&gt;&lt;div&gt;csv_file =&quot;data.csv&quot;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;#Open the CSV File&lt;/h4&gt;&lt;div&gt;with open(csv_file,&quot;r&quot;) as file:&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; reader=csv.DictReader(file)&lt;/div&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; # Iterate each row in csv file&lt;/h4&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; for row in reader:&lt;/div&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #Insert rows in Mongodb&lt;/h4&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; collection.insert_one(row)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;if (collection.count_documents({})==2):&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; print(&quot;CSV data imported into MongoDB successfully !&quot;)&lt;/div&gt;&lt;div&gt;else:&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; print(&quot;Something went Wrong!!&quot;)&lt;/div&gt;&lt;div&gt;/********************************/&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEihXnVGv--7g-5dJ5jUvKnIcma-mVFXR5GwD10h5LhDMjipO1Mcr-KnS53VTovO_qbjWCGsrKnQ6jRpImmsN-CzwCeT9xZGbolfgp4ARfTYfEYTVRF3Juk9_UNSbbEe9GB6VQXSi1EVP_9a0PUu0o1O7QGMAst2hqhg0QnqMNWfe2T0pLAE092CIF4l17E&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;saurabh Sinha mongodb SQLSERVER PYTHON&quot; data-original-height=&quot;840&quot; data-original-width=&quot;915&quot; height=&quot;589&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEihXnVGv--7g-5dJ5jUvKnIcma-mVFXR5GwD10h5LhDMjipO1Mcr-KnS53VTovO_qbjWCGsrKnQ6jRpImmsN-CzwCeT9xZGbolfgp4ARfTYfEYTVRF3Juk9_UNSbbEe9GB6VQXSi1EVP_9a0PUu0o1O7QGMAst2hqhg0QnqMNWfe2T0pLAE092CIF4l17E=w640-h589&quot; title=&quot;pymongo Import data using Mongodb from python script&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Validate The Data in MongoDB Compass&lt;/h3&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Connect with MongoDB using Local host&lt;/li&gt;&lt;li&gt;Check databases&lt;/li&gt;&lt;li&gt;Open database CSV&lt;/li&gt;&lt;li&gt;Check Collection CSV_data_4&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgL9XC_c6SJ6cPsdvLKZD__rCGuv1v_3kfP3LQ64qa1xBgT5i2XHH_cER79AEAdYUbvCPbQ_Ut8bpRSrZDU9Aay85XxcyM6KNwEDxoop86akDwfN9iMCWVA-CMv4eNwv-Sg-M9Z0JbCGDulwN84aEgEU3aYf9IgNflsp-kHCYMxOxRJ1rNTNmBE08ejS2Q&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;saurabh sinha mongodb compass, python script&quot; data-original-height=&quot;797&quot; data-original-width=&quot;1346&quot; height=&quot;378&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgL9XC_c6SJ6cPsdvLKZD__rCGuv1v_3kfP3LQ64qa1xBgT5i2XHH_cER79AEAdYUbvCPbQ_Ut8bpRSrZDU9Aay85XxcyM6KNwEDxoop86akDwfN9iMCWVA-CMv4eNwv-Sg-M9Z0JbCGDulwN84aEgEU3aYf9IgNflsp-kHCYMxOxRJ1rNTNmBE08ejS2Q=w640-h378&quot; title=&quot;mongodb compass data validation&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.algaestudy.com/feeds/2488614294790780949/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.algaestudy.com/2024/08/import-data-in-mongo-using-python.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/2488614294790780949'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/2488614294790780949'/><link rel='alternate' type='text/html' href='https://www.algaestudy.com/2024/08/import-data-in-mongo-using-python.html' title='Import Data in Mongo using Python'/><author><name>Algae Education</name><uri>http://www.blogger.com/profile/12443040604753343283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='9' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQEOhe1V67n6e421LF5bUPOMBi3pPbW_IkAEQb_PNAxDB_ZyC6N9QqlIKNR3OIXafo4XbBlB3aO8i9w0cAuuNfUec1DD-skkLSiuvwvIHjkLjkGXkwssfCNrkK0GUkmJc/s220/Algae3.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEihXnVGv--7g-5dJ5jUvKnIcma-mVFXR5GwD10h5LhDMjipO1Mcr-KnS53VTovO_qbjWCGsrKnQ6jRpImmsN-CzwCeT9xZGbolfgp4ARfTYfEYTVRF3Juk9_UNSbbEe9GB6VQXSi1EVP_9a0PUu0o1O7QGMAst2hqhg0QnqMNWfe2T0pLAE092CIF4l17E=s72-w640-h589-c" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>X84V+V5 Cartujanos, Coah., Mexico</georss:featurename><georss:point>26.9571463 -100.6570686</georss:point><georss:box>12.835557347841714 -118.2351936 41.078735252158289 -83.0789436</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8305675988893866325.post-1900350081665431728</id><published>2024-08-24T22:14:00.000-07:00</published><updated>2024-08-24T22:17:20.785-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MongoDB"/><category scheme="http://www.blogger.com/atom/ns#" term="Python"/><title type='text'>Inserting data In Mongodb via Python</title><content type='html'>&lt;p style=&quot;text-align: center;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;h1 style=&quot;text-align: center;&quot;&gt;Py-Mongo - Data Insertion&lt;/h1&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Demo will show how to insert one or multiple records in mongodb using python code.&amp;nbsp; Here we will use mongodb commands for insert triggered from Python&lt;/h3&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Insert_One:&amp;nbsp;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Insert only one document&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Insert_Many:&amp;nbsp;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Insert multiple document&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;Steps:&lt;/b&gt;&lt;/h2&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Setup Mongodb and collect connection strings&lt;/li&gt;&lt;li&gt;Setup Python opne Jupyter&lt;/li&gt;&lt;li&gt;Executing Python code&lt;/li&gt;&lt;li&gt;Validate the Data in MongoDB&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Step 1.&amp;nbsp;&lt;/h3&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;a href=&quot;https://www.algaestudy.com/2018/01/install-mongo-db-on-windows.html&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Install MongoDB&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Step 2.&amp;nbsp;&lt;/h3&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;a href=&quot;https://www.algaestudy.com/2017/11/install-python.html&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Install Python&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Step 3.&amp;nbsp; &amp;nbsp;&lt;/h3&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Execute Python Code&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;/*********Python Code To insert One Document******************/&lt;/b&gt;&lt;/h4&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;b&gt;#Import Librarys&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;import pprint&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;from bson.objectid import ObjectId&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;from pymongo import MongoClient&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;b&gt;#Connect to MongoDB&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;client = MongoClient(&quot;mongodb://localhost:27017&quot;)&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;b&gt;# Get Reference to database&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;db = client.algae&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;b&gt;# Get a reference to the &#39;emp&#39; collection&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;emp_collection = db.emp&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;b&gt;#Prepare Data and store in the variable&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;new_emp = {&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;account_holder&quot;: &quot;Linus Torvalds&quot;,&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;account_id&quot;: &quot;MDB829001337&quot;,&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;account_type&quot;: &quot;checking&quot;,&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;balance&quot;: 50352434&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;}&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;b&gt;# Write an expression that inserts the &#39;new_account&#39; document into the &#39;accounts&#39; collection.&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;result = emp_collection.insert_one(new_emp)&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;b&gt;# Print DocumentID inserted&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;document_id = result.inserted_id&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;print(f&quot;_id of inserted document: {document_id}&quot;)&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;client.close()&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;/***************************/&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhbayQNp67qh_anWbVo3h8yRhVtVl2iqoeWl7ec1bVF5SO-seqqaO5gPX69IhHwYOgAduw6u8b7-4BbhNDHTSg2H3uWAKZfJJPddvnZ2SMyPKuEZjLrVo20aZmMoaTYFB8cp_MFqL-MEtA9nfJSfHMEyrldhxENLUlSMwH8-g1Xt9LNkhhIw2yvkWx81ZY&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;pymongo saurabh Sinha&quot; data-original-height=&quot;436&quot; data-original-width=&quot;584&quot; height=&quot;478&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhbayQNp67qh_anWbVo3h8yRhVtVl2iqoeWl7ec1bVF5SO-seqqaO5gPX69IhHwYOgAduw6u8b7-4BbhNDHTSg2H3uWAKZfJJPddvnZ2SMyPKuEZjLrVo20aZmMoaTYFB8cp_MFqL-MEtA9nfJSfHMEyrldhxENLUlSMwH8-g1Xt9LNkhhIw2yvkWx81ZY=w640-h478&quot; title=&quot;Setup connection between mongdb and python&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhuGF1ID4EwhB8VeANFpC0V1gf5dI3iJebXBVnR9wBqsUXH0wQTL3gX1BtfCof1duTo5Gz2nIwPwKSCxblkM8W2_66NewCzW7PRK30E88IqE9Q7PkdXSNmSDi-Cj3ktQFl84_iAIj3Sv2-oJwTNhJsAClMQl21rv7popnWikp0nk53EHRbqllOTbFK2Fbk&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;pymongo insert algae Services, saurabh Sinha&quot; data-original-height=&quot;465&quot; data-original-width=&quot;585&quot; height=&quot;318&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhuGF1ID4EwhB8VeANFpC0V1gf5dI3iJebXBVnR9wBqsUXH0wQTL3gX1BtfCof1duTo5Gz2nIwPwKSCxblkM8W2_66NewCzW7PRK30E88IqE9Q7PkdXSNmSDi-Cj3ktQFl84_iAIj3Sv2-oJwTNhJsAClMQl21rv7popnWikp0nk53EHRbqllOTbFK2Fbk=w400-h318&quot; title=&quot;mongodb insert&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;h4&gt;&lt;b&gt;/*********Python Code To insert One Document******************/&lt;/b&gt;&lt;/h4&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;b&gt;#Import Librarys&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;import pprint&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;from bson.objectid import ObjectId&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;from pymongo import MongoClient&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;b&gt;#Connect to MongoDB&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;client = MongoClient(&quot;mongodb://localhost:27017&quot;)&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;b&gt;# Get Reference to database&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;db = client.algae&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;b&gt;# Get a reference to the &#39;emp&#39; collection&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;emp_collection = db.emp&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;b&gt;#Prepare Data and store in the variable&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;new_accounts = [&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;account_id&quot;: &quot;MDB011235813&quot;,&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;account_holder&quot;: &quot;Ada Lovelace&quot;,&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;account_type&quot;: &quot;checking&quot;,&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;balance&quot;: 60218,&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&amp;nbsp; &amp;nbsp; },&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;account_id&quot;: &quot;MDB829000001&quot;,&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;account_holder&quot;: &quot;Muhammad ibn Musa al-Khwarizmi&quot;,&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;account_type&quot;: &quot;savings&quot;,&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;balance&quot;: 267914296,&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&amp;nbsp; &amp;nbsp; },&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;]&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;b&gt;# Write an expression that inserts the documents&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;result = emp_collection.insert_many(new_accounts)&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;document_ids = result.inserted_ids&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;print(&quot;# of documents inserted: &quot; + str(len(document_ids)))&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;print(f&quot;_ids of inserted documents: {document_ids}&quot;)&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;client.close()&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;/******************************/&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiEdocorO4aPXEmQzKB-bEXRAIVoVLL17VtzFVEWzQNxgL5ArLnC7WqR56KqDhLfqES2DbaBn8Tw4FoGqQLax4vDl0R8zcyoDUkJ6FYAWuSUy8ZDQMM8sS7w25L6deqeRTNkn6N95cVOaDLfgHWn_nRcbkxhnaQYZbi_FAZhwqgRaElSkhersPk1rwggAQ&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;img alt=&quot;pymongo insert&quot; data-original-height=&quot;727&quot; data-original-width=&quot;675&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiEdocorO4aPXEmQzKB-bEXRAIVoVLL17VtzFVEWzQNxgL5ArLnC7WqR56KqDhLfqES2DbaBn8Tw4FoGqQLax4vDl0R8zcyoDUkJ6FYAWuSUy8ZDQMM8sS7w25L6deqeRTNkn6N95cVOaDLfgHWn_nRcbkxhnaQYZbi_FAZhwqgRaElSkhersPk1rwggAQ=w595-h640&quot; title=&quot;mongodb python insert&quot; width=&quot;595&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h4 style=&quot;clear: both; text-align: left;&quot;&gt;Step 4&lt;/h4&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Validate the data using Mongdb compass or from console using query&lt;/li&gt;&lt;li&gt;db.emp.find({&#39;key&#39;:&#39;value&#39;})&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjiziRM-Vo78nqEiP6QS-JsMo8z294AxVwG6WmkGU8LtU3h7Ew4wSJh40EAl09pUtVN_AfUkNYmHbc0kR-Xs74HhkC91trIXLwpVKNe2DFJz9cUhC9Oj9cWMGfOxfjaWXTU3Y3euP0HLlEne66SDZnePhyYih7vUmRLLV5q50Le7oAd4S_OfqWg7CsKT2o&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;find_one mongodb saurabh&quot; data-original-height=&quot;894&quot; data-original-width=&quot;1768&quot; height=&quot;324&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjiziRM-Vo78nqEiP6QS-JsMo8z294AxVwG6WmkGU8LtU3h7Ew4wSJh40EAl09pUtVN_AfUkNYmHbc0kR-Xs74HhkC91trIXLwpVKNe2DFJz9cUhC9Oj9cWMGfOxfjaWXTU3Y3euP0HLlEne66SDZnePhyYih7vUmRLLV5q50Le7oAd4S_OfqWg7CsKT2o=w640-h324&quot; title=&quot;mongodb compass read documents using GUI&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.algaestudy.com/feeds/1900350081665431728/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.algaestudy.com/2024/08/inserting-data-in-mongodb-via-python.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/1900350081665431728'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/1900350081665431728'/><link rel='alternate' type='text/html' href='https://www.algaestudy.com/2024/08/inserting-data-in-mongodb-via-python.html' title='Inserting data In Mongodb via Python'/><author><name>Algae Education</name><uri>http://www.blogger.com/profile/12443040604753343283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='9' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQEOhe1V67n6e421LF5bUPOMBi3pPbW_IkAEQb_PNAxDB_ZyC6N9QqlIKNR3OIXafo4XbBlB3aO8i9w0cAuuNfUec1DD-skkLSiuvwvIHjkLjkGXkwssfCNrkK0GUkmJc/s220/Algae3.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEhbayQNp67qh_anWbVo3h8yRhVtVl2iqoeWl7ec1bVF5SO-seqqaO5gPX69IhHwYOgAduw6u8b7-4BbhNDHTSg2H3uWAKZfJJPddvnZ2SMyPKuEZjLrVo20aZmMoaTYFB8cp_MFqL-MEtA9nfJSfHMEyrldhxENLUlSMwH8-g1Xt9LNkhhIw2yvkWx81ZY=s72-w640-h478-c" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>7JFJXCC5+RM</georss:featurename><georss:point>19.9721201 72.4091991</georss:point><georss:box>3.5960257183145359 54.831074099999995 36.348214481685467 89.9873241</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8305675988893866325.post-3548794242496082543</id><published>2024-08-04T09:37:00.001-07:00</published><updated>2024-08-04T09:37:35.432-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Azure"/><category scheme="http://www.blogger.com/atom/ns#" term="AzureDBA"/><category scheme="http://www.blogger.com/atom/ns#" term="Cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Azure"/><title type='text'>Configuring resources for Azure SQL platform-as-a-service </title><content type='html'>&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;h1 style=&quot;text-align: center;&quot;&gt;Azure PASS SQL&lt;br /&gt;Purchasing Model and Service Tier&lt;/h1&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Configuring resources for PASS services involves two different performance-related aspects&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;The purchasing model.&lt;/li&gt;&lt;li&gt;The service tier&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjyPh0vKEqe-kPEP2A6T6k4nIUuC68bRUE93X1G21zLQIGPXbUMXNtWEU2rZMm9_SxsxXT6uZM1cvLNZCAZB4sJbah6BK5rDAI5PQfQr4DZ74pUpaoOT664tzAs-Lm9oFFuVVDnQNMgT08b_cfCZU9N_ZDQEy0SzjTj7ja73T3OyrwWIGD1vY68W1cak_4&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;118&quot; data-original-width=&quot;980&quot; height=&quot;39&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjyPh0vKEqe-kPEP2A6T6k4nIUuC68bRUE93X1G21zLQIGPXbUMXNtWEU2rZMm9_SxsxXT6uZM1cvLNZCAZB4sJbah6BK5rDAI5PQfQr4DZ74pUpaoOT664tzAs-Lm9oFFuVVDnQNMgT08b_cfCZU9N_ZDQEy0SzjTj7ja73T3OyrwWIGD1vY68W1cak_4&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;The purchasing model:&amp;nbsp;&lt;/h3&gt;&lt;p&gt;It is where we configure direct allocation of CPU, memory, storage space, and possible storage IO operations per second to the Azure SQL offering that we are configuring.&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;The service tier:&amp;nbsp;&lt;/h3&gt;&lt;p&gt;This defines the maximum amount of resources that could be allocated to our database, the type of storage used for our data, as well as the high availability methodology Azure SQL will use behind the scenes to keep our databases or instances up and running.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;The performance sources available to our Azure SQL solution are governed by the specific purchasing model and service tier that we have chosen to use.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;We only have 2 purchasing models,&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;DTU: Measuring resource allocation by database transaction unit,or DTU&lt;/li&gt;&lt;li&gt;vCores: Allocating by virtual CPU cores&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;b&gt;For service tier, our options are:&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Basic&lt;/li&gt;&lt;li&gt;Standard&lt;/li&gt;&lt;li&gt;General Purpose,&lt;/li&gt;&lt;li&gt;Premium&lt;/li&gt;&lt;li&gt;Business Critical&lt;/li&gt;&lt;li&gt;Hyperscale.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Note: The underlying infrastructure for Standard and General Purpose, and Premium and Business Critical, respectively, are practically identical, which is why they are group&lt;/p&gt;&lt;p&gt;When provisioning Azure SQL platform-as-a-service resources, the actual service tiers that we will be able to choose from will depend on the purchasing model that we have selected.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;DTU model: Basic, Standard or Premium service tiers.&lt;/li&gt;&lt;li&gt;vCore purchasing model: General Purpose, Business Critical, and the Hyperscale service tiers.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEj3OlhVY2xqI6N5hhhLDPvQ-t_JdqSTfrKPP4BjjBQ-lGjg2U8vLQqUt0PLfxQMR4FBgTLQov5r8CfcbRasurN3KYvXjF7aVfLR_2x4LXgHNYTtS4MG5VJgUNJJThZy-n7641kotedfUrfuyl9RFOIK0fYniiyTyr4hsEku3zitrZQIsoHpL46eHWXdoB4&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;701&quot; data-original-width=&quot;1219&quot; height=&quot;250&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEj3OlhVY2xqI6N5hhhLDPvQ-t_JdqSTfrKPP4BjjBQ-lGjg2U8vLQqUt0PLfxQMR4FBgTLQov5r8CfcbRasurN3KYvXjF7aVfLR_2x4LXgHNYTtS4MG5VJgUNJJThZy-n7641kotedfUrfuyl9RFOIK0fYniiyTyr4hsEku3zitrZQIsoHpL46eHWXdoB4=w434-h250&quot; width=&quot;434&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;The settings for both purchasing model and service tier can be easily reconfigured, often with only a very brief interruption of service. You can even decide to change to a different purchasing model or service tier entirely, though changing service tiers might take a little longer, as the data will most likely need to be transferred to a different type of storage.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;Note: Databases using the Hyperscale tier cannot ever be changed to a different service tier.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;h3 style=&quot;clear: both; text-align: left;&quot;&gt;Elastic pools:&amp;nbsp;&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Resource configuration is performed at the pool level, not at the level of any member databases.&lt;/li&gt;&lt;li&gt;These pool-level resources are then allocated to the member databases as needed, automatically by the Azure SQL service.&lt;/li&gt;&lt;li&gt;Minimum and maximum resource levels can be configured for member databases collectively, not individually.&lt;/li&gt;&lt;li&gt;Nor can all of the collective pool members ever use more resources than have been configured for the entire pool.&lt;/li&gt;&lt;li&gt;elastic pools will automatically allocate resources to their member databases as needed, but are only able to do so within their configured limits.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.algaestudy.com/feeds/3548794242496082543/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.algaestudy.com/2024/08/configuring-resources-for-azure-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/3548794242496082543'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/3548794242496082543'/><link rel='alternate' type='text/html' href='https://www.algaestudy.com/2024/08/configuring-resources-for-azure-sql.html' title='Configuring resources for Azure SQL platform-as-a-service '/><author><name>Algae Education</name><uri>http://www.blogger.com/profile/12443040604753343283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='9' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQEOhe1V67n6e421LF5bUPOMBi3pPbW_IkAEQb_PNAxDB_ZyC6N9QqlIKNR3OIXafo4XbBlB3aO8i9w0cAuuNfUec1DD-skkLSiuvwvIHjkLjkGXkwssfCNrkK0GUkmJc/s220/Algae3.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEjyPh0vKEqe-kPEP2A6T6k4nIUuC68bRUE93X1G21zLQIGPXbUMXNtWEU2rZMm9_SxsxXT6uZM1cvLNZCAZB4sJbah6BK5rDAI5PQfQr4DZ74pUpaoOT664tzAs-Lm9oFFuVVDnQNMgT08b_cfCZU9N_ZDQEy0SzjTj7ja73T3OyrwWIGD1vY68W1cak_4=s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8305675988893866325.post-4569282818853153830</id><published>2024-08-04T09:37:00.000-07:00</published><updated>2024-08-04T09:37:22.184-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Azure"/><category scheme="http://www.blogger.com/atom/ns#" term="AzureDBA"/><category scheme="http://www.blogger.com/atom/ns#" term="Cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="DTU"/><category scheme="http://www.blogger.com/atom/ns#" term="ElasticPools"/><title type='text'>Elastic Pools in Azure and DTUs?</title><content type='html'>&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;h1 style=&quot;text-align: center;&quot;&gt;&amp;nbsp;Elastic Pools and DTUs? How&#39;s that work?&lt;/h1&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Elastic Pools manage resource allocation to multiple Azure SQL databases.&lt;/li&gt;&lt;li&gt;Elastic pools may use either the DTU or vCore purchasing models, and all of their member databases use the same purchasing model as the pool. So you can&#39;t have a vCore database in a DTU Elastic Pool.&amp;nbsp;&lt;/li&gt;&lt;li&gt;eDTUs&lt;/li&gt;&lt;ul&gt;&lt;li&gt;We refer to DTUs allocated to elastic pools as eDTUs. eDTUs aren&#39;t really a different thing than DTUs.&amp;nbsp;&lt;/li&gt;&lt;li&gt;It&#39;s just a term to distinguish the potential capability of an elastic pool.&lt;/li&gt;&lt;li&gt;eDTUs simply represent the maximum number of DTUs that the elastic pool can allocate to any of its member databases within that elastic pool.&amp;nbsp;&lt;/li&gt;&lt;li&gt;Once an eDTU has been allocated to a database, it&#39;s simply referred to as a DTU once again.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgI6hjNOVgy_MAK83JfwxuObYYNtM7LPuPqzC0B2gUMLxDjJcjEKjidld2HVopG-QcEE2OVa3tceWAgfQIN_Ysl8Ubq-04NLYCOB15WtwihB6UjOPz9Jlqshu2coTRriB0CAfwD3AF4FUnb18IiiIpHMrJy4NZs9TYPpn1hPNUrI5ZLvRWvwKgwF9mWr0w&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;algaeservices SQL Server DBA&quot; data-original-height=&quot;257&quot; data-original-width=&quot;757&quot; height=&quot;136&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgI6hjNOVgy_MAK83JfwxuObYYNtM7LPuPqzC0B2gUMLxDjJcjEKjidld2HVopG-QcEE2OVa3tceWAgfQIN_Ysl8Ubq-04NLYCOB15WtwihB6UjOPz9Jlqshu2coTRriB0CAfwD3AF4FUnb18IiiIpHMrJy4NZs9TYPpn1hPNUrI5ZLvRWvwKgwF9mWr0w=w400-h136&quot; title=&quot;algaestudy azure cloud&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;The range of pool resources that may be allocated to individual database pool members can be controlled, and the pool will automatically allocate or deallocate resources to member databases as needed within your configured per database limits.&lt;/li&gt;&lt;li&gt;When configuring elastic pools to use the DTU purchasing model, the Basic service tier can be used.&amp;nbsp;&lt;/li&gt;&lt;li&gt;With elastic pools using the Basic tier, you have several different eDTU classes to choose from, which naturally affects the maximum amount of resources available to the elastic pool, not to the individual pool member databases.&lt;/li&gt;&lt;li&gt;The resource limits for single databases still apply to databases that are members of an elastic pool.&lt;/li&gt;&lt;li&gt;Single databases using Basic DTU can have no more than 5 DTUs and no more than 2 gigabytes of storage.&lt;/li&gt;&lt;li&gt;So while elastic pools at the Basic service tier, depending on their selected eDTU class, might have up to 16 eDTUs to allocate to their member databases and up to 156 gigabytes of total allocatable storage, each of the member databases may not be allocated more than the 5 DTUs or 2 gigabytes of storage that is allowed to a single database at that Basic class.&amp;nbsp;&lt;/li&gt;&lt;li&gt;Elastic pools using the Basic service tier may support up to 500 member databases regardless of the selected DTU class.&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.algaestudy.com/feeds/4569282818853153830/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.algaestudy.com/2024/08/elastic-pools-in-azure-and-dtus.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/4569282818853153830'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/4569282818853153830'/><link rel='alternate' type='text/html' href='https://www.algaestudy.com/2024/08/elastic-pools-in-azure-and-dtus.html' title='Elastic Pools in Azure and DTUs?'/><author><name>Algae Education</name><uri>http://www.blogger.com/profile/12443040604753343283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='9' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQEOhe1V67n6e421LF5bUPOMBi3pPbW_IkAEQb_PNAxDB_ZyC6N9QqlIKNR3OIXafo4XbBlB3aO8i9w0cAuuNfUec1DD-skkLSiuvwvIHjkLjkGXkwssfCNrkK0GUkmJc/s220/Algae3.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEgI6hjNOVgy_MAK83JfwxuObYYNtM7LPuPqzC0B2gUMLxDjJcjEKjidld2HVopG-QcEE2OVa3tceWAgfQIN_Ysl8Ubq-04NLYCOB15WtwihB6UjOPz9Jlqshu2coTRriB0CAfwD3AF4FUnb18IiiIpHMrJy4NZs9TYPpn1hPNUrI5ZLvRWvwKgwF9mWr0w=s72-w400-h136-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8305675988893866325.post-8806640823191579515</id><published>2024-08-04T08:08:00.000-07:00</published><updated>2024-08-04T08:08:25.335-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Azure"/><category scheme="http://www.blogger.com/atom/ns#" term="AzureDBA"/><category scheme="http://www.blogger.com/atom/ns#" term="Cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Azure"/><title type='text'>Methods of hosting SQL Server databases within the Azure ecosystem.</title><content type='html'>&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;h1 style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/h1&gt;&lt;h1 style=&quot;text-align: center;&quot;&gt;Microsoft SQL Server databases&amp;nbsp;&lt;/h1&gt;&lt;h1 style=&quot;text-align: center;&quot;&gt;in Azure ecosystem&lt;/h1&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Microsoft collectively refers to these different options as the Azure SQL service family.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;There are 3 deployment options:&lt;/h2&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Running SQL Server on an Azure virtual machine&lt;/li&gt;&lt;li&gt;The Azure SQL Database service,&lt;/li&gt;&lt;li&gt;The Azure SQL Managed Instance service.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjBqY1SiTgf4-hluyUHL8U6h3V1YpPFe14XN7ag1PM0oiBbGmHiEDmSfdjeU4bdo4rZJsNvj9D9uEn_BMhv0etiw-EUQHACanSiy8eQ0KtD087RQ8-KhBKl56CVw5se6esHYUw0YV28idBEZ6QlS-DrZFLLEZH8nnwvWEU3maZhNvgXCBJjUWjZPkH1CCw&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;482&quot; data-original-width=&quot;1345&quot; height=&quot;115&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjBqY1SiTgf4-hluyUHL8U6h3V1YpPFe14XN7ag1PM0oiBbGmHiEDmSfdjeU4bdo4rZJsNvj9D9uEn_BMhv0etiw-EUQHACanSiy8eQ0KtD087RQ8-KhBKl56CVw5se6esHYUw0YV28idBEZ6QlS-DrZFLLEZH8nnwvWEU3maZhNvgXCBJjUWjZPkH1CCw&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;1. Running SQL Server on a virtual machine&amp;nbsp;&lt;/h3&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;It provides 100% compatibility with any version of SQL Server that you might be using on-prem, which extends to the usual options for interacting with the server&#39;s operating system.&lt;/li&gt;&lt;li&gt;This is an infrastructure-as-a-service offering.&lt;/li&gt;&lt;li&gt;While administrators have full control of the operating system and the services that they choose to install,it also means they&#39;re responsible for maintaining and securing that operating system, as well as optimizing performance for their application.&lt;/li&gt;&lt;li&gt;Deploying SQL Server on infrastructure-as-a-service provides increased control at the cost of increased management.&amp;nbsp;&lt;/li&gt;&lt;li&gt;Azure has responsibility for managing, maintaining, and securing the underlying virtual machine and virtual network services, what the customer does with those services is entirely their responsibility to manage.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhyydH5Jzo_r_MyymwSBKdQzhjLHqKGwjzB3JHg8QTdbecQ3zhrGBfurKYS5omn0aXBpWdhShsGODJn5pjide9niQzH2080mLxykQX36NFMuT1cnjIek5eNVB0dAdPv23D_VKycZyof8D7zAuLv4_7-4OZtrrCPzqAq7s7PbIRZTMDlsPU_pSzh_ujA1CA&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;605&quot; data-original-width=&quot;1319&quot; height=&quot;147&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhyydH5Jzo_r_MyymwSBKdQzhjLHqKGwjzB3JHg8QTdbecQ3zhrGBfurKYS5omn0aXBpWdhShsGODJn5pjide9niQzH2080mLxykQX36NFMuT1cnjIek5eNVB0dAdPv23D_VKycZyof8D7zAuLv4_7-4OZtrrCPzqAq7s7PbIRZTMDlsPU_pSzh_ujA1CA&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;2. Azure SQL Database service.&lt;/h3&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Azure SQL Database is a platform-as-a-service offering.&lt;/li&gt;&lt;li&gt;Azure handles more of the boring server stuff, allowing us to focus on the database and what we want to do with it.&amp;nbsp;&lt;/li&gt;&lt;li&gt;We can get an Azure SQL database provisioned with minimal server-level configuration. T&lt;/li&gt;&lt;li&gt;There&#39;s is still a logical server and it is important.&lt;/li&gt;&lt;li&gt;Setting up Azure SQL databases and servers is extremely fast and simple.&lt;/li&gt;&lt;li&gt;Unlike databases and traditional SQL Server installations, hardware resources like CPU, memory, and disk performance aren&#39;t a server-level factor.&lt;/li&gt;&lt;li&gt;Configuration is applied directly to each Azure SQL database and is easily reconfigurable if the performance needs of your database change.&lt;/li&gt;&lt;li&gt;Optionally, databases with varying resource needs may be organized into pools, where collective pool-level resources are allocated to pool member databases as needed.&amp;nbsp;&lt;/li&gt;&lt;li&gt;Azure SQL platform-as-a-service options reduces management overhead and increases operational flexibility by letting go of lower-level control, your time is free to focus on the aspects of your deployment that are more pertinent to your organization.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjetFTpq1uIJrIQ9Z-4w3Jl786p7qNK6zrjzEeJIJhIIQfqFZ5ohoQpjhC7pghW_kNqN0YvTqErdNgbsJW247_Yhx52IvwuBYol1b6YykxrUDVxGUJAQsyqZGcSiqlgIcKjMI6TRW2maLWJVMD-bP-E2MZro_sw5NlbRTrQA39xqPK9oDmN6xu7qEz0HaA&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;623&quot; data-original-width=&quot;1307&quot; height=&quot;153&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjetFTpq1uIJrIQ9Z-4w3Jl786p7qNK6zrjzEeJIJhIIQfqFZ5ohoQpjhC7pghW_kNqN0YvTqErdNgbsJW247_Yhx52IvwuBYol1b6YykxrUDVxGUJAQsyqZGcSiqlgIcKjMI6TRW2maLWJVMD-bP-E2MZro_sw5NlbRTrQA39xqPK9oDmN6xu7qEz0HaA&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;3. Azure SQL Managed Instance service.&lt;/h3&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Managed instances are intended to be nearly 100% identical to an on-prem SQL Server running the current enterprise edition.&lt;/li&gt;&lt;li&gt;This offering provides DBAs full control over an SQL Server instance, not just a single database.&amp;nbsp;&lt;/li&gt;&lt;li&gt;Managed instances are a platform-as-a-service offering,&lt;/li&gt;&lt;li&gt;The customers have no visibility or access to the underlying operating system.&amp;nbsp;&lt;/li&gt;&lt;li&gt;I don&#39;t have to spend any time taking care of that operating system.&amp;nbsp;&lt;/li&gt;&lt;li&gt;Like a virtual machine, managed instances must be integrated into the customer&#39;s virtual network infrastructure.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjlFXcztns5hMSh4v1cXQ3D697iTSLIdbbpaiD1KHdPT0xmEtCC5epb1l3cxKp4jhVc1WRgihfpLdTezqaUrc16D_ngmOpaDdB6a4afpeL1Q7A-rmjjj_D5K_QEqWvgynHFtyaQ9Y4nrwdSYwej_x34WA6WcYOa-e021B83d9MQk5gZkzA2aQO6nXZuV5s&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;662&quot; data-original-width=&quot;1343&quot; height=&quot;158&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjlFXcztns5hMSh4v1cXQ3D697iTSLIdbbpaiD1KHdPT0xmEtCC5epb1l3cxKp4jhVc1WRgihfpLdTezqaUrc16D_ngmOpaDdB6a4afpeL1Q7A-rmjjj_D5K_QEqWvgynHFtyaQ9Y4nrwdSYwej_x34WA6WcYOa-e021B83d9MQk5gZkzA2aQO6nXZuV5s&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;SQL database solutions in Azure that are not based on Microsoft SQL. While you can always install what you like on a virtual machine, Azure does provide platform-as-a-service offerings for popular open source relational databases, Azure Database for MariaDB, for MySQL, and for PostgreSQL.&lt;/h4&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEghcwdWuMmKHGy3YdNedjjqQibbRmeZB2jUL8kRKU3E79lS90gBlCXtmjUFrJ2kHjVeH1ymmb-BSf7r2jeEKHmkanEdVvYqGn4aXXUcgj_yPuv2QATRNV-leR36OY6zovOFz91F8fK8SODXZ03LS30sJafIJ_D4XxyCySXhYNAwgEsgvzfEq4WoGjn-NLU&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;482&quot; data-original-width=&quot;1294&quot; height=&quot;119&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEghcwdWuMmKHGy3YdNedjjqQibbRmeZB2jUL8kRKU3E79lS90gBlCXtmjUFrJ2kHjVeH1ymmb-BSf7r2jeEKHmkanEdVvYqGn4aXXUcgj_yPuv2QATRNV-leR36OY6zovOFz91F8fK8SODXZ03LS30sJafIJ_D4XxyCySXhYNAwgEsgvzfEq4WoGjn-NLU&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Reference:&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://learn.microsoft.com/en-us/azure/azure-sql/azure-sql-iaas-vs-paas-what-is-overview?view=azuresql&quot;&gt;What is Azure SQL? - Azure SQL | Microsoft Learn&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://learn.microsoft.com/en-us/azure/azure-sql/?view=azuresql&quot;&gt;Azure SQL documentation - Azure SQL | Microsoft Learn&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.algaestudy.com/feeds/8806640823191579515/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.algaestudy.com/2024/08/methods-of-hosting-sql-server-databases.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/8806640823191579515'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/8806640823191579515'/><link rel='alternate' type='text/html' href='https://www.algaestudy.com/2024/08/methods-of-hosting-sql-server-databases.html' title='Methods of hosting SQL Server databases within the Azure ecosystem.'/><author><name>Algae Education</name><uri>http://www.blogger.com/profile/12443040604753343283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='9' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQEOhe1V67n6e421LF5bUPOMBi3pPbW_IkAEQb_PNAxDB_ZyC6N9QqlIKNR3OIXafo4XbBlB3aO8i9w0cAuuNfUec1DD-skkLSiuvwvIHjkLjkGXkwssfCNrkK0GUkmJc/s220/Algae3.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEjBqY1SiTgf4-hluyUHL8U6h3V1YpPFe14XN7ag1PM0oiBbGmHiEDmSfdjeU4bdo4rZJsNvj9D9uEn_BMhv0etiw-EUQHACanSiy8eQ0KtD087RQ8-KhBKl56CVw5se6esHYUw0YV28idBEZ6QlS-DrZFLLEZH8nnwvWEU3maZhNvgXCBJjUWjZPkH1CCw=s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8305675988893866325.post-8225655021010606147</id><published>2024-08-04T07:57:00.000-07:00</published><updated>2024-08-04T07:57:48.049-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Azure"/><category scheme="http://www.blogger.com/atom/ns#" term="AzureDBA"/><category scheme="http://www.blogger.com/atom/ns#" term="Cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="DTU"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Azure"/><title type='text'>Deeper Look At the Azure Database Transaction Unit Purchasing Model</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;h1 style=&quot;text-align: left;&quot;&gt;Database Transaction Unit Purchasing Model&lt;/h1&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;What is DTU?&lt;/h2&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Database transaction units are an Azure proprietary measure of available resources.&lt;/li&gt;&lt;li&gt;This purchasing model may be used by single databases and elastic pools.&lt;/li&gt;&lt;li&gt;A DTU is an abstraction of representative OLTP database performance encompassing CPU, memory, disk reads, and disk writes in a single unit of measure.&lt;/li&gt;&lt;li&gt;Microsoft developed their own proprietary benchmark testing of what they have deemed typical OLTP database activity to define the typical performance levels of those 4 performance areas (CPU, memory, disk reads, and disk writes).&lt;/li&gt;&lt;li&gt;DTU is often illustrated using a graph that contains a dimension for each of these performance areas.&lt;/li&gt;&lt;li&gt;The typical values determined by Microsoft effectively create a performance envelope on the graph, implying that a DTU is capable of providing that much oomph for a particular performance area, but no more.&amp;nbsp;&lt;/li&gt;&lt;li&gt;DTU is intended to be an abstraction of overall performance, a simplification.&lt;/li&gt;&lt;li&gt;What we do need to understand regarding DTUs is that the DTU values are a proportional measure of available resource power.&lt;/li&gt;&lt;li&gt;Example, if we compare to a database that was allocated 10 DTUs with a database that had been allocated 3000 DTUs, a 3000 DTU database is 300 times as powerful as the 10 DTU database.&lt;/li&gt;&lt;li&gt;There&#39;s no way to allocate only additional memory or only improve read IOPS to a database using the DTU purchasing model.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;What happens if you make your database work really hard?&amp;nbsp;&lt;/h3&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Azure uses resource governance to constrain performance within the DTU envelope.&amp;nbsp;&lt;/li&gt;&lt;li&gt;Database workloads will be throttled in order to keep them within the performance envelope for the selected DTU class.&amp;nbsp;&lt;/li&gt;&lt;li&gt;It&#39;s very easy to change the DTUs allocated to a database and can be done with very minimal service downtime, assuming you even notice.&lt;/li&gt;&lt;li&gt;So if you&#39;ve decided that the lack of hardware resources is the cause of your database&#39;s problems, you can simply change to a larger DTU class to increase your performance limits.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;What&#39;s a DTU class?&lt;/h3&gt;&lt;p&gt;DTU classes are how Azure identifies the available selections for your Azure SQL resources when you are configuring them to use the DTU purchasing model.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjXEgj_GGTF10ejCTKQngZREHfzeyE94GUR5mnI-9nOr8s9oTFlelwVcdrGkfubkM8FJt0nFVGLJCyDwN1g1zvNk6N1wuRmcoJF0T9C1ZwBpHIgbYAB9Y5Dob47sj_pi4zAtZ2ETzc6ZMgIoAskF-V2AOurhSfV6674m8xioDY8LdeymVgsBTMxlicI_eM&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;367&quot; data-original-width=&quot;637&quot; height=&quot;184&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjXEgj_GGTF10ejCTKQngZREHfzeyE94GUR5mnI-9nOr8s9oTFlelwVcdrGkfubkM8FJt0nFVGLJCyDwN1g1zvNk6N1wuRmcoJF0T9C1ZwBpHIgbYAB9Y5Dob47sj_pi4zAtZ2ETzc6ZMgIoAskF-V2AOurhSfV6674m8xioDY8LdeymVgsBTMxlicI_eM&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Selection of DTU values are limited to predefined classes within a service tier. Each number on the slider line represents a valid class selection, and each class can also be identified by a class code as well. You cannot select a DTU value outside of these classes. So while you might have decided that 300 DTU is just perfect for your database, here the only selectable classes are either 200 or 400 DTUs.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Basic service tier:&lt;/h3&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;It&#39;s only available with the DTU model.&lt;/li&gt;&lt;li&gt;Databases using the Basic service tier are fixed at 5 DTUs, have a maximum database size of 2 gigabytes, and a maximum point-in-time retention of 7 days.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiFBqy1vXeUbW6rDNwPSkzKis7lg5gndYL5GUVtrPVmXtTgEVUHLQnP81Qiu1vT4uZE8FubYe7YTVwVejV88OrIU7IOqvcRL-bi7WaDTQSFrRzOJzTw_qiwpddI_V0r8qQ8j7d_gRIWIem5NhO46m5U98ImBxpDhDoSvrWiobK62IK_4UK7a1pu5ZhrQ-g&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;479&quot; data-original-width=&quot;754&quot; height=&quot;203&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiFBqy1vXeUbW6rDNwPSkzKis7lg5gndYL5GUVtrPVmXtTgEVUHLQnP81Qiu1vT4uZE8FubYe7YTVwVejV88OrIU7IOqvcRL-bi7WaDTQSFrRzOJzTw_qiwpddI_V0r8qQ8j7d_gRIWIem5NhO46m5U98ImBxpDhDoSvrWiobK62IK_4UK7a1pu5ZhrQ-g=w502-h203&quot; width=&quot;502&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;The Standard service tier:&lt;/h3&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;It is the default service tier for the DTU purchasing model&lt;/li&gt;&lt;li&gt;Its supporting options ranging from 10 to 3000 DTUs, and supporting databases from 100 megabytes to 1 terabyte in size, again, depending on the selected DTU class.&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjDR8wAKNptYGvICahKlf9LcbrgUUcKGhmOHzJJsQ_aqBLCloH1lGzSSSK4CZ7wHgquhpnLnoQ9-rB5HckxJyn8oyprmZfFe_VObvMe29kpUB5DVM2jsDJW0taq813LPRIzU1g0nsmFOL88DbocrS5ZPgGU4lW0hYtNWyV51NPuQhuuq2dLXH_htt5t98k&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;211&quot; data-original-width=&quot;562&quot; height=&quot;120&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjDR8wAKNptYGvICahKlf9LcbrgUUcKGhmOHzJJsQ_aqBLCloH1lGzSSSK4CZ7wHgquhpnLnoQ9-rB5HckxJyn8oyprmZfFe_VObvMe29kpUB5DVM2jsDJW0taq813LPRIzU1g0nsmFOL88DbocrS5ZPgGU4lW0hYtNWyV51NPuQhuuq2dLXH_htt5t98k&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;The Premium service tier:&lt;/h3&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;It supports from 125 to 4,000 DTUs, databases up to 4 terabytes in size, as well as additional features to enhance the availability of your databases.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhJELoaajIcJkV-CYS9dwcDrs6jNue4AGVHGqSk3AWTpfR43WymwHAJ_dFD5YvmvH4m1v3JEXI6WsJqODHZr4XxfkXSgX6iqBlry2CpE8lCDP-xbJo4Ff38k22snGmHpODqLm4sUc51Yp05Iq-H2gH22F62CvniUijuSyKtBxPxQIazn37KYaae8KUszN0&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;205&quot; data-original-width=&quot;479&quot; height=&quot;137&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhJELoaajIcJkV-CYS9dwcDrs6jNue4AGVHGqSk3AWTpfR43WymwHAJ_dFD5YvmvH4m1v3JEXI6WsJqODHZr4XxfkXSgX6iqBlry2CpE8lCDP-xbJo4Ff38k22snGmHpODqLm4sUc51Yp05Iq-H2gH22F62CvniUijuSyKtBxPxQIazn37KYaae8KUszN0&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Classes of Standard&lt;/h4&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;The lowest 3 classes of Standard (S0, S1, and S2) share some limitations with the Basic service tier.&lt;/li&gt;&lt;li&gt;Databases using these classes use less than a single vCore on the supporting hardware.&amp;nbsp;&lt;/li&gt;&lt;li&gt;That means behind the scenes, they have to share a virtual CPU core with other databases.&lt;/li&gt;&lt;li&gt;Data in these classes is stored using Standard page blobs in Azure storage, which means they&#39;re stored on old-school, spinning-platter hard disk drives.&lt;/li&gt;&lt;li&gt;The higher standard DTU classes use Premium storage,which uses solid state drives, giving better I/O performance.&amp;nbsp;&lt;/li&gt;&lt;li&gt;None of these service tier classes support creating columnstore indexes.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiCjhRGr_Gmmv6ZACeWGvKSY3P5-iW-sHaDf0pic8HoOIpNoR23yio7lfnR9Cu2-QxLUU_M8HLhOAqWDQExoO2qEeJAy8vnlAxYXDnILVpq9aI8MTHWqWs7XuSZd-Az2BBN_WEjc_fqUzixvxAEgbyzWu-SjuxMvFmED6mLQXmRYiFg6imz1HaYQ4frfEQ&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;278&quot; data-original-width=&quot;686&quot; height=&quot;130&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiCjhRGr_Gmmv6ZACeWGvKSY3P5-iW-sHaDf0pic8HoOIpNoR23yio7lfnR9Cu2-QxLUU_M8HLhOAqWDQExoO2qEeJAy8vnlAxYXDnILVpq9aI8MTHWqWs7XuSZd-Az2BBN_WEjc_fqUzixvxAEgbyzWu-SjuxMvFmED6mLQXmRYiFg6imz1HaYQ4frfEQ&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;What&#39;s point-in-time retention?&lt;/h3&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;It&#39;s the amount of time in which you can restore an Azure SQL database to any specific point in time.&lt;/li&gt;&lt;li&gt;PITR cannot be increased while using the Basic service tier.&lt;/li&gt;&lt;li&gt;All long-term retention options are supported out to 10 years but only provide full database restore capability.&lt;/li&gt;&lt;li&gt;DTU service tier are not recommended for production. These are relatively inexpensive and useful for development and testing environments, databases using the workloads.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Reference:&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://learn.microsoft.com/en-us/azure/azure-sql/database/purchasing-models?view=azuresql&quot;&gt;Purchasing models - Azure SQL Database | Microsoft Learn&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://learn.microsoft.com/en-us/azure/azure-sql/database/service-tiers-dtu?view=azuresql&quot;&gt;DTU-based purchasing model - Azure SQL Database | Microsoft Learn&lt;/a&gt;&lt;/p&gt;&lt;h3&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;https://saurabhsinhainblogs.blogspot.com/2024/07/elastic-pools-and-dtus.html&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Elastic Pools and DTUs? How&#39;s that work?&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.algaestudy.com/feeds/8225655021010606147/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.algaestudy.com/2024/08/deeper-look-at-azure-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/8225655021010606147'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/8225655021010606147'/><link rel='alternate' type='text/html' href='https://www.algaestudy.com/2024/08/deeper-look-at-azure-database.html' title='Deeper Look At the Azure Database Transaction Unit Purchasing Model'/><author><name>Algae Education</name><uri>http://www.blogger.com/profile/12443040604753343283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='9' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQEOhe1V67n6e421LF5bUPOMBi3pPbW_IkAEQb_PNAxDB_ZyC6N9QqlIKNR3OIXafo4XbBlB3aO8i9w0cAuuNfUec1DD-skkLSiuvwvIHjkLjkGXkwssfCNrkK0GUkmJc/s220/Algae3.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEjXEgj_GGTF10ejCTKQngZREHfzeyE94GUR5mnI-9nOr8s9oTFlelwVcdrGkfubkM8FJt0nFVGLJCyDwN1g1zvNk6N1wuRmcoJF0T9C1ZwBpHIgbYAB9Y5Dob47sj_pi4zAtZ2ETzc6ZMgIoAskF-V2AOurhSfV6674m8xioDY8LdeymVgsBTMxlicI_eM=s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8305675988893866325.post-1252577909945537904</id><published>2024-06-10T11:59:00.000-07:00</published><updated>2024-06-10T12:00:29.809-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Chetan Das"/><category scheme="http://www.blogger.com/atom/ns#" term="MSSQL"/><category scheme="http://www.blogger.com/atom/ns#" term="MSSQL DBA Scripts"/><category scheme="http://www.blogger.com/atom/ns#" term="SonalSinha"/><title type='text'>SCRIPT TO LIST All TABLES AND FOREGIN KEY RELATIONSHIP WITH OTHER TABLES</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;List All Tables and Their Relationship with other tables via Foreign Key&lt;/b&gt;&lt;/div&gt;&lt;span&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/span&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Script:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;WITH CTE AS (&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; SELECT&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OBJECT_NAME(f.parent_object_id) AS ParentTable,&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; COL_NAME(fc.parent_object_id, fc.parent_column_id) AS ParentColumn,&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OBJECT_NAME (f.referenced_object_id) AS ReferencedTable,&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; COL_NAME(fc.referenced_object_id, fc.referenced_column_id) AS ReferencedColumn,&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; f.name AS ForeignKey&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; FROM&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sys.foreign_keys AS f&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; INNER JOIN&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sys.foreign_key_columns AS fc ON f.object_id = fc.constraint_object_id&lt;/div&gt;&lt;div&gt;)&lt;/div&gt;&lt;div&gt;SELECT&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; t.name AS TableName,&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; ISNULL(C.ParentTable, &#39;Standalone Table&#39;) AS ParentTable,&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; ISNULL(C.ForeignKey, &#39;Standalone Table&#39;) AS ForeignKey&lt;/div&gt;&lt;div&gt;FROM&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; sys.tables AS t&lt;/div&gt;&lt;div&gt;LEFT JOIN&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; CTE AS C ON t.name = C.ReferencedTable&lt;/div&gt;&lt;div&gt;ORDER BY&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; CASE WHEN C.ReferencedTable IS NULL THEN 1 ELSE 0 END,&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; C.ReferencedTable,&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; t.name;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Output will look like below:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhznNwcotqYtoQWduEnCFdpARfm8fon4WwgQI4jeqHxGyJMQwVXcLm2KX4TRmHJMd6dREd25ysnWf_Y00YJw7uTNAo0EsvzGdniBhvSsxg_eZo-WXJGOIW66eZ9VhcQgmJQHTEZx9XDAUdyHjFluBW_0LvbAkTUXvNeiAiIgQkCegBcEua1K4jUkwO1CGM&quot; style=&quot;clear: left; margin-bottom: 1em;&quot;&gt;&lt;img alt=&quot;SQL Server 2022 Script foreign Key relation ship&quot; data-original-height=&quot;156&quot; data-original-width=&quot;523&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhznNwcotqYtoQWduEnCFdpARfm8fon4WwgQI4jeqHxGyJMQwVXcLm2KX4TRmHJMd6dREd25ysnWf_Y00YJw7uTNAo0EsvzGdniBhvSsxg_eZo-WXJGOIW66eZ9VhcQgmJQHTEZx9XDAUdyHjFluBW_0LvbAkTUXvNeiAiIgQkCegBcEua1K4jUkwO1CGM=s16000&quot; title=&quot;chatGPT SQL Server Scripts, algaestudy, tvsmotor algaeservices&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.algaestudy.com/feeds/1252577909945537904/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.algaestudy.com/2024/06/script-to-list-all-tables-and-foregin.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/1252577909945537904'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/1252577909945537904'/><link rel='alternate' type='text/html' href='https://www.algaestudy.com/2024/06/script-to-list-all-tables-and-foregin.html' title='SCRIPT TO LIST All TABLES AND FOREGIN KEY RELATIONSHIP WITH OTHER TABLES'/><author><name>Algae Education</name><uri>http://www.blogger.com/profile/12443040604753343283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='9' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQEOhe1V67n6e421LF5bUPOMBi3pPbW_IkAEQb_PNAxDB_ZyC6N9QqlIKNR3OIXafo4XbBlB3aO8i9w0cAuuNfUec1DD-skkLSiuvwvIHjkLjkGXkwssfCNrkK0GUkmJc/s220/Algae3.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEhznNwcotqYtoQWduEnCFdpARfm8fon4WwgQI4jeqHxGyJMQwVXcLm2KX4TRmHJMd6dREd25ysnWf_Y00YJw7uTNAo0EsvzGdniBhvSsxg_eZo-WXJGOIW66eZ9VhcQgmJQHTEZx9XDAUdyHjFluBW_0LvbAkTUXvNeiAiIgQkCegBcEua1K4jUkwO1CGM=s72-c" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>315, Kishore Bazar, Civil Lines, Bareilly, Uttar Pradesh 243001, India</georss:featurename><georss:point>28.3547005 79.4153317</georss:point><georss:box>26.416052925599661 77.218066075 30.293348074400338 81.612597325</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8305675988893866325.post-3395503774882891068</id><published>2024-02-10T00:44:00.000-08:00</published><updated>2024-02-10T00:44:23.555-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AI-ML"/><category scheme="http://www.blogger.com/atom/ns#" term="Analytics"/><category scheme="http://www.blogger.com/atom/ns#" term="Azure"/><category scheme="http://www.blogger.com/atom/ns#" term="Cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="Databricks"/><category scheme="http://www.blogger.com/atom/ns#" term="pyspark"/><category scheme="http://www.blogger.com/atom/ns#" term="Spark"/><title type='text'>Use Apache Spark in -  Azure Databricks Lab 2</title><content type='html'>&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;h1 style=&quot;text-align: center;&quot;&gt;Use Apache Spark in Azure Databricks&lt;/h1&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;One of the benefits of Spark is support for a wide range of programming languages, including Java, Scala, Python, and SQL; making Spark a very flexible solution for data processing workloads including data cleansing and manipulation, statistical analysis and machine learning, and data analytics and visualization. Azure Databricks is built on Apache Spark and offers a highly scalable solution for data engineering and analysis tasks that involve working with data in files.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Step 1. Setup Azure Databricks Workspace and open notebook&lt;/h3&gt;&lt;p&gt;Steps are available: &lt;a href=&quot;https://saurabhsinhainblogs.blogspot.com/2024/01/azure-databricks-lab-how-to-start-with.html&quot;&gt;https://saurabhsinhainblogs.blogspot.com/2024/01/azure-databricks-lab-how-to-start-with.html&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Connect to Azure Portal&lt;/li&gt;&lt;li&gt;Setup Azure Datbricks&lt;/li&gt;&lt;li&gt;Setup Cluster for Azure Databricks&lt;/li&gt;&lt;li&gt;Open Notebook&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Step 2. Prepare data to consume&lt;/h3&gt;&lt;p&gt;Shell commands can also use to download data files from GitHub into the Databricks file system (DBFS)&lt;/p&gt;&lt;p&gt;Code:&lt;/p&gt;&lt;div style=&quot;background-color: #fafafa; color: #3b3b3b; font-family: Menlo, Monaco, Consolas, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Source Code Pro&amp;quot;, monospace, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; white-space: pre;&quot;&gt;&lt;div&gt;%sh&lt;/div&gt;&lt;div&gt;&amp;nbsp;rm -r /dbfs/spark_lab&lt;/div&gt;&lt;div&gt;&amp;nbsp;mkdir /dbfs/spark_lab&lt;/div&gt;&lt;div&gt;&amp;nbsp;wget -O /dbfs/spark_lab/2019.csv https://raw.githubusercontent.com/MicrosoftLearning/mslearn-databricks/main/data/2019.csv&lt;/div&gt;&lt;div&gt;&amp;nbsp;wget -O /dbfs/spark_lab/2020.csv https://raw.githubusercontent.com/MicrosoftLearning/mslearn-databricks/main/data/2020.csv&lt;/div&gt;&lt;div&gt;&amp;nbsp;wget -O /dbfs/spark_lab/2021.csv https://raw.githubusercontent.com/MicrosoftLearning/mslearn-databricks/main/data/2021.csv&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgZ4o7ONMTFsJUdpK4oNWyECJwka7gYLUA44uRr_cS9TP1PqN-QZfWZTZQ9cf1IP9LnAgu2C8TLkR6jWGqPBDPR6t9kORL--8ew96ak_ZWqqu3-7KxESEu2W-xBLBVUVfa7TEigiXpLAmfiNmW23qlTRe1GX8D0WQzm7Vu-uvjjJOViaKXWZenyOm3krHg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;590&quot; data-original-width=&quot;1045&quot; height=&quot;181&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgZ4o7ONMTFsJUdpK4oNWyECJwka7gYLUA44uRr_cS9TP1PqN-QZfWZTZQ9cf1IP9LnAgu2C8TLkR6jWGqPBDPR6t9kORL--8ew96ak_ZWqqu3-7KxESEu2W-xBLBVUVfa7TEigiXpLAmfiNmW23qlTRe1GX8D0WQzm7Vu-uvjjJOViaKXWZenyOm3krHg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;clear: both; text-align: left;&quot;&gt;Step 3. Load the data frame and view the data&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;Data is loaded and visible here but&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Data doesn&#39;t include the column headers&lt;/li&gt;&lt;li&gt;Information about the data types is missing&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;div style=&quot;background-color: #fafafa; color: #3b3b3b; font-family: Menlo, Monaco, Consolas, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Source Code Pro&amp;quot;, monospace, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; white-space: pre;&quot;&gt;&lt;div&gt;df &lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt; spark.read.&lt;span style=&quot;color: #795e26;&quot;&gt;load&lt;/span&gt;(&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;spark_lab/*.csv&#39;&lt;/span&gt;, &lt;span style=&quot;color: #001080;&quot;&gt;format&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;csv&#39;&lt;/span&gt;) &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #795e26;&quot;&gt;display&lt;/span&gt;(df.&lt;span style=&quot;color: #795e26;&quot;&gt;limit&lt;/span&gt;(&lt;span style=&quot;color: #098658;&quot;&gt;100&lt;/span&gt;))&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgCM5_Oh2CVuts0-7h1Cjz_n94BIY1yE1lvwG82ajmdOR1kToh3MCgeH99Xhv4Wultz8ZfAeDlaIxX7SfiyVFiLJQEiiftYVxXmYg394NKEo9KwbkxAeh6bZirOT2U3F2TVwNf2K-F63WQFHGdM0vMNTy9j8YiJdE3PX_JPkwrYurSpOFG0kkYNjlrvlEA&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;Load the data frame and view the data in Azure Databricks&quot; data-original-height=&quot;386&quot; data-original-width=&quot;803&quot; height=&quot;308&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgCM5_Oh2CVuts0-7h1Cjz_n94BIY1yE1lvwG82ajmdOR1kToh3MCgeH99Xhv4Wultz8ZfAeDlaIxX7SfiyVFiLJQEiiftYVxXmYg394NKEo9KwbkxAeh6bZirOT2U3F2TVwNf2K-F63WQFHGdM0vMNTy9j8YiJdE3PX_JPkwrYurSpOFG0kkYNjlrvlEA=w640-h308&quot; title=&quot;df = spark.read.load(&#39;spark_lab/*.csv&#39;, format=&#39;csv&#39;)&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Step 3.&amp;nbsp;Define a schema for the data frame&lt;/h3&gt;&lt;p&gt;Observe that this time, our below problems are solved&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;The data frame includes column headers&lt;/li&gt;&lt;li&gt;Information about the data types is also available&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Code:&lt;/p&gt;&lt;div style=&quot;background-color: #fafafa; color: #3b3b3b; font-family: Menlo, Monaco, Consolas, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Source Code Pro&amp;quot;, monospace, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;from&lt;/span&gt; pyspark.sql.types &lt;span style=&quot;color: blue;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #687687;&quot;&gt;*&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;from&lt;/span&gt; pyspark.sql.functions &lt;span style=&quot;color: blue;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #687687;&quot;&gt;*&lt;/span&gt;&lt;/div&gt;&lt;div&gt;orderSchema &lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #795e26;&quot;&gt;StructType&lt;/span&gt;([ &lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;StructField&lt;/span&gt;(&lt;span style=&quot;color: #c72e0f;&quot;&gt;&quot;SalesOrderNumber&quot;&lt;/span&gt;, &lt;span style=&quot;color: #795e26;&quot;&gt;StringType&lt;/span&gt;()), &lt;span style=&quot;color: #795e26;&quot;&gt;StructField&lt;/span&gt;(&lt;span style=&quot;color: #c72e0f;&quot;&gt;&quot;SalesOrderLineNumber&quot;&lt;/span&gt;, &lt;span style=&quot;color: #795e26;&quot;&gt;IntegerType&lt;/span&gt;()), &lt;span style=&quot;color: #795e26;&quot;&gt;StructField&lt;/span&gt;(&lt;span style=&quot;color: #c72e0f;&quot;&gt;&quot;OrderDate&quot;&lt;/span&gt;, &lt;span style=&quot;color: #795e26;&quot;&gt;DateType&lt;/span&gt;()),&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;StructField&lt;/span&gt;(&lt;span style=&quot;color: #c72e0f;&quot;&gt;&quot;CustomerName&quot;&lt;/span&gt;, &lt;span style=&quot;color: #795e26;&quot;&gt;StringType&lt;/span&gt;()), &amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;StructField&lt;/span&gt;(&lt;span style=&quot;color: #c72e0f;&quot;&gt;&quot;Email&quot;&lt;/span&gt;, &lt;span style=&quot;color: #795e26;&quot;&gt;StringType&lt;/span&gt;()), &amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;StructField&lt;/span&gt;(&lt;span style=&quot;color: #c72e0f;&quot;&gt;&quot;Item&quot;&lt;/span&gt;, &lt;span style=&quot;color: #795e26;&quot;&gt;StringType&lt;/span&gt;()),&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;StructField&lt;/span&gt;(&lt;span style=&quot;color: #c72e0f;&quot;&gt;&quot;Quantity&quot;&lt;/span&gt;, &lt;span style=&quot;color: #795e26;&quot;&gt;IntegerType&lt;/span&gt;()), &amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;StructField&lt;/span&gt;(&lt;span style=&quot;color: #c72e0f;&quot;&gt;&quot;UnitPrice&quot;&lt;/span&gt;, &lt;span style=&quot;color: #795e26;&quot;&gt;FloatType&lt;/span&gt;()), &lt;span style=&quot;color: #795e26;&quot;&gt;StructField&lt;/span&gt;(&lt;span style=&quot;color: #c72e0f;&quot;&gt;&quot;Tax&quot;&lt;/span&gt;, &lt;span style=&quot;color: #795e26;&quot;&gt;FloatType&lt;/span&gt;()) &amp;nbsp;])&lt;/div&gt;&lt;div&gt;df &lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt; spark.read.&lt;span style=&quot;color: #795e26;&quot;&gt;load&lt;/span&gt;(&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;/spark_lab/*.csv&#39;&lt;/span&gt;, &lt;span style=&quot;color: #001080;&quot;&gt;format&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;csv&#39;&lt;/span&gt;, &lt;span style=&quot;color: #001080;&quot;&gt;schema&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;orderSchema)&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #795e26;&quot;&gt;display&lt;/span&gt;(df.&lt;span style=&quot;color: #795e26;&quot;&gt;limit&lt;/span&gt;(&lt;span style=&quot;color: #098658;&quot;&gt;100&lt;/span&gt;))&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;line-height: 20px;&quot;&gt;df.&lt;span style=&quot;color: #795e26;&quot;&gt;printSchema&lt;/span&gt;()&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhQ3n54EQm3kiJUP05TextybCYPLG5-RyaCx_nMVGzuG4fjnWi_AJIjYcWJ6tay8ymuVXIP_TTemFhRchoYtJbHWJ5yLAocAN5ec1TfiQsm8jQaQVTBIcVF1P8Dk0WTLpoI9LxZG6_2ydq7WsOLfQZeVExDVzwu-bq4yeZWzKMGNVIJ_vs7vAFZiDgWTAI&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;Pyspark define schema&quot; data-original-height=&quot;674&quot; data-original-width=&quot;1117&quot; height=&quot;386&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhQ3n54EQm3kiJUP05TextybCYPLG5-RyaCx_nMVGzuG4fjnWi_AJIjYcWJ6tay8ymuVXIP_TTemFhRchoYtJbHWJ5yLAocAN5ec1TfiQsm8jQaQVTBIcVF1P8Dk0WTLpoI9LxZG6_2ydq7WsOLfQZeVExDVzwu-bq4yeZWzKMGNVIJ_vs7vAFZiDgWTAI=w640-h386&quot; title=&quot;StructType([       StructField(&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgvKiMVziP7mztl90A7-VVu5TL_hGdWwkMtpILU1sNab1RLQH9GJatiHkgqD965I9hNEQMlhgBkCFA_pm6UGzrZKsT3HbDT9trk8xSohaBKsHN9vjm_nMOeefZmjMrylv8Faz5Tkou7Aiq-SJB4LaxTNu2FBFifvGA_QnjIDBApIT_7SIE5CmrlRvqIfIw&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;print datatyping spark databricks&quot; data-original-height=&quot;335&quot; data-original-width=&quot;533&quot; height=&quot;402&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgvKiMVziP7mztl90A7-VVu5TL_hGdWwkMtpILU1sNab1RLQH9GJatiHkgqD965I9hNEQMlhgBkCFA_pm6UGzrZKsT3HbDT9trk8xSohaBKsHN9vjm_nMOeefZmjMrylv8Faz5Tkou7Aiq-SJB4LaxTNu2FBFifvGA_QnjIDBApIT_7SIE5CmrlRvqIfIw=w640-h402&quot; title=&quot;df.printSchema&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Step 4.&amp;nbsp;Filter a data frame&lt;/h3&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Filter the columns of the sales orders data frame to include only the customer name and email address.&lt;/li&gt;&lt;ul&gt;&lt;li&gt;When you perform an operation on a data frame, the result is a new data frame (in this case, a new customer data frame is created by selecting a specific subset of columns from the df data frame)&lt;/li&gt;&lt;li&gt;The dataframe[&#39;Field1&#39;, &#39;Field2&#39;, ...] syntax is a shorthand way of defining a subset of column. You can also use select method, so the first line of the code above could be written as customers = df.select(&quot;CustomerName&quot;, &quot;Email&quot;)&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Count the total number of order records&lt;/li&gt;&lt;li&gt;Count the number of distinct customers&lt;/li&gt;&lt;li&gt;Display the distinct customers&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Dataframes provide functions such as count and distinct that can be used to summarize and filter the data they contain.&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;/ul&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;/ul&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;/ul&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;/ul&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;/ul&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Code:&amp;nbsp;&lt;/p&gt;&lt;div style=&quot;background-color: #fafafa; color: #3b3b3b; font-family: Menlo, Monaco, Consolas, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Source Code Pro&amp;quot;, monospace, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; white-space: pre;&quot;&gt;&lt;div&gt;customers &lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt; df[&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;CustomerName&#39;&lt;/span&gt;, &lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;Email&#39;&lt;/span&gt;]&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #795e26;&quot;&gt;print&lt;/span&gt;(customers.&lt;span style=&quot;color: #795e26;&quot;&gt;count&lt;/span&gt;())&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #795e26;&quot;&gt;print&lt;/span&gt;(customers.&lt;span style=&quot;color: #795e26;&quot;&gt;distinct&lt;/span&gt;().&lt;span style=&quot;color: #795e26;&quot;&gt;count&lt;/span&gt;())&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #795e26;&quot;&gt;display&lt;/span&gt;(customers.&lt;span style=&quot;color: #795e26;&quot;&gt;distinct&lt;/span&gt;())&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEg_dfgdeZgj3OFE503lu_foJCuLthz7Pu_-E6zN4khy6F7WIVIwhI7Sx9xmjzLmNA70Ia2ITkG6dMf1e_50HhZl_lSMkiUlDIbSpROpCG_-aDkvsyx1ETSOLTdM9eyT6wRiI5wWq_aNm2PILzDYNMIiMutOEpgZnC8Qokc6zs-rx3gtyQKFHVX3IUuLsH4&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;Filter a dataframe&quot; data-original-height=&quot;488&quot; data-original-width=&quot;794&quot; height=&quot;394&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEg_dfgdeZgj3OFE503lu_foJCuLthz7Pu_-E6zN4khy6F7WIVIwhI7Sx9xmjzLmNA70Ia2ITkG6dMf1e_50HhZl_lSMkiUlDIbSpROpCG_-aDkvsyx1ETSOLTdM9eyT6wRiI5wWq_aNm2PILzDYNMIiMutOEpgZnC8Qokc6zs-rx3gtyQKFHVX3IUuLsH4=w640-h394&quot; title=&quot;customers = df[&#39;CustomerName&#39;, &#39;Email&#39;] print(customers.count()) print(customers.distinct().count()) display(customers.distinct())&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Let’s apply a filter to include only the customers who have placed an order for a specific product by running the following code&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #fafafa; color: #3b3b3b; font-family: Menlo, Monaco, Consolas, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Source Code Pro&amp;quot;, monospace, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; white-space: pre;&quot;&gt;&lt;div&gt;customers &lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt; df.&lt;span style=&quot;color: #795e26;&quot;&gt;select&lt;/span&gt;(&lt;span style=&quot;color: #c72e0f;&quot;&gt;&quot;CustomerName&quot;&lt;/span&gt;, &lt;span style=&quot;color: #c72e0f;&quot;&gt;&quot;Email&quot;&lt;/span&gt;)&lt;span style=&quot;color: #795e26;&quot;&gt;.where&lt;/span&gt;(df[&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Item&lt;/span&gt;&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;&lt;/span&gt;]==&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Road&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #098658;&quot;&gt;250&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; Red, &lt;/span&gt;&lt;span style=&quot;color: #098658;&quot;&gt;52&lt;/span&gt;&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #795e26;&quot;&gt;print&lt;/span&gt;(customers.&lt;span style=&quot;color: #795e26;&quot;&gt;count&lt;/span&gt;())&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #795e26;&quot;&gt;print&lt;/span&gt;(customers.&lt;span style=&quot;color: #795e26;&quot;&gt;distinct&lt;/span&gt;().&lt;span style=&quot;color: #795e26;&quot;&gt;count&lt;/span&gt;())&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #795e26;&quot;&gt;display&lt;/span&gt;(customers.&lt;span style=&quot;color: #795e26;&quot;&gt;distinct&lt;/span&gt;())&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEi35IO2l82MD5Wckdw2OyTSk1AJdS3tycDtCbUfVV5ioZowWmutMznlbxdZLdYt6j5UCrv5OLdGIO4bL-aygqrtyo4sCKZh-pOUz2f-SjpxK8h0UnYfjrGhsjmrnbNMtHybQMIWffLcK7tT0Uy1P9_ysw14T0dFo723i0BKS_97LVt_XzQXjnvU6tVy2gc&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;Selec and where in pyspark databricks&quot; data-original-height=&quot;470&quot; data-original-width=&quot;974&quot; height=&quot;308&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEi35IO2l82MD5Wckdw2OyTSk1AJdS3tycDtCbUfVV5ioZowWmutMznlbxdZLdYt6j5UCrv5OLdGIO4bL-aygqrtyo4sCKZh-pOUz2f-SjpxK8h0UnYfjrGhsjmrnbNMtHybQMIWffLcK7tT0Uy1P9_ysw14T0dFo723i0BKS_97LVt_XzQXjnvU6tVy2gc=w640-h308&quot; title=&quot;customers = df.select(&amp;quot;CustomerName&amp;quot;, &amp;quot;Email&amp;quot;).where(df[&#39;Item&#39;]==&#39;Road-250 Red, 52&#39;) print(customers.count()) print(customers.distinct().count()) display(customers.distinct())&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;clear: both; text-align: left;&quot;&gt;Step 5.&amp;nbsp;Aggregate and group data in a data frame&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;Show the sum of order quantities grouped by product. The groupBy method groups the rows by Item, and the subsequent sum aggregate function is applied to all of the remaining numeric columns&lt;p&gt;&lt;/p&gt;&lt;p&gt;Code:&lt;/p&gt;&lt;div style=&quot;background-color: #fafafa; color: #3b3b3b; font-family: Menlo, Monaco, Consolas, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Source Code Pro&amp;quot;, monospace, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; white-space: pre;&quot;&gt;&lt;div&gt;productSales &lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt; df.&lt;span style=&quot;color: #795e26;&quot;&gt;select&lt;/span&gt;(&lt;span style=&quot;color: #c72e0f;&quot;&gt;&quot;Item&quot;&lt;/span&gt;, &lt;span style=&quot;color: #c72e0f;&quot;&gt;&quot;Quantity&quot;&lt;/span&gt;).&lt;span style=&quot;color: #795e26;&quot;&gt;groupBy&lt;/span&gt;(&lt;span style=&quot;color: #c72e0f;&quot;&gt;&quot;Item&quot;&lt;/span&gt;).&lt;span style=&quot;color: #795e26;&quot;&gt;sum&lt;/span&gt;()&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #795e26;&quot;&gt;display&lt;/span&gt;(productSales)&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEin8BMDDiOfhb1mqrcopfRnUw0VE12OZP_FfashF_kMjmeTRwr2IErm85joMQQ-75_7RS_CLpNVFm2J1jbNnoi63I_SOBcZXoo0JNi0U3l83tWJtL9ItEhP0jSEjGSvdYSOBbKLLl7Rvy7_R1Lh8Uqjw4E3razsEw_AHPfLL8btn6Ye3iuMg6Valwgsgl0&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;Aggregate databricks pyspark&quot; data-original-height=&quot;344&quot; data-original-width=&quot;800&quot; height=&quot;276&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEin8BMDDiOfhb1mqrcopfRnUw0VE12OZP_FfashF_kMjmeTRwr2IErm85joMQQ-75_7RS_CLpNVFm2J1jbNnoi63I_SOBcZXoo0JNi0U3l83tWJtL9ItEhP0jSEjGSvdYSOBbKLLl7Rvy7_R1Lh8Uqjw4E3razsEw_AHPfLL8btn6Ye3iuMg6Valwgsgl0=w640-h276&quot; title=&quot;productSales = df.select(&amp;quot;Item&amp;quot;, &amp;quot;Quantity&amp;quot;).groupBy(&amp;quot;Item&amp;quot;).sum() display(productSales)&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Show the number of sales orders per year. Note that the select method includes a SQL year function to extract the year component of the OrderDate field, and then an alias method is used to assign a column name to the extracted year value. The data is then grouped by the derived Year column and the count of rows in each group is calculated before finally the orderBy method is used to sort the resulting dataframe.&lt;/p&gt;&lt;p&gt;Code:&lt;/p&gt;&lt;div style=&quot;background-color: #fafafa; color: #3b3b3b; font-family: Menlo, Monaco, Consolas, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Source Code Pro&amp;quot;, monospace, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; white-space: pre;&quot;&gt;&lt;div&gt;yearlySales &lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt; df.&lt;span style=&quot;color: #795e26;&quot;&gt;select&lt;/span&gt;(&lt;span style=&quot;color: #795e26;&quot;&gt;year&lt;/span&gt;(&lt;span style=&quot;color: #c72e0f;&quot;&gt;&quot;OrderDate&quot;&lt;/span&gt;).&lt;span style=&quot;color: #795e26;&quot;&gt;alias&lt;/span&gt;(&lt;span style=&quot;color: #c72e0f;&quot;&gt;&quot;Year&quot;&lt;/span&gt;)).&lt;span style=&quot;color: #795e26;&quot;&gt;groupBy&lt;/span&gt;(&lt;span style=&quot;color: #c72e0f;&quot;&gt;&quot;Year&quot;&lt;/span&gt;).&lt;span style=&quot;color: #795e26;&quot;&gt;count&lt;/span&gt;().&lt;span style=&quot;color: #795e26;&quot;&gt;orderBy&lt;/span&gt;(&lt;span style=&quot;color: #c72e0f;&quot;&gt;&quot;Year&quot;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #795e26;&quot;&gt;display&lt;/span&gt;(yearlySales)&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: right;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjUZ6vRBjA_h1nVzGhjGMBb0TG1jCgrv6WPRy1N15f9GRdQN-Rr4uNIdjPce08YfYfBQFMWIg8zC9ZuB5vw6-Nh_gNmZUJCmJKHMyhYdJgJettEVkqbiDsl-FySB-B7V9Jxa6u5QX27mXfcwd6p0jKOTUlzr4RAIoe8eQx9Omm64-ZOELxBIbjaUmwxq-c&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;databricks pyspark function using sql&quot; data-original-height=&quot;331&quot; data-original-width=&quot;1139&quot; height=&quot;186&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjUZ6vRBjA_h1nVzGhjGMBb0TG1jCgrv6WPRy1N15f9GRdQN-Rr4uNIdjPce08YfYfBQFMWIg8zC9ZuB5vw6-Nh_gNmZUJCmJKHMyhYdJgJettEVkqbiDsl-FySB-B7V9Jxa6u5QX27mXfcwd6p0jKOTUlzr4RAIoe8eQx9Omm64-ZOELxBIbjaUmwxq-c=w640-h186&quot; title=&quot;yearlySales = df.select(year(&amp;quot;OrderDate&amp;quot;).alias(&amp;quot;Year&amp;quot;)).groupBy(&amp;quot;Year&amp;quot;).count().orderBy(&amp;quot;Year&amp;quot;) display(yearlySales)&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Step 6.&amp;nbsp;Query data using Spark SQL&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;The native methods of the data frame object you used previously enable you to query and analyze data quite effectively. However, many data analysts are more comfortable working with SQL syntax.&amp;nbsp;&lt;/li&gt;&lt;li&gt;Spark SQL is a SQL language API in Spark that you can use to run SQL statements, or even persist data in relational tables.&amp;nbsp;&lt;/li&gt;&lt;li&gt;The code you just ran creates a relational view of the data in a data frame, and then uses the spark.sql library to embed Spark SQL syntax within your Python code query the view and return the results as a data frame.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Code:&amp;nbsp;&lt;/p&gt;&lt;div style=&quot;background-color: #fafafa; color: #3b3b3b; font-family: Menlo, Monaco, Consolas, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Source Code Pro&amp;quot;, monospace, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; white-space: pre;&quot;&gt;&lt;div&gt;df.&lt;span style=&quot;color: #795e26;&quot;&gt;createOrReplaceTempView&lt;/span&gt;(&lt;span style=&quot;color: #c72e0f;&quot;&gt;&quot;salesorders&quot;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;spark_df &lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt; spark&lt;span style=&quot;color: #795e26;&quot;&gt;.sql&lt;/span&gt;(&lt;span style=&quot;color: #c72e0f;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; salesorders&lt;/span&gt;&lt;span style=&quot;color: #c72e0f;&quot;&gt;&quot;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #795e26;&quot;&gt;display&lt;/span&gt;(spark_df)&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhK79EBPSN3cOTydzuNXiwHoUBEC50vCEzA9shhgxB7GyNSrlW1PHiw1quneIYlrtaHUzlMKthWPLLkgwZghiv864CB2Qb6y2KXgyiUQSV_xWU-_r2lJVCEQ_d5bmOp5URXFyFtKJDH-dhtXBdcuDQmKALW9mkM6Jioid1tTSSG3ZKXsA_fSckciwu-kNQ&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;SQL API in pyspark pysql, databricks&quot; data-original-height=&quot;373&quot; data-original-width=&quot;709&quot; height=&quot;336&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhK79EBPSN3cOTydzuNXiwHoUBEC50vCEzA9shhgxB7GyNSrlW1PHiw1quneIYlrtaHUzlMKthWPLLkgwZghiv864CB2Qb6y2KXgyiUQSV_xWU-_r2lJVCEQ_d5bmOp5URXFyFtKJDH-dhtXBdcuDQmKALW9mkM6Jioid1tTSSG3ZKXsA_fSckciwu-kNQ=w640-h336&quot; title=&quot;df.createOrReplaceTempView(&amp;quot;salesorders&amp;quot;) spark_df = spark.sql(&amp;quot;SELECT * FROM salesorders&amp;quot;) display(spark_df)&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;Execute SQL code in datbricks&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;The ``%sql` line at the beginning of the cell (called a magic) indicates that the Spark SQL language runtime should be used to run the code in this cell instead of PySpark.&lt;/li&gt;&lt;li&gt;The SQL code references the salesorder view that you created previously.&lt;/li&gt;&lt;li&gt;The output from the SQL query is automatically displayed as the result under the cell.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Code:&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #fafafa; color: #3b3b3b; font-family: Menlo, Monaco, Consolas, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Source Code Pro&amp;quot;, monospace, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; white-space: pre;&quot;&gt;&lt;div&gt;%sql&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; &lt;span style=&quot;color: #795e26;&quot;&gt;YEAR&lt;/span&gt;(OrderDate) &lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt; OrderYear,&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;SUM&lt;/span&gt;((UnitPrice &lt;span style=&quot;color: #687687;&quot;&gt;*&lt;/span&gt; Quantity) &lt;span style=&quot;color: #687687;&quot;&gt;+&lt;/span&gt; Tax) &lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt; GrossRevenue&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; salesorders&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;GROUP BY&lt;/span&gt; &lt;span style=&quot;color: #795e26;&quot;&gt;YEAR&lt;/span&gt;(OrderDate)&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;ORDER BY&lt;/span&gt; OrderYear;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgUE2a8e4A3aRMlqRzu7Fi79uPAJVeud5DUZOumLYn5sfrUGc0FJP0nVEYeu8le_oKMHt6V5AwYyfxxZ1a0hltjBmHLkVYlWb-6_GTJpUXmZrMjefs4oCsLAFWySXuFKpQye9c4XAjmYCsdAPMBLI58vOSX53TlH6s5hBCdzTtm3o1WKT6SaktRPA_qVX4&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;SQL code in Azure AI databricks pyspark&quot; data-original-height=&quot;448&quot; data-original-width=&quot;677&quot; height=&quot;424&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgUE2a8e4A3aRMlqRzu7Fi79uPAJVeud5DUZOumLYn5sfrUGc0FJP0nVEYeu8le_oKMHt6V5AwYyfxxZ1a0hltjBmHLkVYlWb-6_GTJpUXmZrMjefs4oCsLAFWySXuFKpQye9c4XAjmYCsdAPMBLI58vOSX53TlH6s5hBCdzTtm3o1WKT6SaktRPA_qVX4=w640-h424&quot; title=&quot;%sql SELECT YEAR(OrderDate) AS OrderYear,        SUM((UnitPrice * Quantity) + Tax) AS GrossRevenue FROM salesorders GROUP BY YEAR(OrderDate) ORDER BY OrderYear;&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;clear: both; text-align: left;&quot;&gt;Step 7.&amp;nbsp;Visualize data with Spark&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Azure Databricks include support for visualizing data from a data frame or Spark SQL query.&lt;/li&gt;&lt;li&gt;It is not designed for comprehensive charting.&lt;/li&gt;&lt;li&gt;You can use Python graphics libraries like Matplotlib and Seaborn to create charts from data in data frames.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div style=&quot;background-color: #fafafa; color: #3b3b3b; font-family: Menlo, Monaco, Consolas, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Source Code Pro&amp;quot;, monospace, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; white-space: pre;&quot;&gt;&lt;div&gt;%sql &amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; &lt;span style=&quot;color: #687687;&quot;&gt;*&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; salesorders&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;Table of results, select + and then select Visualization to view the visualization editor, and then apply the following options:&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Visualization type: Bar&lt;/li&gt;&lt;li&gt;X Column: Item&lt;/li&gt;&lt;li&gt;Y Column: Add a new column and select Quantity. Apply the Sum aggregation.&lt;/li&gt;&lt;li&gt;Save the visualization and then re-run the code cell to view the resulting chart in the notebook.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEibJJN9g6o9POotQuryFYUQVIFXY8QMX01g8iTv0gYOb8XbUywYxsm6sTQDkOABjnw8sBW9TLmaIeW5Q9oTTc8sww0zq51B60MuKpXZMoPku0e7mGsJeS1fuDXmhtqcJQbCAAK4t8ndpnDXXUFSAdlZ2FbkLK8HBeXvKMdO6zyaxpEevxWragl6otD6J5E&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;pyspark-databricks visualization&quot; data-original-height=&quot;670&quot; data-original-width=&quot;700&quot; height=&quot;612&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEibJJN9g6o9POotQuryFYUQVIFXY8QMX01g8iTv0gYOb8XbUywYxsm6sTQDkOABjnw8sBW9TLmaIeW5Q9oTTc8sww0zq51B60MuKpXZMoPku0e7mGsJeS1fuDXmhtqcJQbCAAK4t8ndpnDXXUFSAdlZ2FbkLK8HBeXvKMdO6zyaxpEevxWragl6otD6J5E=w640-h612&quot; title=&quot;%sql     SELECT * FROM salesorders&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;clear: both; text-align: left;&quot;&gt;Step 8. Use Matplotlib in Databricks&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;Let&#39;s utilize the Python Visualization Library for the same&#39;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div style=&quot;background-color: #fafafa; color: #3b3b3b; font-family: Menlo, Monaco, Consolas, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Source Code Pro&amp;quot;, monospace, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; white-space: pre;&quot;&gt;&lt;div&gt;sqlQuery &lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #c72e0f;&quot;&gt;&quot;SELECT CAST(YEAR(OrderDate) AS CHAR(4)) AS OrderYear, &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;\&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c72e0f;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SUM((UnitPrice * Quantity) + Tax) AS GrossRevenue &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;\&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c72e0f;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FROM salesorders &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;\&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c72e0f;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;GROUP BY CAST(YEAR(OrderDate) AS CHAR(4)) &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;\&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c72e0f;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ORDER BY OrderYear&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;df_spark &lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt; spark&lt;span style=&quot;color: #795e26;&quot;&gt;.sql&lt;/span&gt;(sqlQuery)&lt;/div&gt;&lt;div&gt;df_spark.&lt;span style=&quot;color: #795e26;&quot;&gt;show&lt;/span&gt;()&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjKUWG8RskU0v47dNVlDps1OSYjBD6CJfYezimEBfIvPo3F3sc1U-Xw-kqsETRUC7byGEJYi3dUqMXBDfgqUHe6p8TXqS6kyEtbADhZQjEdJaIPgix8WtAlmrZxgJFjOYtqJkh9DSarTAyrmtu19Ji6IhEZLdWGQRd7VAbmlHqUme42C6BBxcQTObjxs8M&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: left;&quot;&gt;&lt;img alt=&quot;Pyspark and matplotlib&quot; data-original-height=&quot;503&quot; data-original-width=&quot;824&quot; height=&quot;390&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjKUWG8RskU0v47dNVlDps1OSYjBD6CJfYezimEBfIvPo3F3sc1U-Xw-kqsETRUC7byGEJYi3dUqMXBDfgqUHe6p8TXqS6kyEtbADhZQjEdJaIPgix8WtAlmrZxgJFjOYtqJkh9DSarTAyrmtu19Ji6IhEZLdWGQRd7VAbmlHqUme42C6BBxcQTObjxs8M=w640-h390&quot; title=&quot;Let&#39;s utilize the Python Visualization Library for the same&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;Results, which consist of a column chart with the total gross revenue for each year.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;Note the following features of the code used to produce this chart:&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;The matplotlib library requires a Pandas dataframe, so you need to convert the Spark dataframe returned by the Spark SQL query to this format.&lt;/li&gt;&lt;li&gt;At the core of the matplotlib library is the pyplot object. This is the foundation for most plotting functionality.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div style=&quot;background-color: #fafafa; color: #3b3b3b; font-family: Menlo, Monaco, Consolas, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Source Code Pro&amp;quot;, monospace, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;from&lt;/span&gt; matplotlib &lt;span style=&quot;color: blue;&quot;&gt;import&lt;/span&gt; pyplot &lt;span style=&quot;color: blue;&quot;&gt;as&lt;/span&gt; plt&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: green;&quot;&gt;# matplotlib requires a Pandas dataframe, not a Spark one&lt;/span&gt;&lt;/div&gt;&lt;div&gt;df_sales &lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt; df_spark.&lt;span style=&quot;color: #795e26;&quot;&gt;toPandas&lt;/span&gt;()&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: green;&quot;&gt;# Create a bar plot of revenue by year&lt;/span&gt;&lt;/div&gt;&lt;div&gt;plt.&lt;span style=&quot;color: #795e26;&quot;&gt;bar&lt;/span&gt;(&lt;span style=&quot;color: #001080;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;df_sales[&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;OrderYear&#39;&lt;/span&gt;], &lt;span style=&quot;color: #001080;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;df_sales[&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;GrossRevenue&#39;&lt;/span&gt;])&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: green;&quot;&gt;# Display the plot&lt;/span&gt;&lt;/div&gt;&lt;div&gt;plt.&lt;span style=&quot;color: #795e26;&quot;&gt;show&lt;/span&gt;()&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiwvrwY3fADKnQGA-FeasOXTFsjTGrpUFu05wCurZMUNqt6TN3HZ0cFE6Ffa3ynbJwPrsv9W0nlgK72besXVubmaLR6f5DPS200vd0AN9_Y94WVDyp49n4bslDuxB50vqoadfOV9eGTuT21y91M2tJfwT1010rsKQC9_fwZWyC7oCBMxpC8yrcfNDpnzfk&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;matplotlib databricks&quot; data-original-height=&quot;622&quot; data-original-width=&quot;557&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiwvrwY3fADKnQGA-FeasOXTFsjTGrpUFu05wCurZMUNqt6TN3HZ0cFE6Ffa3ynbJwPrsv9W0nlgK72besXVubmaLR6f5DPS200vd0AN9_Y94WVDyp49n4bslDuxB50vqoadfOV9eGTuT21y91M2tJfwT1010rsKQC9_fwZWyC7oCBMxpC8yrcfNDpnzfk=w573-h640&quot; title=&quot;from matplotlib import pyplot as plt # matplotlib requires a Pandas dataframe, not a Spark one df_sales = df_spark.toPandas() # Create a bar plot of revenue by year plt.bar(x=df_sales[&#39;OrderYear&#39;], height=df_sales[&#39;GrossRevenue&#39;]) # Display the plot plt.show()&quot; width=&quot;573&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;Lets Customize the plot&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div style=&quot;background-color: #fafafa; color: #3b3b3b; font-family: Menlo, Monaco, Consolas, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Source Code Pro&amp;quot;, monospace, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: green;&quot;&gt;# Clear the plot area&lt;/span&gt;&lt;/div&gt;&lt;div&gt;plt.&lt;span style=&quot;color: #795e26;&quot;&gt;clf&lt;/span&gt;()&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: green;&quot;&gt;# Create a bar plot of revenue by year&lt;/span&gt;&lt;/div&gt;&lt;div&gt;plt.&lt;span style=&quot;color: #795e26;&quot;&gt;bar&lt;/span&gt;(&lt;span style=&quot;color: #001080;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;df_sales[&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;OrderYear&#39;&lt;/span&gt;], &lt;span style=&quot;color: #001080;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;df_sales[&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;GrossRevenue&#39;&lt;/span&gt;], &lt;span style=&quot;color: #001080;&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;orange&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: green;&quot;&gt;# Customize the chart&lt;/span&gt;&lt;/div&gt;&lt;div&gt;plt.&lt;span style=&quot;color: #795e26;&quot;&gt;title&lt;/span&gt;(&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;Revenue by Year&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;plt.&lt;span style=&quot;color: #795e26;&quot;&gt;xlabel&lt;/span&gt;(&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;Year&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;plt.&lt;span style=&quot;color: #795e26;&quot;&gt;ylabel&lt;/span&gt;(&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;Revenue&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;plt.&lt;span style=&quot;color: #795e26;&quot;&gt;grid&lt;/span&gt;(&lt;span style=&quot;color: #001080;&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;#95a5a6&#39;&lt;/span&gt;, &lt;span style=&quot;color: #001080;&quot;&gt;linestyle&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;--&#39;&lt;/span&gt;, &lt;span style=&quot;color: #001080;&quot;&gt;linewidth&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #098658;&quot;&gt;2&lt;/span&gt;, &lt;span style=&quot;color: #001080;&quot;&gt;axis&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;y&#39;&lt;/span&gt;, &lt;span style=&quot;color: #001080;&quot;&gt;alpha&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #098658;&quot;&gt;0.7&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;plt.&lt;span style=&quot;color: #795e26;&quot;&gt;xticks&lt;/span&gt;(&lt;span style=&quot;color: #001080;&quot;&gt;rotation&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #098658;&quot;&gt;45&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: green;&quot;&gt;# Show the figure&lt;/span&gt;&lt;/div&gt;&lt;div&gt;plt.&lt;span style=&quot;color: #795e26;&quot;&gt;show&lt;/span&gt;()&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEijrLuOyP-3_rmn8AocZGx32_DnPZRhupUqhdAoebpWl9mq9Hyo3osiUZHTqlc1yrLecmsdubdaG23DLHTL-5jpGsZSmR0Cyp0X8eBXd3YulbvmZLKYZ1t-KYbfot3ExfXbMRQZipsqTfcOqtF2Ps7VBCHYhHT36peowzkVauaNhNCsrelhlg5KbGy4Q8Q&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;Customize the subplot in Azure Synapses&quot; data-original-height=&quot;697&quot; data-original-width=&quot;635&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEijrLuOyP-3_rmn8AocZGx32_DnPZRhupUqhdAoebpWl9mq9Hyo3osiUZHTqlc1yrLecmsdubdaG23DLHTL-5jpGsZSmR0Cyp0X8eBXd3YulbvmZLKYZ1t-KYbfot3ExfXbMRQZipsqTfcOqtF2Ps7VBCHYhHT36peowzkVauaNhNCsrelhlg5KbGy4Q8Q=w584-h640&quot; title=&quot;plt.bar(x=df_sales[&#39;OrderYear&#39;], height=df_sales[&#39;GrossRevenue&#39;], color=&#39;orange&#39;) # Customize the chart plt.title(&#39;Revenue by Year&#39;) plt.xlabel(&#39;Year&#39;) plt.ylabel(&#39;Revenue&#39;) plt.grid(color=&#39;#95a5a6&#39;, linestyle=&#39;--&#39;, linewidth=2, axis=&#39;y&#39;, alpha=0.7) plt.xticks(rotation=45)&quot; width=&quot;584&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&amp;nbsp;&lt;/div&gt;The figure was created implicitly for you; but you can create it explicitly.&lt;br /&gt;&lt;br /&gt;Code:&lt;div&gt;&lt;div style=&quot;background-color: #fafafa; color: #3b3b3b; font-family: Menlo, Monaco, Consolas, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Source Code Pro&amp;quot;, monospace, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: green;&quot;&gt;# Clear the plot area&lt;/span&gt;&lt;/div&gt;&lt;div&gt;plt.&lt;span style=&quot;color: #795e26;&quot;&gt;clf&lt;/span&gt;()&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: green;&quot;&gt;# Create a Figure&lt;/span&gt;&lt;/div&gt;&lt;div&gt;fig &lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt; plt.&lt;span style=&quot;color: #795e26;&quot;&gt;figure&lt;/span&gt;(&lt;span style=&quot;color: #001080;&quot;&gt;figsize&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;(&lt;span style=&quot;color: #098658;&quot;&gt;8&lt;/span&gt;,&lt;span style=&quot;color: #098658;&quot;&gt;3&lt;/span&gt;))&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: green;&quot;&gt;# Create a bar plot of revenue by year&lt;/span&gt;&lt;/div&gt;&lt;div&gt;plt.&lt;span style=&quot;color: #795e26;&quot;&gt;bar&lt;/span&gt;(&lt;span style=&quot;color: #001080;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;df_sales[&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;OrderYear&#39;&lt;/span&gt;], &lt;span style=&quot;color: #001080;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;df_sales[&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;GrossRevenue&#39;&lt;/span&gt;], &lt;span style=&quot;color: #001080;&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;orange&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: green;&quot;&gt;# Customize the chart&lt;/span&gt;&lt;/div&gt;&lt;div&gt;plt.&lt;span style=&quot;color: #795e26;&quot;&gt;title&lt;/span&gt;(&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;Revenue by Year&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;plt.&lt;span style=&quot;color: #795e26;&quot;&gt;xlabel&lt;/span&gt;(&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;Year&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;plt.&lt;span style=&quot;color: #795e26;&quot;&gt;ylabel&lt;/span&gt;(&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;Revenue&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;plt.&lt;span style=&quot;color: #795e26;&quot;&gt;grid&lt;/span&gt;(&lt;span style=&quot;color: #001080;&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;#95a5a6&#39;&lt;/span&gt;, &lt;span style=&quot;color: #001080;&quot;&gt;linestyle&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;--&#39;&lt;/span&gt;, &lt;span style=&quot;color: #001080;&quot;&gt;linewidth&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #098658;&quot;&gt;2&lt;/span&gt;, &lt;span style=&quot;color: #001080;&quot;&gt;axis&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;y&#39;&lt;/span&gt;, &lt;span style=&quot;color: #001080;&quot;&gt;alpha&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #098658;&quot;&gt;0.7&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;plt.&lt;span style=&quot;color: #795e26;&quot;&gt;xticks&lt;/span&gt;(&lt;span style=&quot;color: #001080;&quot;&gt;rotation&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #098658;&quot;&gt;45&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: green;&quot;&gt;# Show the figure&lt;/span&gt;&lt;/div&gt;&lt;div&gt;plt.&lt;span style=&quot;color: #795e26;&quot;&gt;show&lt;/span&gt;()&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: right;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgzxNXfAwf4gLpfefviVIXbes7HkqKneCzG34A4c9JgXsJmGqF_C65zrLZ32W1S9znbjaxTZrCwBb1Hs_RsN8R7v8cwskblXgOnCZSX7tMmcrGHSpRgC6nQapQfc09M0nNUtCj2_Q17MmwFFbJKgaJclcfy0zOQ9poUDkBuaEAtYoxZFf9kITfxdH7eR7o&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Implicit and explicit subplots in data bricks&quot; data-original-height=&quot;641&quot; data-original-width=&quot;698&quot; height=&quot;589&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgzxNXfAwf4gLpfefviVIXbes7HkqKneCzG34A4c9JgXsJmGqF_C65zrLZ32W1S9znbjaxTZrCwBb1Hs_RsN8R7v8cwskblXgOnCZSX7tMmcrGHSpRgC6nQapQfc09M0nNUtCj2_Q17MmwFFbJKgaJclcfy0zOQ9poUDkBuaEAtYoxZFf9kITfxdH7eR7o=w640-h589&quot; title=&quot;# Create a Figure fig = plt.figure(figsize=(8,3)) # Create a bar plot of revenue by year plt.bar(x=df_sales[&#39;OrderYear&#39;], height=df_sales[&#39;GrossRevenue&#39;], color=&#39;orange&#39;) # Customize the chart plt.title(&#39;Revenue by Year&#39;) plt.xlabel(&#39;Year&#39;) plt.ylabel(&#39;Revenue&#39;) plt.grid(color=&#39;#95a5a6&#39;, linestyle=&#39;--&#39;, linewidth=2, axis=&#39;y&#39;, alpha=0.7) plt.xticks(rotation=45) # Show the figure&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;A figure can contain multiple subplots, each on its own axis&lt;/p&gt;&lt;p&gt;Code:&lt;/p&gt;&lt;div style=&quot;background-color: #fafafa; color: #3b3b3b; font-family: Menlo, Monaco, Consolas, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Source Code Pro&amp;quot;, monospace, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: green;&quot;&gt;# Clear the plot area&lt;/span&gt;&lt;/div&gt;&lt;div&gt;plt.&lt;span style=&quot;color: #795e26;&quot;&gt;clf&lt;/span&gt;()&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: green;&quot;&gt;# Create a figure for 2 subplots (1 row, 2 columns)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;fig, ax &lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt; plt.&lt;span style=&quot;color: #795e26;&quot;&gt;subplots&lt;/span&gt;(&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;, &lt;span style=&quot;color: #098658;&quot;&gt;2&lt;/span&gt;, &lt;span style=&quot;color: #001080;&quot;&gt;figsize&lt;/span&gt; &lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt; (&lt;span style=&quot;color: #098658;&quot;&gt;10&lt;/span&gt;,&lt;span style=&quot;color: #098658;&quot;&gt;4&lt;/span&gt;))&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: green;&quot;&gt;# Create a bar plot of revenue by year on the first axis&lt;/span&gt;&lt;/div&gt;&lt;div&gt;ax[&lt;span style=&quot;color: #098658;&quot;&gt;0&lt;/span&gt;].&lt;span style=&quot;color: #795e26;&quot;&gt;bar&lt;/span&gt;(&lt;span style=&quot;color: #001080;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;df_sales[&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;OrderYear&#39;&lt;/span&gt;], &lt;span style=&quot;color: #001080;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;df_sales[&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;GrossRevenue&#39;&lt;/span&gt;], &lt;span style=&quot;color: #001080;&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;orange&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;ax[&lt;span style=&quot;color: #098658;&quot;&gt;0&lt;/span&gt;].&lt;span style=&quot;color: #795e26;&quot;&gt;set_title&lt;/span&gt;(&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;Revenue by Year&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: green;&quot;&gt;# Create a pie chart of yearly order counts on the second axis&lt;/span&gt;&lt;/div&gt;&lt;div&gt;yearly_counts &lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt; df_sales[&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;OrderYear&#39;&lt;/span&gt;].&lt;span style=&quot;color: #795e26;&quot;&gt;value_counts&lt;/span&gt;()&lt;/div&gt;&lt;div&gt;ax[&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;].&lt;span style=&quot;color: #795e26;&quot;&gt;pie&lt;/span&gt;(yearly_counts)&lt;/div&gt;&lt;div&gt;ax[&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;].&lt;span style=&quot;color: #795e26;&quot;&gt;set_title&lt;/span&gt;(&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;Orders per Year&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;ax[&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;].&lt;span style=&quot;color: #795e26;&quot;&gt;legend&lt;/span&gt;(yearly_counts.&lt;span style=&quot;color: #795e26;&quot;&gt;keys&lt;/span&gt;().&lt;span style=&quot;color: #795e26;&quot;&gt;tolist&lt;/span&gt;())&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: green;&quot;&gt;# Add a title to the Figure&lt;/span&gt;&lt;/div&gt;&lt;div&gt;fig.&lt;span style=&quot;color: #795e26;&quot;&gt;suptitle&lt;/span&gt;(&lt;span style=&quot;color: #c72e0f;&quot;&gt;&#39;Sales Data&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: green;&quot;&gt;# Show the figure&lt;/span&gt;&lt;/div&gt;&lt;div&gt;plt.&lt;span style=&quot;color: #795e26;&quot;&gt;show&lt;/span&gt;()&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgIpsHzUiDxfYU_h3WzdDVkMDQimvy9mTZcWWGRrtPnMXzlo_VKvh8OgcShSSewGBQTrJOvFKpGe73Y8ZVBhnk7RdYhm7bqPb9NeGqq874Z1xHZ2a2XljIhBR-oM37zSMjo1EpNYtGsUOf64qn4JkSdGXkcVlcmxRqlWgwNunNq3KhNX9NGThygtPXVjWw&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;multiple subplots Azure databricks&quot; data-original-height=&quot;571&quot; data-original-width=&quot;608&quot; height=&quot;600&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgIpsHzUiDxfYU_h3WzdDVkMDQimvy9mTZcWWGRrtPnMXzlo_VKvh8OgcShSSewGBQTrJOvFKpGe73Y8ZVBhnk7RdYhm7bqPb9NeGqq874Z1xHZ2a2XljIhBR-oM37zSMjo1EpNYtGsUOf64qn4JkSdGXkcVlcmxRqlWgwNunNq3KhNX9NGThygtPXVjWw=w640-h600&quot; title=&quot;# Clear the plot area plt.clf() # Create a figure for 2 subplots (1 row, 2 columns) fig, ax = plt.subplots(1, 2, figsize = (10,4)) # Create a bar plot of revenue by year on the first axis ax[0].bar(x=df_sales[&#39;OrderYear&#39;], height=df_sales[&#39;GrossRevenue&#39;], color=&#39;orange&#39;) ax[0].set_title(&#39;Revenue by Year&#39;) # Create a pie chart of yearly order counts on the second axis yearly_counts = df_sales[&#39;OrderYear&#39;].value_counts() ax[1].pie(yearly_counts) ax[1].set_title(&#39;Orders per Year&#39;) ax[1].legend(yearly_counts.keys().tolist()) # Add a title to the Figure fig.suptitle(&#39;Sales Data&#39;) # Show the figure&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Step 9. Use the Seaborn Library&lt;/h3&gt;&lt;p&gt;Using the seaborn library (which is built on matplotlib and abstracts some of its complexity) to create a chart:&lt;/p&gt;&lt;p&gt;Code:&lt;/p&gt;&lt;div style=&quot;background-color: #fafafa; color: #3b3b3b; font-family: Menlo, Monaco, Consolas, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Source Code Pro&amp;quot;, monospace, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;import&lt;/span&gt; seaborn &lt;span style=&quot;color: blue;&quot;&gt;as&lt;/span&gt; sns&lt;/div&gt;&lt;div&gt;plt.&lt;span style=&quot;color: #795e26;&quot;&gt;clf&lt;/span&gt;() &lt;span style=&quot;color: green;&quot;&gt;# Clear the plot area&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: green;&quot;&gt;# Create a bar chart&lt;/span&gt;&lt;/div&gt;&lt;div&gt;ax &lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt; sns.&lt;span style=&quot;color: #795e26;&quot;&gt;barplot&lt;/span&gt;(&lt;span style=&quot;color: #001080;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #c72e0f;&quot;&gt;&quot;OrderYear&quot;&lt;/span&gt;, &lt;span style=&quot;color: #001080;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #c72e0f;&quot;&gt;&quot;GrossRevenue&quot;&lt;/span&gt;, &lt;span style=&quot;color: #001080;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;df_sales)&lt;/div&gt;&lt;div&gt;plt.&lt;span style=&quot;color: #795e26;&quot;&gt;show&lt;/span&gt;()&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhYM5_r5M59JhP-uzTEI599H9h-fKBI9LZzROGwYak5J9-7GNp8URJ4XuPJTxN5cn6SQbtneDfFtkEO9GUCZtLOR0TsKXiDJmUCWzWALQQHWxJvdZ2F0GSngERZs7HExRyV0HPZEtDBG4FfPZJRK5yzayS7Q1prJDI7THdkkJ5wr381jYFtUlhytC6_eEM&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;Seaborn library makes it simpler to create complex plots of statistical data, and enables you to control the visual theme for consistent data visualizations.&quot; data-original-height=&quot;635&quot; data-original-width=&quot;653&quot; height=&quot;622&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhYM5_r5M59JhP-uzTEI599H9h-fKBI9LZzROGwYak5J9-7GNp8URJ4XuPJTxN5cn6SQbtneDfFtkEO9GUCZtLOR0TsKXiDJmUCWzWALQQHWxJvdZ2F0GSngERZs7HExRyV0HPZEtDBG4FfPZJRK5yzayS7Q1prJDI7THdkkJ5wr381jYFtUlhytC6_eEM=w640-h622&quot; title=&quot;import seaborn as sns plt.clf() # Clear the plot area # Create a bar chart ax = sns.barplot(x=&amp;quot;OrderYear&amp;quot;, y=&amp;quot;GrossRevenue&amp;quot;, data=df_sales) plt.show()&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Seaborn library makes it simpler to create complex plots of statistical data, and enables you to control the visual theme for consistent data visualizations.&lt;/p&gt;&lt;p&gt;Code:&lt;/p&gt;&lt;div style=&quot;background-color: #fafafa; color: #3b3b3b; font-family: Menlo, Monaco, Consolas, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Source Code Pro&amp;quot;, monospace, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; white-space: pre;&quot;&gt;&lt;div&gt;plt.&lt;span style=&quot;color: #795e26;&quot;&gt;clf&lt;/span&gt;() &lt;span style=&quot;color: green;&quot;&gt;# Clear the plot area&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: green;&quot;&gt;# Set the visual theme for seaborn&lt;/span&gt;&lt;/div&gt;&lt;div&gt;sns.&lt;span style=&quot;color: #795e26;&quot;&gt;set_theme&lt;/span&gt;(&lt;span style=&quot;color: #001080;&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #c72e0f;&quot;&gt;&quot;whitegrid&quot;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: green;&quot;&gt;# Create a bar chart&lt;/span&gt;&lt;/div&gt;&lt;div&gt;ax &lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt; sns.&lt;span style=&quot;color: #795e26;&quot;&gt;barplot&lt;/span&gt;(&lt;span style=&quot;color: #001080;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #c72e0f;&quot;&gt;&quot;OrderYear&quot;&lt;/span&gt;, &lt;span style=&quot;color: #001080;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #c72e0f;&quot;&gt;&quot;GrossRevenue&quot;&lt;/span&gt;, &lt;span style=&quot;color: #001080;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;df_sales)&lt;/div&gt;&lt;div&gt;plt.&lt;span style=&quot;color: #795e26;&quot;&gt;show&lt;/span&gt;()&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgrEetzj9OrOLz6m1mSW3KMG3WphseFcD0V-BEuiBzVrvpOFDnBrLwWRqI1uKQnVzhc_HFG8UYvl1t79Y7vPlhjig-kfbVBBB5iy9zH3-7EZDEmZKOi_mh4F1crvDYYB_vVSF0ObEsjgL1O2YwJfKdbyWEzy0JG5GYFgPZlwUDK4BTeA9j3CtbfAMCNdQE&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;Azure Synapses and seaborn&quot; data-original-height=&quot;667&quot; data-original-width=&quot;664&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgrEetzj9OrOLz6m1mSW3KMG3WphseFcD0V-BEuiBzVrvpOFDnBrLwWRqI1uKQnVzhc_HFG8UYvl1t79Y7vPlhjig-kfbVBBB5iy9zH3-7EZDEmZKOi_mh4F1crvDYYB_vVSF0ObEsjgL1O2YwJfKdbyWEzy0JG5GYFgPZlwUDK4BTeA9j3CtbfAMCNdQE=w637-h640&quot; title=&quot;plt.clf() # Clear the plot area # Set the visual theme for seaborn sns.set_theme(style=&amp;quot;whitegrid&amp;quot;) # Create a bar chart ax = sns.barplot(x=&amp;quot;OrderYear&amp;quot;, y=&amp;quot;GrossRevenue&amp;quot;, data=df_sales) plt.show()&quot; width=&quot;637&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Like matplotlib. seaborn supports multiple chart types&lt;/p&gt;&lt;p&gt;Code:&lt;/p&gt;&lt;div style=&quot;background-color: #fafafa; color: #3b3b3b; font-family: Menlo, Monaco, Consolas, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Source Code Pro&amp;quot;, monospace, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; white-space: pre;&quot;&gt;&lt;div&gt;plt.&lt;span style=&quot;color: #795e26;&quot;&gt;clf&lt;/span&gt;() &amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;# Clear the plot area&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: green;&quot;&gt;# Create a bar chart&lt;/span&gt;&lt;/div&gt;&lt;div&gt;ax &lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt; sns.&lt;span style=&quot;color: #795e26;&quot;&gt;lineplot&lt;/span&gt;(&lt;span style=&quot;color: #001080;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #c72e0f;&quot;&gt;&quot;OrderYear&quot;&lt;/span&gt;, &lt;span style=&quot;color: #001080;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #c72e0f;&quot;&gt;&quot;GrossRevenue&quot;&lt;/span&gt;, &lt;span style=&quot;color: #001080;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: #687687;&quot;&gt;=&lt;/span&gt;df_sales)&lt;/div&gt;&lt;div&gt;plt.&lt;span style=&quot;color: #795e26;&quot;&gt;show&lt;/span&gt;()&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgSs4UBreH8CiaFDMGe1Fax2jDHZCNkyEfG0tjSZXlhC2mG-N7jWT96Tp-i7W_i62jkuq3qzlXiwRZztglkcS4V1mPu61sig4buDjGHq1iB8m1a-b5BSdSwGg7UJsFDstmmZ6L6LmUJB-u0PhiyYw8ksht-2veveMT5dXCnl4nMaXvdzwZdd92-GyPSrtQ&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;matplotlib, seaborn Azure databricks&quot; data-original-height=&quot;634&quot; data-original-width=&quot;659&quot; height=&quot;617&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgSs4UBreH8CiaFDMGe1Fax2jDHZCNkyEfG0tjSZXlhC2mG-N7jWT96Tp-i7W_i62jkuq3qzlXiwRZztglkcS4V1mPu61sig4buDjGHq1iB8m1a-b5BSdSwGg7UJsFDstmmZ6L6LmUJB-u0PhiyYw8ksht-2veveMT5dXCnl4nMaXvdzwZdd92-GyPSrtQ=w640-h617&quot; title=&quot;plt.clf()  # Clear the plot area # Create a bar chart ax = sns.lineplot(x=&amp;quot;OrderYear&amp;quot;, y=&amp;quot;GrossRevenue&amp;quot;, data=df_sales) plt.show()&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Step Last.&amp;nbsp; Cleanup Resources&lt;/h3&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;In the Azure Databricks portal, on the Compute page, select your cluster and select ■ Terminate to shut it down.&lt;/li&gt;&lt;li&gt;If you’ve finished exploring Azure Databricks, you can delete the resources you’ve created to avoid unnecessary Azure costs and free up capacity in your subscription.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.algaestudy.com/feeds/3395503774882891068/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.algaestudy.com/2024/02/use-apache-spark-in-azure-databricks.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/3395503774882891068'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/3395503774882891068'/><link rel='alternate' type='text/html' href='https://www.algaestudy.com/2024/02/use-apache-spark-in-azure-databricks.html' title='Use Apache Spark in -  Azure Databricks Lab 2'/><author><name>Algae Education</name><uri>http://www.blogger.com/profile/12443040604753343283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='9' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQEOhe1V67n6e421LF5bUPOMBi3pPbW_IkAEQb_PNAxDB_ZyC6N9QqlIKNR3OIXafo4XbBlB3aO8i9w0cAuuNfUec1DD-skkLSiuvwvIHjkLjkGXkwssfCNrkK0GUkmJc/s220/Algae3.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEgZ4o7ONMTFsJUdpK4oNWyECJwka7gYLUA44uRr_cS9TP1PqN-QZfWZTZQ9cf1IP9LnAgu2C8TLkR6jWGqPBDPR6t9kORL--8ew96ak_ZWqqu3-7KxESEu2W-xBLBVUVfa7TEigiXpLAmfiNmW23qlTRe1GX8D0WQzm7Vu-uvjjJOViaKXWZenyOm3krHg=s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8305675988893866325.post-1183949435853696596</id><published>2024-02-10T00:42:00.000-08:00</published><updated>2024-02-10T00:42:35.208-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AI-ML"/><category scheme="http://www.blogger.com/atom/ns#" term="Analytics"/><category scheme="http://www.blogger.com/atom/ns#" term="Analytics Lab"/><category scheme="http://www.blogger.com/atom/ns#" term="Azure"/><category scheme="http://www.blogger.com/atom/ns#" term="Cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="Databricks"/><category scheme="http://www.blogger.com/atom/ns#" term="Demo"/><title type='text'>Explore Azure Databricks -  Lab 1</title><content type='html'>&lt;span&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;h1 style=&quot;text-align: center;&quot;&gt;Explore Azure Databricks&lt;/h1&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Step 1.&amp;nbsp; Setup Azure Databricks Workspace and open notebook&lt;/h3&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Steps are available:&amp;nbsp;&lt;a href=&quot;https://saurabhsinhainblogs.blogspot.com/2024/01/azure-databricks-lab-how-to-start-with.html&quot;&gt;https://saurabhsinhainblogs.blogspot.com/2024/01/azure-databricks-lab-how-to-start-with.html&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Connect to Azure Portal&lt;/li&gt;&lt;li&gt;Setup Azure Datbricks&lt;/li&gt;&lt;li&gt;Setup Cluster for Azure Databricks&lt;/li&gt;&lt;li&gt;Open Notebook&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Step 2. Prepare Data to consume&lt;/h3&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Go to the URL:&amp;nbsp;https://raw.githubusercontent.com/MicrosoftLearning/mslearn-databricks/main/data/products.csv&lt;/li&gt;&lt;li&gt;Download data in CSV file, I named the file product.csv&lt;/li&gt;&lt;li&gt;On the File menu, select Upload data to DBFS.&lt;/li&gt;&lt;li&gt;In the Upload Data dialog box, note the DBFS Target Directory to where the file will be uploaded.&amp;nbsp;&lt;/li&gt;&lt;li&gt;Then select the Files area, and upload the products.csv file you downloaded to your computer.&amp;nbsp;&lt;/li&gt;&lt;li&gt;When the file has been uploaded, select Next&lt;/li&gt;&lt;li&gt;In the Access files from notebooks pane, select the sample PySpark code and copy it to the clipboard.&amp;nbsp;&lt;/li&gt;&lt;li&gt;You will use it to load the data from the file into a data frame. Then select Done.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEg8w-nKSGsiZ5jFpKm0tWvZAaUijOy9JoqFpC_xRmINMATaK1dzFE5hZTQ420TjOCSsBk63baNHkcPvjQPw8n108iGj1lDd0TvATNoUIXoHbWVlX4BEFU2MZlDEcRwi_S2aY9_4ppODizlJ7IM79ZBG44s1U3g-gWxTq-Cpz-fNJyzMjgVVqMMP9IvceLg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;In the Access files from notebooks pane, select the sample PySpark code and copy it to the clipboard.&quot; data-original-height=&quot;602&quot; data-original-width=&quot;975&quot; height=&quot;397&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEg8w-nKSGsiZ5jFpKm0tWvZAaUijOy9JoqFpC_xRmINMATaK1dzFE5hZTQ420TjOCSsBk63baNHkcPvjQPw8n108iGj1lDd0TvATNoUIXoHbWVlX4BEFU2MZlDEcRwi_S2aY9_4ppODizlJ7IM79ZBG44s1U3g-gWxTq-Cpz-fNJyzMjgVVqMMP9IvceLg=w640-h397&quot; title=&quot;In the Upload Data dialog box, note the DBFS Target Directory to where the file will be uploaded.&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;clear: both; text-align: left;&quot;&gt;Step 3. Execute code in Notebook&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;In the notebook, in the empty code cell, paste the code you copied; which should look similar to this:&lt;/li&gt;&lt;li&gt;Use the ▸ Run Cell menu option at the top-right of the cell to run it, starting and attaching the cluster if prompted.&lt;/li&gt;&lt;li&gt;Wait for the Spark job run by the code to complete. The code has created a data frame object named df1 from the data in the file you uploaded.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: rgb(250, 250, 250); line-height: 15pt; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #3b3b3b; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt;df1 &lt;/span&gt;&lt;span style=&quot;color: #687687; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #3b3b3b; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt; spark.read.&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt;format&lt;/span&gt;&lt;span style=&quot;color: #3b3b3b; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c72e0f; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt;&quot;csv&quot;&lt;/span&gt;&lt;span style=&quot;color: #3b3b3b; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt;).&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt;option&lt;/span&gt;&lt;span style=&quot;color: #3b3b3b; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c72e0f; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt;&quot;header&quot;&lt;/span&gt;&lt;span style=&quot;color: #3b3b3b; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #c72e0f; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt;&quot;true&quot;&lt;/span&gt;&lt;span style=&quot;color: #3b3b3b; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt;).&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt;load&lt;/span&gt;&lt;span style=&quot;color: #3b3b3b; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c72e0f; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt;&quot;dbfs:/FileStore/shared_uploads/a@b.com/products.csv&quot;&lt;/span&gt;&lt;span style=&quot;color: #3b3b3b; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: right;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEivHuPz12n9mNlqLPBASm-tGkn07tk5Hd8W_D-kVOIv3XzyT1xc835S-24i4QZ8VVxlC1Rac1uONJs7Vk_CP7CmZIvjhv2TN8eIPaSebnO6AxMkMOigvbsuuEAiPBus3Cq5QHktxmluc1ZkhmiDAPkmdfpmuiB6dtB6CTqdcSlCFKn5Rk41wdab4Hr2smg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;df1 = spark.read.format(&amp;quot;csv&amp;quot;).option(&amp;quot;header&amp;quot;, &amp;quot;true&amp;quot;).load(&amp;quot;dbfs:/FileStore/shared_uploads/saurabh.f.sinha@accenture.com/products.csv&amp;quot;)&quot; data-original-height=&quot;151&quot; data-original-width=&quot;975&quot; height=&quot;100&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEivHuPz12n9mNlqLPBASm-tGkn07tk5Hd8W_D-kVOIv3XzyT1xc835S-24i4QZ8VVxlC1Rac1uONJs7Vk_CP7CmZIvjhv2TN8eIPaSebnO6AxMkMOigvbsuuEAiPBus3Cq5QHktxmluc1ZkhmiDAPkmdfpmuiB6dtB6CTqdcSlCFKn5Rk41wdab4Hr2smg=w640-h100&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;clear: both; text-align: left;&quot;&gt;Step 4.&amp;nbsp;Display the contents of the data frame&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Under the existing code cell, use the + icon to add a new code cell. Then in the new cell, enter the following code:&lt;/li&gt;&lt;li&gt;Use the ▸ Run Cell menu option at the top-right of the new cell to run it. This code displays the contents of the data frame, which should look similar to this:&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: rgb(250, 250, 250); line-height: 15pt; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;color: #3b3b3b; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt;(df1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: rgb(250, 250, 250); line-height: 15pt; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #3b3b3b; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt;df1.&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt;collect&lt;/span&gt;&lt;span style=&quot;color: #3b3b3b; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt;()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: rgb(250, 250, 250); line-height: 15pt; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt;display&lt;/span&gt;&lt;span style=&quot;color: #3b3b3b; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt;(df1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: right;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgAihcblDxOQzv_ljcQKjHBtdLgf-1vTRR4oVtImgUDx22wRYWDlO6GOZaBRsFAJiccyJ_u-zopF63xkRYRUF6AP3rRimfYGFsZ8--MZf_TQIv5BTQricbtVWdJa0Vcp1zr-Sod-DHhQzHmlaRTSoNl33j98AQPkbWQy7hA7q9CS4_k1p0je-M-Q9C7APw&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;print(df1)&quot; data-original-height=&quot;144&quot; data-original-width=&quot;975&quot; height=&quot;94&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgAihcblDxOQzv_ljcQKjHBtdLgf-1vTRR4oVtImgUDx22wRYWDlO6GOZaBRsFAJiccyJ_u-zopF63xkRYRUF6AP3rRimfYGFsZ8--MZf_TQIv5BTQricbtVWdJa0Vcp1zr-Sod-DHhQzHmlaRTSoNl33j98AQPkbWQy7hA7q9CS4_k1p0je-M-Q9C7APw=w640-h94&quot; title=&quot;Under the existing code cell, use the + icon to add a new code cell. Then in the new cell, enter the following code:&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhRIjPvWcY4SvyGr_6VfJQSwhBbrn9gPBLbqTemFYuEPhYxhCgn8CiNXEjjwQM9AMkUYymwk39qcz38Z8nsin9SdfizUb6onp3HlTGyhgjnCgaJ-mbxQ6rnrIGwCJI6KFzX_EPnwQpzARJsvw8q6mHinscUSM6uAIjYu0-ufpSJXKBJJ8Wl2foNpC1vF9g&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;collect(df1)&quot; data-original-height=&quot;198&quot; data-original-width=&quot;975&quot; height=&quot;130&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhRIjPvWcY4SvyGr_6VfJQSwhBbrn9gPBLbqTemFYuEPhYxhCgn8CiNXEjjwQM9AMkUYymwk39qcz38Z8nsin9SdfizUb6onp3HlTGyhgjnCgaJ-mbxQ6rnrIGwCJI6KFzX_EPnwQpzARJsvw8q6mHinscUSM6uAIjYu0-ufpSJXKBJJ8Wl2foNpC1vF9g=w640-h130&quot; title=&quot;Under the existing code cell, use the + icon to add a new code cell. Then in the new cell, enter the following code:&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjuqJCna_m8e13Ozcw-XsmnwkamnFNYTM7FFedg6UFC9GFLaGbSGOFwlQdfqGunZlhZhoNa003TgtaAcrRm6OfrhNSAZpzu6oor8RY4YmhFmOQxgkaIa0dWdUdC5v6fAk2TCKRa90Hf0hqUH0cbttZa-9j7DKG-J0SAclvvj-2dxlSB5iAzUiQPEIXzODA&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;display(df1)&quot; data-original-height=&quot;324&quot; data-original-width=&quot;975&quot; height=&quot;212&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjuqJCna_m8e13Ozcw-XsmnwkamnFNYTM7FFedg6UFC9GFLaGbSGOFwlQdfqGunZlhZhoNa003TgtaAcrRm6OfrhNSAZpzu6oor8RY4YmhFmOQxgkaIa0dWdUdC5v6fAk2TCKRa90Hf0hqUH0cbttZa-9j7DKG-J0SAclvvj-2dxlSB5iAzUiQPEIXzODA=w640-h212&quot; title=&quot;Display the contents of the data frame&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;clear: both; text-align: left;&quot;&gt;Step 5. Create Data Visualization and Data Profile&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Above the table of results, select + and then select Visualization to view the visualization editor, and then apply the following options:&lt;/li&gt;&lt;li&gt;Visualization type: Bar&lt;/li&gt;&lt;li&gt;X Column: Category&lt;/li&gt;&lt;li&gt;Y Column: Add a new column and select ProductID. Apply the Count aggregation.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjFYHxI7KGf91A1ckp8uQjcGC4ZOrrwlxuV8AiwzY0o9bEK4krEPNkuWduh8Z8vzj16rejgY2br4E7Si1WZeB1s9ZRPjR34Qoibkr4Vn4N1MT1nXxCrLH91YxRpFeHXqi6XT-qkKFwLpRaiSHrzfdGAQuvvHS6ySWC5dtCzdPHXvlFg7KRzFni_jZF-SvU&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em; text-align: right;&quot;&gt;&lt;img alt=&quot;Visualization type: Bar + Data Profile&quot; data-original-height=&quot;324&quot; data-original-width=&quot;975&quot; height=&quot;212&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjFYHxI7KGf91A1ckp8uQjcGC4ZOrrwlxuV8AiwzY0o9bEK4krEPNkuWduh8Z8vzj16rejgY2br4E7Si1WZeB1s9ZRPjR34Qoibkr4Vn4N1MT1nXxCrLH91YxRpFeHXqi6XT-qkKFwLpRaiSHrzfdGAQuvvHS6ySWC5dtCzdPHXvlFg7KRzFni_jZF-SvU=w640-h212&quot; title=&quot;Create Data Visualization and Data Profile&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;clear: both; text-align: left;&quot;&gt;Step 6.&amp;nbsp;Create and query a table&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Save the data frame as table object&amp;nbsp;&lt;/li&gt;&lt;li&gt;SQL code to return the name and price of products in the Touring Bikes category.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;Code:&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: rgb(250, 250, 250); line-height: 15pt; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #3b3b3b; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt;df1.write.&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt;saveAsTable&lt;/span&gt;&lt;span style=&quot;color: #3b3b3b; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c72e0f; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt;&quot;products&quot;&lt;/span&gt;&lt;span style=&quot;color: #3b3b3b; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt;)&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: rgb(250, 250, 250); line-height: 15pt; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #3b3b3b; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt;%sql&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: rgb(250, 250, 250); line-height: 15pt; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;color: #3b3b3b; font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-font-kerning: 0pt; mso-ligatures: none;&quot;&gt; ProductName, ListPrice&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 10pt;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;color: #3b3b3b; font-family: Consolas; font-size: 10pt;&quot;&gt; products&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 10pt;&quot;&gt;WHERE&lt;/span&gt;&lt;span style=&quot;color: #3b3b3b; font-family: Consolas; font-size: 10pt;&quot;&gt; Category &lt;/span&gt;&lt;span style=&quot;color: #687687; font-family: Consolas; font-size: 10pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #3b3b3b; font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c72e0f; font-family: Consolas; font-size: 10pt;&quot;&gt;&#39;Touring Bikes&#39;&lt;/span&gt;&lt;span style=&quot;color: #3b3b3b; font-family: Consolas; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgEzby4VJcb3sQUhWvEvDuRSwMcLHu2NL0XK6E7diemaNYjqBgDl_8TPnUC9vsLjztda4MBB3vQ1z3bAunBobAwZDK2DlPNBZ9WSeq3pDtqdkgCaEhh9SErhsGo52I1y5oxbKWsgw5UrKrBH2tLs2SrAUivTJ0PcHlawrdkQuDkNdmlSWP2EVGGWNLthsk&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;df1.write.saveAsTable(&amp;quot;products&amp;quot;)&quot; data-original-height=&quot;246&quot; data-original-width=&quot;605&quot; height=&quot;260&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgEzby4VJcb3sQUhWvEvDuRSwMcLHu2NL0XK6E7diemaNYjqBgDl_8TPnUC9vsLjztda4MBB3vQ1z3bAunBobAwZDK2DlPNBZ9WSeq3pDtqdkgCaEhh9SErhsGo52I1y5oxbKWsgw5UrKrBH2tLs2SrAUivTJ0PcHlawrdkQuDkNdmlSWP2EVGGWNLthsk=w640-h260&quot; title=&quot;Save the data frame as table object&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiHrvd8q0DD8IjpO270vAPNf6FzajWqZg13XtXg52CKPilPKUH6hTeanfYbxGjY-pUiynvHlDWtdW8i5AnoYlfNemmysz2ouFF7NejmMEtPIRE0CFGVXpDjwvNSbrrgbPc7FUYAJLqGryzhRtcw7MixdSvS6UjvNInpyncZLcX9Ckxxo-KnRIeka9j6gPo&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;%sql  SELECT ProductName, ListPrice FROM products WHERE Category = &#39;Touring Bikes&#39;;&quot; data-original-height=&quot;480&quot; data-original-width=&quot;811&quot; height=&quot;378&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiHrvd8q0DD8IjpO270vAPNf6FzajWqZg13XtXg52CKPilPKUH6hTeanfYbxGjY-pUiynvHlDWtdW8i5AnoYlfNemmysz2ouFF7NejmMEtPIRE0CFGVXpDjwvNSbrrgbPc7FUYAJLqGryzhRtcw7MixdSvS6UjvNInpyncZLcX9Ckxxo-KnRIeka9j6gPo=w640-h378&quot; title=&quot;Retrive output from sql datafram using sql&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Now if you want, you can try a couple more options&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;Step Last.&amp;nbsp; Cleanup Resources&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;In the Azure Databricks portal, on the Compute page, select your cluster and select ■ Terminate to shut it down.&lt;/li&gt;&lt;li&gt;If you’ve finished exploring Azure Databricks, you can delete the resources you’ve created to avoid unnecessary Azure costs and free up capacity in your subscription.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.algaestudy.com/feeds/1183949435853696596/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.algaestudy.com/2024/02/explore-azure-databricks-lab-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/1183949435853696596'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/1183949435853696596'/><link rel='alternate' type='text/html' href='https://www.algaestudy.com/2024/02/explore-azure-databricks-lab-1.html' title='Explore Azure Databricks -  Lab 1'/><author><name>Algae Education</name><uri>http://www.blogger.com/profile/12443040604753343283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='9' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQEOhe1V67n6e421LF5bUPOMBi3pPbW_IkAEQb_PNAxDB_ZyC6N9QqlIKNR3OIXafo4XbBlB3aO8i9w0cAuuNfUec1DD-skkLSiuvwvIHjkLjkGXkwssfCNrkK0GUkmJc/s220/Algae3.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEg8w-nKSGsiZ5jFpKm0tWvZAaUijOy9JoqFpC_xRmINMATaK1dzFE5hZTQ420TjOCSsBk63baNHkcPvjQPw8n108iGj1lDd0TvATNoUIXoHbWVlX4BEFU2MZlDEcRwi_S2aY9_4ppODizlJ7IM79ZBG44s1U3g-gWxTq-Cpz-fNJyzMjgVVqMMP9IvceLg=s72-w640-h397-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8305675988893866325.post-1189436288486636613</id><published>2024-02-10T00:36:00.000-08:00</published><updated>2024-02-10T00:36:54.374-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AI-ML"/><category scheme="http://www.blogger.com/atom/ns#" term="Azure"/><category scheme="http://www.blogger.com/atom/ns#" term="Cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="Demo"/><category scheme="http://www.blogger.com/atom/ns#" term="Lab"/><title type='text'>Azure DataBricks Lab Setup</title><content type='html'>&lt;h3&gt;&lt;span&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h1 style=&quot;text-align: center;&quot;&gt;&amp;nbsp;My Lab Setup for Azure Databricks practice&lt;/h1&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Azure Databricks is a Microsoft Azure-based version of the popular open-source Databricks platform. Similarly to Azure Synapse Analytics, an Azure Databricks workspace provides a central point for managing Databricks clusters, data, and resources on Azure.&lt;/h4&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Step 1. Signup for Azure Free trial&amp;nbsp;&lt;/h3&gt;&lt;p&gt;Link: &lt;a href=&quot;https://azure.microsoft.com/en-in/free&quot;&gt;https://azure.microsoft.com/en-in/free&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEihrtBMcCvzJ1LBfteqc0_xlWaU96PGGguIZYvhpqES6Kbav8BCzD4m5QTAANtowtGk14XCmqlulxR3ZV0hT_PUoVZ8oOqiEKCKZBi8uGbLXA6Iq42QpLTEKSElkxFsKY6hNRnvaFkrigmfAL8I3xdmXT_ElD2jsJxZNMno5xKtXul5F9LVq2GhqurPg70&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;https://azure.microsoft.com/en-in/free&quot; data-original-height=&quot;619&quot; data-original-width=&quot;1039&quot; height=&quot;191&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEihrtBMcCvzJ1LBfteqc0_xlWaU96PGGguIZYvhpqES6Kbav8BCzD4m5QTAANtowtGk14XCmqlulxR3ZV0hT_PUoVZ8oOqiEKCKZBi8uGbLXA6Iq42QpLTEKSElkxFsKY6hNRnvaFkrigmfAL8I3xdmXT_ElD2jsJxZNMno5xKtXul5F9LVq2GhqurPg70=w320-h191&quot; title=&quot;https://azure.microsoft.com/en-in/free&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;clear: both; text-align: left;&quot;&gt;Step 2. Sign in to the Azure portal&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Link: &lt;a href=&quot;https://portal.azure.com&quot;&gt;https://portal.azure.com&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;



&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgxkymcejTnNu8yf9Xw8-oiSAT01gPEUb3lvFYoTMHdaQbNFaCJpCgZ1IT4hwFgdkLRwgU83fu1imwUrq1nToYCYeB-yL9U12Gl6h1U-FV8lrOYdqZKs56bCUcHvV-O1eqaF4r-gfh6IBbink7buLq25mC93zhTe6HCdsaNTSE9QlNRhbhA2mahJIuWxDQ&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;https://portal.azure.com&quot; data-original-height=&quot;278&quot; data-original-width=&quot;1253&quot; height=&quot;89&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgxkymcejTnNu8yf9Xw8-oiSAT01gPEUb3lvFYoTMHdaQbNFaCJpCgZ1IT4hwFgdkLRwgU83fu1imwUrq1nToYCYeB-yL9U12Gl6h1U-FV8lrOYdqZKs56bCUcHvV-O1eqaF4r-gfh6IBbink7buLq25mC93zhTe6HCdsaNTSE9QlNRhbhA2mahJIuWxDQ=w400-h89&quot; title=&quot;https://portal.azure.com&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;




&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;clear: both; text-align: left;&quot;&gt;Step 3. Create Azure Resource Group&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: right;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhfSf9e4IMduxLZXxZF1JoaYVDmf1kYnEt4HZPqLTIY66bXiOQVPKTeWAIEUR4WcQgZgguma5vmzfJIYZx_RXeNOT-4XH9Ln6JX3__FZMpbK9dYZHVLJIZmO1OZ6fmwE3ku9bvcO67GdD8OMHPS0lYHGPnnHQ0eZmdITFdDn_LRt3EsWhH6oX-GxkcgAgw&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;Create Azure Resource Group&quot; data-original-height=&quot;713&quot; data-original-width=&quot;975&quot; height=&quot;293&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhfSf9e4IMduxLZXxZF1JoaYVDmf1kYnEt4HZPqLTIY66bXiOQVPKTeWAIEUR4WcQgZgguma5vmzfJIYZx_RXeNOT-4XH9Ln6JX3__FZMpbK9dYZHVLJIZmO1OZ6fmwE3ku9bvcO67GdD8OMHPS0lYHGPnnHQ0eZmdITFdDn_LRt3EsWhH6oX-GxkcgAgw=w400-h293&quot; title=&quot;Create Azure Resource Group&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjePwsgnpxiU_ZBljvagUzkAzqFeioLOUI2mlBEmVbcrRnZw3Wc48ZyrH57y0PyutCA1i09mbuokrAzupP-3U-ix5cBS3v096cbh6Ue6AkTbkLqPvjshoUTrfmXk5zvFhi7MlNW-pbaVqBTdJKzAQAZfAvDM8RItlwy3XUxshHindadJYBRJm7LRMDzhOg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Resource Group List&quot; data-original-height=&quot;385&quot; data-original-width=&quot;975&quot; height=&quot;253&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjePwsgnpxiU_ZBljvagUzkAzqFeioLOUI2mlBEmVbcrRnZw3Wc48ZyrH57y0PyutCA1i09mbuokrAzupP-3U-ix5cBS3v096cbh6Ue6AkTbkLqPvjshoUTrfmXk5zvFhi7MlNW-pbaVqBTdJKzAQAZfAvDM8RItlwy3XUxshHindadJYBRJm7LRMDzhOg=w640-h253&quot; title=&quot;Resource Group List&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Step 4. Open Cloud Shell in Azure Portal&lt;/h3&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Use the [&amp;gt;_] button to the right of the search bar at the top of the page to create a new Cloud Shell in the Azure portal, selecting a PowerShell environment and creating storage if prompted. The cloud shell provides a command line interface in a pane at the bottom of the Azure portal, as shown here:&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: right;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgvZ8OYD2Wfn7nXhXfDFeNkEyALFsXs_Olp75uJM27xI9r8C2qMeppKFEQCsIGpZW4scG0j0orcYBiekwVUPgFxtMq2nTHbMcrIBbcyvL_DOYgj1dh5W5s1U0gG7ThjnJ0N__-37lKRLn8KdNukSmyVM1C1vjKH_BTthxIt3jhykV3v0JFS4BvYSrpDkwE&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;selecting a PowerShell environment and creating storage if prompted&quot; data-original-height=&quot;551&quot; data-original-width=&quot;905&quot; height=&quot;244&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgvZ8OYD2Wfn7nXhXfDFeNkEyALFsXs_Olp75uJM27xI9r8C2qMeppKFEQCsIGpZW4scG0j0orcYBiekwVUPgFxtMq2nTHbMcrIBbcyvL_DOYgj1dh5W5s1U0gG7ThjnJ0N__-37lKRLn8KdNukSmyVM1C1vjKH_BTthxIt3jhykV3v0JFS4BvYSrpDkwE=w400-h244&quot; title=&quot;Use the [&amp;gt;_] button to the right of the search bar at the top of the page to create a new Cloud Shell&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;We will get the option to select a subscription, create/ use a resource group, storage account, file share&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Let us create using Cloudshell, though we can create from GUI as well without much hustle.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: right;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEijGQWPYcm5F-ar9gFYoxssfWuOQBH_h51Z3N2gLyQn442jRTGfuYckUAyORJ_EqBjUjlpRQyTZnYuy3JWVfIEje7hQRukUv1aUa1eKNhn1Bx-fgdIV5N2DCAjhPmtnETsM4hiB7pIjxGe-hpzqSkTml4uLLsqXITnLUd4lNmn5ijkRHD7vWMYzestBsn4&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;We will get the option to select a subscription, create/ use a resource group,&quot; data-original-height=&quot;287&quot; data-original-width=&quot;975&quot; height=&quot;188&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEijGQWPYcm5F-ar9gFYoxssfWuOQBH_h51Z3N2gLyQn442jRTGfuYckUAyORJ_EqBjUjlpRQyTZnYuy3JWVfIEje7hQRukUv1aUa1eKNhn1Bx-fgdIV5N2DCAjhPmtnETsM4hiB7pIjxGe-hpzqSkTml4uLLsqXITnLUd4lNmn5ijkRHD7vWMYzestBsn4=w640-h188&quot; title=&quot;select a subscription, create/ use a resource group, storage account, file share&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEi_FKR7jedSv5iI8RXbrtQaInnty5kXLbtvGKZzySnZ1Ij4r8_0li3t2f6FuYpd0RRW9drM7jz4mTboW-1xJA_PtitVNwTZhwr6SQ1ByG169FHh-gqNF62pYny4Le1UH9sGFwVq0vAyxXsdy5eVk5DRXKMJrGcWQfw0NebB04-zW7FGri7rf_w8DcKG2qk&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;cloud shell provides a command line interface in a pane at the bottom of the Azure portal,&quot; data-original-height=&quot;473&quot; data-original-width=&quot;640&quot; height=&quot;296&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEi_FKR7jedSv5iI8RXbrtQaInnty5kXLbtvGKZzySnZ1Ij4r8_0li3t2f6FuYpd0RRW9drM7jz4mTboW-1xJA_PtitVNwTZhwr6SQ1ByG169FHh-gqNF62pYny4Le1UH9sGFwVq0vAyxXsdy5eVk5DRXKMJrGcWQfw0NebB04-zW7FGri7rf_w8DcKG2qk=w400-h296&quot; title=&quot;cloud shell provides a command line interface in a pane at the bottom of the Azure portal,&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;clear: both; text-align: left;&quot;&gt;Step 5. Clone repository from git hub&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Here we can clone the existing repository to create Databricks services or we can do manually using the Azure portal also this has some resources to be used in the future like datasets.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;In the PowerShell pane, enter the following commands to clone this repo:&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&amp;nbsp;rm -r mslearn-databricks -f&lt;/li&gt;&lt;li&gt;&amp;nbsp;git clone https://github.com/MicrosoftLearning/mslearn-databricks&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: right;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhIFFY03xwuijKwy51CYgzwBprxPwhaFXH4yvXpMmzNZJqqbBnUPqf59K_OcZWxdlH3BNhyeI-DNdWbAhZmHdY7q5WkXyT6Dfx2yRoVwJhiTelOOnXPSfYX5B69us-0LzxOVLfmYJPfHbCogIqZBxOL-6kZclQyvaM9gc50VWZZPXxgHFaH4H6eQhgqWj8&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;rm -r mslearn-databricks -f&quot; data-original-height=&quot;362&quot; data-original-width=&quot;975&quot; height=&quot;238&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhIFFY03xwuijKwy51CYgzwBprxPwhaFXH4yvXpMmzNZJqqbBnUPqf59K_OcZWxdlH3BNhyeI-DNdWbAhZmHdY7q5WkXyT6Dfx2yRoVwJhiTelOOnXPSfYX5B69us-0LzxOVLfmYJPfHbCogIqZBxOL-6kZclQyvaM9gc50VWZZPXxgHFaH4H6eQhgqWj8=w640-h238&quot; title=&quot;git clone https://github.com/MicrosoftLearning/mslearn-databricks&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;After the repo has been cloned, enter the following command to run the setup.ps1 script, which provisions an Azure Databricks workspace in an available region:&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&amp;nbsp;./mslearn-databricks/setup.ps1&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: right;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgVpB6umcVwZOlfGmLxR48WdWJAyfkhJBaugNN8xORIw1vUfhvgto2rl7NvtmBoZIBhXGx4hdeGABBB-jOoqOFzevHJziijc9pLjJ04ujsCxBKE5gyug9GqwqCswNCh2upTRGzlONHVE51yc4X8Fd8DQfxCXy0lf2oqlvSp8jtcOqsOE5bsOloS26eUzJk&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;./mslearn-databricks/setup.ps1&quot; data-original-height=&quot;394&quot; data-original-width=&quot;975&quot; height=&quot;258&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgVpB6umcVwZOlfGmLxR48WdWJAyfkhJBaugNN8xORIw1vUfhvgto2rl7NvtmBoZIBhXGx4hdeGABBB-jOoqOFzevHJziijc9pLjJ04ujsCxBKE5gyug9GqwqCswNCh2upTRGzlONHVE51yc4X8Fd8DQfxCXy0lf2oqlvSp8jtcOqsOE5bsOloS26eUzJk=w640-h258&quot; title=&quot;./mslearn-databricks/setup.ps1&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;I have tried executing the setup.ps1 file in the folder &quot;mslearn-databricks&quot; but no luck.&amp;nbsp; I got a warning Insufficient resources&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;clear: both; text-align: left;&quot;&gt;Step 6. Create Azure Databricks Service&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;This step would not have been required if setup.ps1 in the previous step had been successful.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEg5pbhpIsUPBwmGznLDPIS2ABEKUHRyLqoNWa2AxBHVbfjIwtjWc9P81i_nZKQvVxNLV1CCVyj1ljVogyloF6ZHWieJk31lIYGtFH4jpp7OSWldJJ-BQWlwohBAoaWmtO4XF_Xvcdlx8kSsBzrlEKrlvRJ92FoMfm403HzioyiUJ0_OfOFJ-vNN4LkmFJk&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;setup,ps1 not able to create Azure resources&quot; data-original-height=&quot;795&quot; data-original-width=&quot;911&quot; height=&quot;349&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEg5pbhpIsUPBwmGznLDPIS2ABEKUHRyLqoNWa2AxBHVbfjIwtjWc9P81i_nZKQvVxNLV1CCVyj1ljVogyloF6ZHWieJk31lIYGtFH4jpp7OSWldJJ-BQWlwohBAoaWmtO4XF_Xvcdlx8kSsBzrlEKrlvRJ92FoMfm403HzioyiUJ0_OfOFJ-vNN4LkmFJk=w400-h349&quot; title=&quot;This step would not have been required if setup.ps1 in the previous step had been successful.&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiFhYtYdV0_Rh__5lHVoGzfOD298YOfOTW6eiQ51F5ieGnDnvy6HcU-GdH_s6UagOTCpb6qLhZhsT2CJroTfM020gFRG1So7Kl6gVrMNIxv1DtPZfl4ZqqDezRES21GuxtL_Lp86rTeKHwsNmBEwbB20UOWqzHKi1Cdwno8E7C8Y5KyW8N80w5LnMdB3Fg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;I can see Azure Dataribcks service is created along the managed resource group name required for Azure Databricks.&quot; data-original-height=&quot;348&quot; data-original-width=&quot;975&quot; height=&quot;229&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiFhYtYdV0_Rh__5lHVoGzfOD298YOfOTW6eiQ51F5ieGnDnvy6HcU-GdH_s6UagOTCpb6qLhZhsT2CJroTfM020gFRG1So7Kl6gVrMNIxv1DtPZfl4ZqqDezRES21GuxtL_Lp86rTeKHwsNmBEwbB20UOWqzHKi1Cdwno8E7C8Y5KyW8N80w5LnMdB3Fg=w640-h229&quot; title=&quot;I can see Azure Dataribcks service is created along the managed resource group name required for Azure Databricks.&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;I can see Azure Dataribcks service is created along the managed resource group name required for Azure Databricks.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiUSmCmUowUku3uBoBSojfokpBNXMroos64FVY_bTXURMunzH1tqYzLm695bKGKTNp-XuS1UWWteY0sIckcVDY_3SBLOF4W7kWsaNKCeG2ZzfrX8FgEBS6hbqe0lYRiW9PFG3yBPSAUBFxcQ3m1sysQGW4vwuadm6d99pXuvgxfsXclaLfC3UtBUNiB5VI&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;Azure myFirst resources from ms databricks&quot; data-original-height=&quot;419&quot; data-original-width=&quot;975&quot; height=&quot;276&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiUSmCmUowUku3uBoBSojfokpBNXMroos64FVY_bTXURMunzH1tqYzLm695bKGKTNp-XuS1UWWteY0sIckcVDY_3SBLOF4W7kWsaNKCeG2ZzfrX8FgEBS6hbqe0lYRiW9PFG3yBPSAUBFxcQ3m1sysQGW4vwuadm6d99pXuvgxfsXclaLfC3UtBUNiB5VI=w640-h276&quot; title=&quot;Azure resources&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiDoVcTvdWq5r1TdDTD2rtgFYMdz6ZYcpU1TjUTz_5YZUl41OUW3fjS4ZmPq81zW2xc6ngHjz2VJ3DhLb72yrxfkZ1mxNaGjIkfTyue41Vxr7NToxDa2rUKla3OLFJhWImcFskFDIlnDPl8By1mltw9Cg1BxhOHCettBlqP6dFfvso4mroGHaqVVA8nTN4&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Azure synapses lab 1&quot; data-original-height=&quot;491&quot; data-original-width=&quot;975&quot; height=&quot;322&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiDoVcTvdWq5r1TdDTD2rtgFYMdz6ZYcpU1TjUTz_5YZUl41OUW3fjS4ZmPq81zW2xc6ngHjz2VJ3DhLb72yrxfkZ1mxNaGjIkfTyue41Vxr7NToxDa2rUKla3OLFJhWImcFskFDIlnDPl8By1mltw9Cg1BxhOHCettBlqP6dFfvso4mroGHaqVVA8nTN4=w640-h322&quot; title=&quot;My Managed resources for Azure data bricks&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;clear: both; text-align: left;&quot;&gt;Step 7. Launch Azure Databricks&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;We will search Azure data bricks in the resource list and click the &quot;Launch Workspace button&quot;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: right;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjyCdQpm-VcSGAFNkpge_6Bvypt14lpXMrzvTLU86gZaA2yyCyivclLocuX7b7MmVz61kF8rMY2jgjsEZuMG5A2igQ2hBG7EYPXVyktw8ZZejFg3SchL6QHMcHYbeiBf2pU2mb49CLtX0LiVXYSXMcwU2UbkvHo_DhgF9fzj6kks63Caf42qNBEShzvBBk&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;You can click url also&quot; data-original-height=&quot;371&quot; data-original-width=&quot;975&quot; height=&quot;245&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjyCdQpm-VcSGAFNkpge_6Bvypt14lpXMrzvTLU86gZaA2yyCyivclLocuX7b7MmVz61kF8rMY2jgjsEZuMG5A2igQ2hBG7EYPXVyktw8ZZejFg3SchL6QHMcHYbeiBf2pU2mb49CLtX0LiVXYSXMcwU2UbkvHo_DhgF9fzj6kks63Caf42qNBEShzvBBk=w640-h245&quot; title=&quot;Launch Azure Databricks&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiJNbpBp_Tdmn3wajKcJGP6DcctR25M0wClaxRr_d77d2dOfwwm5BGcfrtvLaGYb6zkp3s-w-MO7X7-A671kXUgxTzrwxNBEDiXIkLcRsJu7rXDYZgykcZrhEtXgUZ-tQcaL0dZ30lYiEMj947kiRmufE5WO6dFcoli1CaUWnfBnK6xXjJjoGd5j4Y5e_0&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Opening my Azure drabricks studio&quot; data-original-height=&quot;708&quot; data-original-width=&quot;908&quot; height=&quot;250&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiJNbpBp_Tdmn3wajKcJGP6DcctR25M0wClaxRr_d77d2dOfwwm5BGcfrtvLaGYb6zkp3s-w-MO7X7-A671kXUgxTzrwxNBEDiXIkLcRsJu7rXDYZgykcZrhEtXgUZ-tQcaL0dZ30lYiEMj947kiRmufE5WO6dFcoli1CaUWnfBnK6xXjJjoGd5j4Y5e_0=w320-h250&quot; title=&quot;Azure Databricks Sign in&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: right;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhjCbdEOOV8Qixetw1zPsh0GQe8qG4Lo_L0miC0ECMnDMyJr3x1IopMKsKKVHCo0JlQ82SgspG1BFYn0o82veeg7LPDdBpBrRiPeWmioeMmqweE5d1wfuAvQ4E_PZUcDgw0uQPEiSbb3rDLUosiJIhEzOFSCKWOGmj0Ld2YG2RJzJjXCYL5eqYlwAoFq0U&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Azure Synapse workspace&quot; data-original-height=&quot;466&quot; data-original-width=&quot;975&quot; height=&quot;306&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhjCbdEOOV8Qixetw1zPsh0GQe8qG4Lo_L0miC0ECMnDMyJr3x1IopMKsKKVHCo0JlQ82SgspG1BFYn0o82veeg7LPDdBpBrRiPeWmioeMmqweE5d1wfuAvQ4E_PZUcDgw0uQPEiSbb3rDLUosiJIhEzOFSCKWOGmj0Ld2YG2RJzJjXCYL5eqYlwAoFq0U=w640-h306&quot; title=&quot;Azure Databricks Studio&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;clear: both; text-align: left;&quot;&gt;Step 8. Create Cluster in Azure DataBricks&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Azure Databricks is a distributed processing platform that uses Apache Spark clusters to process data in parallel on multiple nodes. Each cluster consists of a driver node to coordinate the work, and worker nodes to perform processing tasks. For practice, we’ll create a single-node cluster to minimize the compute resources used in the lab environment (in which resources may be constrained). In a production environment, we typically create a cluster with multiple worker nodes.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: right;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiHL5_vvkT5SRfEwdbVkWQzLMbIlmM-d1gA-RLYP-In_4N_ibunt4bjSo5G6BWTMRlpSf3LT1jRpJrMxBIdEDMNomuh4IQwbXHeuu0SCuogIRR2nk9AIaassmonyRRjGM2qnH7dc9KX3iPfEK60zbZm_TkZPZtQNMfQ-noN1LOw9AVxbHTCcVEuM784o8E&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Databricks runtime version: 13.3 LTS (Spark 3.4.1, Scala 2.12) or later&quot; data-original-height=&quot;576&quot; data-original-width=&quot;640&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiHL5_vvkT5SRfEwdbVkWQzLMbIlmM-d1gA-RLYP-In_4N_ibunt4bjSo5G6BWTMRlpSf3LT1jRpJrMxBIdEDMNomuh4IQwbXHeuu0SCuogIRR2nk9AIaassmonyRRjGM2qnH7dc9KX3iPfEK60zbZm_TkZPZtQNMfQ-noN1LOw9AVxbHTCcVEuM784o8E=w400-h360&quot; title=&quot;we’ll create a single-node cluster to minimize the compute resources used in the lab environment&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;In the sidebar on the left, select the (+) New task, and then select Cluster.&lt;/li&gt;&lt;li&gt;In the New Cluster page, create a new cluster with the following settings:&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Cluster name: User Name’s cluster (the default cluster name)&lt;/li&gt;&lt;li&gt;Policy: Unrestricted&lt;/li&gt;&lt;li&gt;Cluster mode: Single Node&lt;/li&gt;&lt;li&gt;Access mode: Single user (with your user account selected)&lt;/li&gt;&lt;li&gt;Databricks runtime version: 13.3 LTS (Spark 3.4.1, Scala 2.12) or later&lt;/li&gt;&lt;li&gt;Use Photon Acceleration: Selected&lt;/li&gt;&lt;li&gt;Node type: Standard_DS3_v2&lt;/li&gt;&lt;li&gt;Terminate after 20 minutes of inactivity&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Wait for the cluster to be created. It may take a minute or two.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: right;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEj8J57wTvuHDwCH88HOwcr5YC4RwPUvElq8g1RFPQ4zHsbZ3fUGmjd9FkrYthnjRzLqz-_jHYgokzbm6nM5XArkv83IADlQQRbUtDyZ036XBltZhzzUS-cJNKYdr_dIPzF5UgBVtG3Dy-zsDH0B9M_OfK22e6M3mY1wAgrjpDQ69nMyZuFEXs2x8HZUxOE&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Node type: Standard_DS3_v2&quot; data-original-height=&quot;445&quot; data-original-width=&quot;975&quot; height=&quot;292&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEj8J57wTvuHDwCH88HOwcr5YC4RwPUvElq8g1RFPQ4zHsbZ3fUGmjd9FkrYthnjRzLqz-_jHYgokzbm6nM5XArkv83IADlQQRbUtDyZ036XBltZhzzUS-cJNKYdr_dIPzF5UgBVtG3Dy-zsDH0B9M_OfK22e6M3mY1wAgrjpDQ69nMyZuFEXs2x8HZUxOE=w640-h292&quot; title=&quot;Access mode: Single user (with your user account selected)&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;clear: both; text-align: left;&quot;&gt;Step 9. Create Pyspark Notebook&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;In the sidebar, use the (+) New link to create a Notebook.&lt;/li&gt;&lt;li&gt;Change the default notebook name (Untitled Notebook [date]) to a new name&lt;/li&gt;&lt;li&gt;In the Connect drop-down list, select your cluster if it is not already selected. If the cluster is not running, it may take a minute or so to start.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: right;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjJxTwCXeNsaSLbaY2vItxloVVQ4KpfS7m8R8tvcQ37nJLD8IA_zXKNj_oEatAAbdFkH4K1I8SWeWgetarpEC3Ddm9Ms11i8vxPO59LfBN6iOH597upVkP6WdmQCVqdsZEcSzZa1MEy2VO1WdPG0hFOp1KbTfqr8FnATNkb3wJXJLxeBAIWqsdC8XSqFA4&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Change the default notebook name (Untitled Notebook [date]) to a new name&quot; data-original-height=&quot;273&quot; data-original-width=&quot;486&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjJxTwCXeNsaSLbaY2vItxloVVQ4KpfS7m8R8tvcQ37nJLD8IA_zXKNj_oEatAAbdFkH4K1I8SWeWgetarpEC3Ddm9Ms11i8vxPO59LfBN6iOH597upVkP6WdmQCVqdsZEcSzZa1MEy2VO1WdPG0hFOp1KbTfqr8FnATNkb3wJXJLxeBAIWqsdC8XSqFA4=w400-h225&quot; title=&quot;In the sidebar, use the (+) New link to create a Notebook.&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEi2E5_3t0fE6Ww7sZrDPZxbtuUr_tXHeLGY6OYYX6I848pkzU_BYA_AqAGFRvn-XEWSoQEkxRw-jZuyOkrCNptjw7m78lroJaZMTpZmqMeyjS7uEt2wNjX6LCndTdIaqxcunroJXYL9QlgQAJEO5_erbXOxNhErg5xkpz8-aOlnGQDZCh8v6LMsZrKbHMo&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;MyFirst Azure Synapse Notebook&quot; data-original-height=&quot;327&quot; data-original-width=&quot;799&quot; height=&quot;262&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEi2E5_3t0fE6Ww7sZrDPZxbtuUr_tXHeLGY6OYYX6I848pkzU_BYA_AqAGFRvn-XEWSoQEkxRw-jZuyOkrCNptjw7m78lroJaZMTpZmqMeyjS7uEt2wNjX6LCndTdIaqxcunroJXYL9QlgQAJEO5_erbXOxNhErg5xkpz8-aOlnGQDZCh8v6LMsZrKbHMo=w640-h262&quot; title=&quot;MyFirst Pyspark Notebook&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;i&gt;Now you can practice all the code you want and practice for your interview at least for a month&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Step Last.&amp;nbsp; Cleanup Resources&lt;/h3&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;In the Azure Databricks portal, on the Compute page, select your cluster and select ■ Terminate to shut it down.&lt;/li&gt;&lt;li&gt;If you’ve finished exploring Azure Databricks, you can delete the resources you’ve created to avoid unnecessary Azure costs and free up capacity in your subscription.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.algaestudy.com/feeds/1189436288486636613/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.algaestudy.com/2024/02/azure-databricks-lab-setup.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/1189436288486636613'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/1189436288486636613'/><link rel='alternate' type='text/html' href='https://www.algaestudy.com/2024/02/azure-databricks-lab-setup.html' title='Azure DataBricks Lab Setup'/><author><name>Algae Education</name><uri>http://www.blogger.com/profile/12443040604753343283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='9' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQEOhe1V67n6e421LF5bUPOMBi3pPbW_IkAEQb_PNAxDB_ZyC6N9QqlIKNR3OIXafo4XbBlB3aO8i9w0cAuuNfUec1DD-skkLSiuvwvIHjkLjkGXkwssfCNrkK0GUkmJc/s220/Algae3.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEihrtBMcCvzJ1LBfteqc0_xlWaU96PGGguIZYvhpqES6Kbav8BCzD4m5QTAANtowtGk14XCmqlulxR3ZV0hT_PUoVZ8oOqiEKCKZBi8uGbLXA6Iq42QpLTEKSElkxFsKY6hNRnvaFkrigmfAL8I3xdmXT_ElD2jsJxZNMno5xKtXul5F9LVq2GhqurPg70=s72-w320-h191-c" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8305675988893866325.post-4131040742141972359</id><published>2023-06-24T22:14:00.001-07:00</published><updated>2023-06-24T22:14:13.969-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="GraphDb"/><category scheme="http://www.blogger.com/atom/ns#" term="Neo4J"/><category scheme="http://www.blogger.com/atom/ns#" term="Neo4J-Lab"/><title type='text'>Neo4J Update Command Day 3</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h1 style=&quot;text-align: center;&quot;&gt;Neo4J Commands Lab Day 3&lt;/h1&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Update and Set Commands:&lt;/h2&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;The SET clause is used to update labels on nodes&lt;/li&gt;&lt;li&gt;&amp;nbsp;The SET clause is used to update properties on nodes and relationships.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhnmUhpoZ2VDT3BcZ2zoxFPHyybrgGBa8dRY50B4Ie0irzuYWKPe1-NAvmmmzDmG9cAIhVPrNy2t3TTvXB5-eMFA2FzRU1nTDF9oWyxMFyefEPaamuCTL4LgcJNoYCoU4vtcGFE-YKcF-zXRAvMYw0n6yFJDvhyC-imNjpcZQqyXMv_yFxUJVlRNCU_mus&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img data-original-height=&quot;194&quot; data-original-width=&quot;744&quot; height=&quot;166&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhnmUhpoZ2VDT3BcZ2zoxFPHyybrgGBa8dRY50B4Ie0irzuYWKPe1-NAvmmmzDmG9cAIhVPrNy2t3TTvXB5-eMFA2FzRU1nTDF9oWyxMFyefEPaamuCTL4LgcJNoYCoU4vtcGFE-YKcF-zXRAvMYw0n6yFJDvhyC-imNjpcZQqyXMv_yFxUJVlRNCU_mus=w640-h166&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Set a Property :&lt;/h3&gt;&lt;p&gt;Use SET to set a property on a node or relationship:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEghnJKiEho-hFj3oqzGdi-aF83plLXE_0suSDBmjZx_qhMiTT3-LGQf-KBd2D8kF3FI4XDkiKeIOLle3nQuaHcsJIrF_5SpxuTaFlT1Kr7j0dfBf4IZFAkJTLyPrZPi2x_xBP9LkuRIf9FqY6BEpH2Aj1qyukbpzpWQi_gKYnVTCQqrtsmEeV6Ri1tGbKs&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;168&quot; data-original-width=&quot;566&quot; height=&quot;95&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEghnJKiEho-hFj3oqzGdi-aF83plLXE_0suSDBmjZx_qhMiTT3-LGQf-KBd2D8kF3FI4XDkiKeIOLle3nQuaHcsJIrF_5SpxuTaFlT1Kr7j0dfBf4IZFAkJTLyPrZPi2x_xBP9LkuRIf9FqY6BEpH2Aj1qyukbpzpWQi_gKYnVTCQqrtsmEeV6Ri1tGbKs&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;MATCH (n {name: &#39;Andy&#39;})&lt;/li&gt;&lt;li&gt;SET n.surname = &#39;Taylor&#39;&lt;/li&gt;&lt;li&gt;RETURN n.name, n.surname&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Update a Property&lt;/h3&gt;&lt;p&gt;SET can be used to update a property on a node or relationship. This query forces a change of type in the age property:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjX0_oQqqS77PJyL17e3aPhI11aOj4H1rmi990JEZKGYQ9JN1Tm9lldzfhaXDBXsyYypSVvhnL_SNDJq1goJzYdqien9kvhBWrRjl-8kcjdpvV01RfKdj7SdAWdwDxshf4qgjurCYGEWwWW-peti5apAh0WoRMYsJIw-Jz4oIzyXB0mK1AfneGwYjtcWBM&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;159&quot; data-original-width=&quot;624&quot; height=&quot;82&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjX0_oQqqS77PJyL17e3aPhI11aOj4H1rmi990JEZKGYQ9JN1Tm9lldzfhaXDBXsyYypSVvhnL_SNDJq1goJzYdqien9kvhBWrRjl-8kcjdpvV01RfKdj7SdAWdwDxshf4qgjurCYGEWwWW-peti5apAh0WoRMYsJIw-Jz4oIzyXB0mK1AfneGwYjtcWBM&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;MATCH (n {name: &#39;Andy&#39;})&lt;/li&gt;&lt;li&gt;SET n.age = 26&lt;/li&gt;&lt;li&gt;RETURN n.name, n.age&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgUqZ9eSpxEsVgDVYG0PKczfHlJqFmUhlZkfxNjVc0AItVfdhWOwrBYqiAqCd5v6YPwuFHXx1E3IZA4r7I2AFPXcu_AnZZ2Q9vGcQkrftj4voRvVrvZ6nsDblBhlAk_SYeo8vrkBYAI2DVzWanR7EK3IFWFhYG1BdfWmffjeL8o_MwIsPzlhS_vEjbkXTg&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;177&quot; data-original-width=&quot;590&quot; height=&quot;96&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgUqZ9eSpxEsVgDVYG0PKczfHlJqFmUhlZkfxNjVc0AItVfdhWOwrBYqiAqCd5v6YPwuFHXx1E3IZA4r7I2AFPXcu_AnZZ2Q9vGcQkrftj4voRvVrvZ6nsDblBhlAk_SYeo8vrkBYAI2DVzWanR7EK3IFWFhYG1BdfWmffjeL8o_MwIsPzlhS_vEjbkXTg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;MATCH (n {name: &#39;Andy&#39;})&lt;/li&gt;&lt;li&gt;SET n.age = toString(n.age)&lt;/li&gt;&lt;li&gt;RETURN n.name, n.age&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Remove a Property&lt;/h3&gt;&lt;p&gt;Although REMOVE is normally used to remove a property, it is sometimes convenient to do it using the SET command. A case in point is if the property is provided by a parameter.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEi5jhDx00joDUHs4DvwU1BxdSS921baOrWX67utWmw7KheFgS000ZmVAFCJVS9-sUgbNHR0XILSG7HUQBUX7X-l66IBY7Mcuqex1pEJtFSwN2N2rdnAJaaoUqw3Hm0SMSyrN-XlIs3cwnbRU1mwDqbBAF4ecP9LyXOy92Xhd9yXz4yRcq117PIZxuGsPh4&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;170&quot; data-original-width=&quot;587&quot; height=&quot;93&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEi5jhDx00joDUHs4DvwU1BxdSS921baOrWX67utWmw7KheFgS000ZmVAFCJVS9-sUgbNHR0XILSG7HUQBUX7X-l66IBY7Mcuqex1pEJtFSwN2N2rdnAJaaoUqw3Hm0SMSyrN-XlIs3cwnbRU1mwDqbBAF4ecP9LyXOy92Xhd9yXz4yRcq117PIZxuGsPh4&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;MATCH (n {name: &#39;Andy&#39;})&lt;/li&gt;&lt;li&gt;SET n.name = null&lt;/li&gt;&lt;li&gt;RETURN n.name, n.age&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Remove All Properties Using an Empty Map and =&lt;/h3&gt;&lt;p&gt;All existing properties can be removed from a node or relationship by using&amp;nbsp;&lt;/p&gt;&lt;p&gt;SET with = and an empty map as the right operand:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjHmi8Dchg763cYsDH4Ljum-MGJ2LwcepZbz2i1qw85NW0Q_maswHlNXQV5RSnNZbcdHlo6J04FCl8Wu4lOtIJCPa2b7nhXHCHHEbttTYHG5t0JsZBt0A5mFsaN7SQ7BWv6WHiYzWp7JY8fJuEOrYhi0IQFloDNRQPvOBs4DRJO2qvAOGy5W1Di6JT3i5g&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;78&quot; data-original-width=&quot;460&quot; height=&quot;54&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjHmi8Dchg763cYsDH4Ljum-MGJ2LwcepZbz2i1qw85NW0Q_maswHlNXQV5RSnNZbcdHlo6J04FCl8Wu4lOtIJCPa2b7nhXHCHHEbttTYHG5t0JsZBt0A5mFsaN7SQ7BWv6WHiYzWp7JY8fJuEOrYhi0IQFloDNRQPvOBs4DRJO2qvAOGy5W1Di6JT3i5g&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEi25QKFclyThnc-yfdGafh0AoF9IvGLdJZCM0VwwepKm98o0BK_aGLKdWk98AA5Cm7lULS_bOtB7ht5SYj4kcRCB6zdlOtisEELo1vZ1Dhi1TEEUFDWroNuZFesTYdnYoT4NQ3E0wR0FHUf_36QVequvxgPJiprV_LNQXVtr0rSrk3t8fNBQCodH7B-qK0&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;/a&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEj-dHM1UcS5od8zLghYDoJ26KR8M9Fsbde3AW786j4qYHnhAeku2OVWu_xHYqXQgTQxFu7JKV3at3ExU0cyPY7D188QlQ2zc66shBvOgFP_zzN91WAdY3lCGCJafuZ-bj29QnGUVUAp7rKmn83tZRn_orREH52nhFwfdvb8_t8bUvTqulCz3WrMv9OyiYI&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;173&quot; data-original-width=&quot;577&quot; height=&quot;96&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEj-dHM1UcS5od8zLghYDoJ26KR8M9Fsbde3AW786j4qYHnhAeku2OVWu_xHYqXQgTQxFu7JKV3at3ExU0cyPY7D188QlQ2zc66shBvOgFP_zzN91WAdY3lCGCJafuZ-bj29QnGUVUAp7rKmn83tZRn_orREH52nhFwfdvb8_t8bUvTqulCz3WrMv9OyiYI&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEi25QKFclyThnc-yfdGafh0AoF9IvGLdJZCM0VwwepKm98o0BK_aGLKdWk98AA5Cm7lULS_bOtB7ht5SYj4kcRCB6zdlOtisEELo1vZ1Dhi1TEEUFDWroNuZFesTYdnYoT4NQ3E0wR0FHUf_36QVequvxgPJiprV_LNQXVtr0rSrk3t8fNBQCodH7B-qK0&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;CREATE (p:Person {name: &#39;Peter&#39;})&lt;/li&gt;&lt;li&gt;MATCH (p {name: &#39;Peter&#39;})&lt;/li&gt;&lt;li&gt;SET p = {}&lt;/li&gt;&lt;li&gt;RETURN p.name, p.age&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Set Multiple Properties Using one SET Clause:&lt;/h3&gt;&lt;p&gt;Set multiple properties at once by separating them with a comma:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhukrXAgvdM68bXOUlPRlDzPgCsghiZhFwuFJb0y5z1qLuhkj7ONvS4OIK8F1nh59k3YRU_umiLFqY2cIllKyL8HjzgaE_2fYLWx1Q2L_ENeZtcQfz6BDM9ysYL8BzOPo2dqaX9vnLzXawXjrKJU6YmKMTeM7z74PioEsJ_lQsTKWOtwzpFk3zAPEWYMIE&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;162&quot; data-original-width=&quot;739&quot; height=&quot;70&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhukrXAgvdM68bXOUlPRlDzPgCsghiZhFwuFJb0y5z1qLuhkj7ONvS4OIK8F1nh59k3YRU_umiLFqY2cIllKyL8HjzgaE_2fYLWx1Q2L_ENeZtcQfz6BDM9ysYL8BzOPo2dqaX9vnLzXawXjrKJU6YmKMTeM7z74PioEsJ_lQsTKWOtwzpFk3zAPEWYMIE&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;MATCH (n {name: &#39;Tom&#39;})&lt;/li&gt;&lt;li&gt;SET n.position = &#39;Developer&#39;, n.surname = &#39;Taylor&#39;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Set a Label on a Node:&lt;/h3&gt;&lt;p&gt;Use SET to set a label on a node:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhzqGMMTjETeGAg-p7qu6JWgzYl85od4xKyZ72nSRgcZxQwD9e4CEmP7WrjEEIm8YoBAFZQ_J7Zdt0dX2ZMsMEFLf90fuSgKwy6KIGHtxRnUpPTljJM-9u0uP7oWgHKyq1WZFWgtV0OvLot6xoT6n6TcfIaF7sPDJCoNro6-nfA09x_vgsXtb08B6Gg60g&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;211&quot; data-original-width=&quot;504&quot; height=&quot;134&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhzqGMMTjETeGAg-p7qu6JWgzYl85od4xKyZ72nSRgcZxQwD9e4CEmP7WrjEEIm8YoBAFZQ_J7Zdt0dX2ZMsMEFLf90fuSgKwy6KIGHtxRnUpPTljJM-9u0uP7oWgHKyq1WZFWgtV0OvLot6xoT6n6TcfIaF7sPDJCoNro6-nfA09x_vgsXtb08B6Gg60g&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;CREATE (p:Person {name: &#39;Michael&#39;})&lt;/li&gt;&lt;li&gt;WITH p&lt;/li&gt;&lt;li&gt;MATCH (n {name: &#39;Michael&#39;})&lt;/li&gt;&lt;li&gt;SET n:German&lt;/li&gt;&lt;li&gt;RETURN n.name, labels(n) AS labels&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Set Multiple Labels on a Node:&lt;/h3&gt;&lt;p&gt;Set multiple labels on a node with SET and use : to separate the different labels:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjl3FS37utIdM8kSh5BBxRcW9awASTEUeVDvZZBHjFWjLkqysceDqetdyyOL6xQVISD4jWGTIlDGiAtEpHnAr-DK50hEA4rdpsCTWspXBE494-A4TFJT2Sw9IXHPrD9ZlW7v6BIXfZ2HecZrjqju_ebk0XwGctkvZ4genDxy6-rSow6441A5cRLdpxlUEU&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;218&quot; data-original-width=&quot;483&quot; height=&quot;144&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjl3FS37utIdM8kSh5BBxRcW9awASTEUeVDvZZBHjFWjLkqysceDqetdyyOL6xQVISD4jWGTIlDGiAtEpHnAr-DK50hEA4rdpsCTWspXBE494-A4TFJT2Sw9IXHPrD9ZlW7v6BIXfZ2HecZrjqju_ebk0XwGctkvZ4genDxy6-rSow6441A5cRLdpxlUEU&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;CREATE (p:Person {name: &#39;Kelly&#39;})&lt;/li&gt;&lt;li&gt;WITH p&lt;/li&gt;&lt;li&gt;MATCH (n {name: &#39;Kelly&#39;})&lt;/li&gt;&lt;li&gt;SET n:Swedish:Bossman&lt;/li&gt;&lt;li&gt;RETURN n.name, labels(n) AS labels&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.algaestudy.com/feeds/4131040742141972359/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.algaestudy.com/2023/06/neo4j-update-command-day-3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/4131040742141972359'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/4131040742141972359'/><link rel='alternate' type='text/html' href='https://www.algaestudy.com/2023/06/neo4j-update-command-day-3.html' title='Neo4J Update Command Day 3'/><author><name>Algae Education</name><uri>http://www.blogger.com/profile/12443040604753343283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='9' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQEOhe1V67n6e421LF5bUPOMBi3pPbW_IkAEQb_PNAxDB_ZyC6N9QqlIKNR3OIXafo4XbBlB3aO8i9w0cAuuNfUec1DD-skkLSiuvwvIHjkLjkGXkwssfCNrkK0GUkmJc/s220/Algae3.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEhnmUhpoZ2VDT3BcZ2zoxFPHyybrgGBa8dRY50B4Ie0irzuYWKPe1-NAvmmmzDmG9cAIhVPrNy2t3TTvXB5-eMFA2FzRU1nTDF9oWyxMFyefEPaamuCTL4LgcJNoYCoU4vtcGFE-YKcF-zXRAvMYw0n6yFJDvhyC-imNjpcZQqyXMv_yFxUJVlRNCU_mus=s72-w640-h166-c" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Kolkata, West Bengal, India</georss:featurename><georss:point>22.572646 88.363895000000014</georss:point><georss:box>-5.7375878361788466 53.207645000000014 50.882879836178844 123.52014500000001</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8305675988893866325.post-3225871859727907329</id><published>2023-06-24T21:40:00.001-07:00</published><updated>2023-06-24T22:14:34.571-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="GraphDb"/><category scheme="http://www.blogger.com/atom/ns#" term="Neo4J"/><category scheme="http://www.blogger.com/atom/ns#" term="Neo4J-Lab"/><title type='text'>Neo4J Delete Command Lab Day 2</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h1 style=&quot;text-align: center;&quot;&gt;Neo4J Commands Lab Day 2&lt;/h1&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Delete Command:&lt;/h2&gt;&lt;p&gt;You can use delete command in for scenarios&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Delete single node&lt;/li&gt;&lt;li&gt;Delete relationships only&lt;/li&gt;&lt;li&gt;Delete relationships only&lt;/li&gt;&lt;li&gt;Delete all nodes and relationships&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;To start with Lab, lets quickly create a few nodes and relation ships&lt;/p&gt;&lt;p&gt;Command:&amp;nbsp;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiZjDF4wmJyU6hyn08qTQVxEP6fbCmcwNj5k40fjX_dqtnDr7PR1gxPK8A8q-TbFnNoig2WII5OC8EpKRc2qkg9SW9DsM9BXeX6bT16_AJxlHPa538xmkiMYTRarmrOP_w3QVF5e-3783ntWN9pvpc0FttphszbovtzeenPLxkxxYCyEaMAM0rRgosx2_E&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;321&quot; data-original-width=&quot;926&quot; height=&quot;111&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiZjDF4wmJyU6hyn08qTQVxEP6fbCmcwNj5k40fjX_dqtnDr7PR1gxPK8A8q-TbFnNoig2WII5OC8EpKRc2qkg9SW9DsM9BXeX6bT16_AJxlHPa538xmkiMYTRarmrOP_w3QVF5e-3783ntWN9pvpc0FttphszbovtzeenPLxkxxYCyEaMAM0rRgosx2_E&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;CREATE p = (:Person {name:&#39;Andy&#39;})-[:WORKS_AT]-&amp;gt;(:Company {name: &#39;Neo4j&#39;})&amp;lt;-[:WORKS_AT]-(:Person {name: &#39;Michael&#39;})&lt;/li&gt;&lt;li&gt;RETURN p&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;Commands and Syntax for Delete&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Delete single node&lt;/h3&gt;&lt;p&gt;To delete a single node, I created anode and use the DELETE clause:&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhvt5et4CpfI5N6agF7TcdcjzMdvAmT5LddIF5fcoWI6QUVSpHTp5172MphQxh8btxnrPCLFPTLRrwIK_btCpu7fUr8-qzXk1h24-5Yz00J5LnxiAXSgKiVRE8LHp-fWkkJewxtabwhdfjh3ObH-pfT6dR08BEuGrBGGoHkuElakLGl7BwjHN5FLu-mtA0&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;81&quot; data-original-width=&quot;492&quot; height=&quot;53&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhvt5et4CpfI5N6agF7TcdcjzMdvAmT5LddIF5fcoWI6QUVSpHTp5172MphQxh8btxnrPCLFPTLRrwIK_btCpu7fUr8-qzXk1h24-5Yz00J5LnxiAXSgKiVRE8LHp-fWkkJewxtabwhdfjh3ObH-pfT6dR08BEuGrBGGoHkuElakLGl7BwjHN5FLu-mtA0&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEi9BNXhgHmvBdf9DFxAdLsuRUsdXXJIGiXiX1PNz7gby9nFNzjJccZy4zzAOKXvYzHboInnZCyyeH64L6G2he61i2Y3VwrJKtAXinehgp9DDSxPtLQ-PS5ZdjGMg5cGHlB6-wuQlCd6XQk7Bh4e9X0Zf4DCg4TEYQa7Sd4MZ7tMYknxVcMNpOxMQAXtDz0&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img data-original-height=&quot;183&quot; data-original-width=&quot;729&quot; height=&quot;100&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEi9BNXhgHmvBdf9DFxAdLsuRUsdXXJIGiXiX1PNz7gby9nFNzjJccZy4zzAOKXvYzHboInnZCyyeH64L6G2he61i2Y3VwrJKtAXinehgp9DDSxPtLQ-PS5ZdjGMg5cGHlB6-wuQlCd6XQk7Bh4e9X0Zf4DCg4TEYQa7Sd4MZ7tMYknxVcMNpOxMQAXtDz0=w400-h100&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;CREATE p = (:Person {name:&#39;Tom Hanks&#39;})&lt;/li&gt;&lt;li&gt;MATCH (n:Person {name: &#39;Tom Hanks&#39;})&lt;/li&gt;&lt;li&gt;DELETE n&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Delete Relationships Only&lt;/h3&gt;&lt;p&gt;It is possible to delete a relationship while leaving the node(s) connected to that relationship otherwise unaffected.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhajj6GxBTlnMDLuajQcsS2vJ2CMJi_z6qldA4TI9Cm2l9PayhNG1BGcB76GMwm0RnZGJ7wdCUej0FRDAEE7WsJFbTsfAvc7Hrb202TQ3yq8_NbdvpGfFWwkPGdYgtFOH5AQqU_08OJk6TJu1jN9iltXdwx0fJTa-JxRX--rpJUbqkJTXo8FAy-0FZ2GJI&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;201&quot; data-original-width=&quot;753&quot; height=&quot;85&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhajj6GxBTlnMDLuajQcsS2vJ2CMJi_z6qldA4TI9Cm2l9PayhNG1BGcB76GMwm0RnZGJ7wdCUej0FRDAEE7WsJFbTsfAvc7Hrb202TQ3yq8_NbdvpGfFWwkPGdYgtFOH5AQqU_08OJk6TJu1jN9iltXdwx0fJTa-JxRX--rpJUbqkJTXo8FAy-0FZ2GJI&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEg30JD10dwvjbytXQozATtJpeNgX8Olc_AU_k7JX0UVYRllzUhmaq89dPaxz2obhUPt5Mja2cU_olS_294MJ8jvrgqtxcga3FZolSKceSu5Hhwc5HkUpTUi1dzI8zSZKKfUT-hKe_PXwDU8OYZ1g7S70zguz7s0G7YKow5UcSI8bpD7JauNogXeqJyQT14&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;104&quot; data-original-width=&quot;818&quot; height=&quot;41&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEg30JD10dwvjbytXQozATtJpeNgX8Olc_AU_k7JX0UVYRllzUhmaq89dPaxz2obhUPt5Mja2cU_olS_294MJ8jvrgqtxcga3FZolSKceSu5Hhwc5HkUpTUi1dzI8zSZKKfUT-hKe_PXwDU8OYZ1g7S70zguz7s0G7YKow5UcSI8bpD7JauNogXeqJyQT14&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;CREATE p = (:Person {name: &#39;Laurence Fishburne&#39;})-[r:ACTED_IN]-&amp;gt;(:Person {name: &#39;Andy Fishburne&#39;})&amp;nbsp; &amp;nbsp;return p&lt;/li&gt;&lt;li&gt;MATCH (n:Person {name: &#39;Laurence Fishburne&#39;})-[r:ACTED_IN]-&amp;gt;()&lt;/li&gt;&lt;li&gt;DELETE r&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Delete a node with all its relationships&lt;/h3&gt;&lt;p&gt;To delete nodes and any relationships connected them, use the DETACH DELETE clause.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjDwMJ7q1K1MQq_PupSWpThppEm06yylf-3ggc_ILS5skgXGw7N0Reqi8TSvRYqV6cqVbNgQ4aZUJDE5rLTxKNwb-wm25n4lTJhO38NwqhgXisyW48waYSYsyClq2JynClxlkIdNafhZtAOOhQYaX6QYcuiXCkV74EJaj_26cariWXHjQ9qJJ94pm7sID8&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;184&quot; data-original-width=&quot;757&quot; height=&quot;78&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjDwMJ7q1K1MQq_PupSWpThppEm06yylf-3ggc_ILS5skgXGw7N0Reqi8TSvRYqV6cqVbNgQ4aZUJDE5rLTxKNwb-wm25n4lTJhO38NwqhgXisyW48waYSYsyClq2JynClxlkIdNafhZtAOOhQYaX6QYcuiXCkV74EJaj_26cariWXHjQ9qJJ94pm7sID8&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjc_KvuXTKZGeUsG-LJyF2cyEJokVBz-ul_s2KyKsOGl7M0QPoL9S6Ny0RBFxwuagkqhd7lPeSAhlqA1eeSmQyvtFXHKrPT_dv6fzQUWDFoFu23rYtBqXtvOmy1ORpe6dk2lhVh6gyL5y_iu-avYjsDYj528TClg2S6W18qhqPJkdnMpLnAwvffH69CS2E&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;92&quot; data-original-width=&quot;525&quot; height=&quot;56&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjc_KvuXTKZGeUsG-LJyF2cyEJokVBz-ul_s2KyKsOGl7M0QPoL9S6Ny0RBFxwuagkqhd7lPeSAhlqA1eeSmQyvtFXHKrPT_dv6fzQUWDFoFu23rYtBqXtvOmy1ORpe6dk2lhVh6gyL5y_iu-avYjsDYj528TClg2S6W18qhqPJkdnMpLnAwvffH69CS2E&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;CREATE p = (:Person {name: &#39;Laurence Fishburne&#39;})-[r:ACTED_IN]-&amp;gt;(:Person {name: &#39;Andy Fishburne&#39;})&amp;nbsp; &amp;nbsp;return p&lt;/li&gt;&lt;li&gt;MATCH (n:Person {name: &#39;Carrie-Anne Moss&#39;})&lt;/li&gt;&lt;li&gt;DETACH DELETE n&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Delete all nodes and relationships&lt;/h3&gt;&lt;p&gt;It is possible to delete all nodes and relationships in a graph.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiXvIGoA0OGq3cYIcY56q2gp56vRhEzDxeXySYWzapGysNoGlFST0bYa8TTn3mFIg6FTUZWc2RdYqjIgxqzn5jUL6OioahKFVI1Ys78JVz5o2o26Uon3JmI8wRSYsusLwDgwAmBrImcJvjvTpyYAyC81rtRKmtxg9PcTXFfM6Ozbo_TFFl9wkivZvs0UEs&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;192&quot; data-original-width=&quot;604&quot; height=&quot;102&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiXvIGoA0OGq3cYIcY56q2gp56vRhEzDxeXySYWzapGysNoGlFST0bYa8TTn3mFIg6FTUZWc2RdYqjIgxqzn5jUL6OioahKFVI1Ys78JVz5o2o26Uon3JmI8wRSYsusLwDgwAmBrImcJvjvTpyYAyC81rtRKmtxg9PcTXFfM6Ozbo_TFFl9wkivZvs0UEs&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;MATCH (n)&lt;/li&gt;&lt;li&gt;DETACH DELETE n&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.algaestudy.com/feeds/3225871859727907329/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.algaestudy.com/2023/06/neo4j-delete-command-lab.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/3225871859727907329'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/3225871859727907329'/><link rel='alternate' type='text/html' href='https://www.algaestudy.com/2023/06/neo4j-delete-command-lab.html' title='Neo4J Delete Command Lab Day 2'/><author><name>Algae Education</name><uri>http://www.blogger.com/profile/12443040604753343283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='9' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQEOhe1V67n6e421LF5bUPOMBi3pPbW_IkAEQb_PNAxDB_ZyC6N9QqlIKNR3OIXafo4XbBlB3aO8i9w0cAuuNfUec1DD-skkLSiuvwvIHjkLjkGXkwssfCNrkK0GUkmJc/s220/Algae3.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEiZjDF4wmJyU6hyn08qTQVxEP6fbCmcwNj5k40fjX_dqtnDr7PR1gxPK8A8q-TbFnNoig2WII5OC8EpKRc2qkg9SW9DsM9BXeX6bT16_AJxlHPa538xmkiMYTRarmrOP_w3QVF5e-3783ntWN9pvpc0FttphszbovtzeenPLxkxxYCyEaMAM0rRgosx2_E=s72-c" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>3rd Floor, Crystal Arcade, No.416,, 27th Main, Sector 1 ( Agara), Opposite Pai International, HSR Layout, 1st Sector, HSR Layout, Bengaluru, Karnataka 560102, India</georss:featurename><georss:point>12.918734 77.65182</georss:point><georss:box>12.651034425752218 77.377161796875 13.186433574247783 77.926478203125</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8305675988893866325.post-6619383279232154071</id><published>2023-06-24T21:02:00.000-07:00</published><updated>2023-06-24T21:02:06.428-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CQL"/><category scheme="http://www.blogger.com/atom/ns#" term="GraphDb"/><category scheme="http://www.blogger.com/atom/ns#" term="Neo4J"/><title type='text'>Neo4j CQL</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h1 style=&quot;text-align: center;&quot;&gt;Cypher Query Language Commands&lt;/h1&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Neo4j Read CQL Clauses&lt;/h2&gt;&lt;p&gt;&lt;/p&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;MATCH&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;This clause is used to search the data with a specified pattern.&lt;/li&gt;&lt;li&gt;Syntax: Match (n)&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;OPTIONAL MATCH&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;This is the same as match&lt;/li&gt;&lt;li&gt;The only difference being it can use nulls in case of missing parts of the pattern.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;WHERE&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;This clause id is used to add contents to the CQL queries.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;START&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;This clause is used to find the starting points through the legacy indexes.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;LOAD CSV&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;This clause is used to import data from CSV files.&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjKTYXla4IePsvTPsL0owyMc3PhTgbOqPhHLvX08FIYnUaOm0P2-iqc5_7L-T2gpFyHLOWOCYtNrkGolisSkXR8vNkaqpLxII_ooaE0OEr1rwiQo4_8RMi71fJbkJqqV-G-w19GazkI_sKpGC6Fz9hsR0Ode4XTLnP4wP9PFKqz9DSZijFGF75-bsUtP_E&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img data-original-height=&quot;147&quot; data-original-width=&quot;627&quot; height=&quot;150&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjKTYXla4IePsvTPsL0owyMc3PhTgbOqPhHLvX08FIYnUaOm0P2-iqc5_7L-T2gpFyHLOWOCYtNrkGolisSkXR8vNkaqpLxII_ooaE0OEr1rwiQo4_8RMi71fJbkJqqV-G-w19GazkI_sKpGC6Fz9hsR0Ode4XTLnP4wP9PFKqz9DSZijFGF75-bsUtP_E=w640-h150&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2 style=&quot;clear: both; text-align: left;&quot;&gt;Neo4j Write CQL Clauses&lt;/h2&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;CREATE&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;This clause is used to create nodes, relationships, and properties.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;MERGE&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;This clause verifies whether the specified pattern exists in the graph. If not, it creates the pattern.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;SET&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;This clause is used to update labels on nodes, properties on nodes and relationships.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;DELETE&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;This clause is used to delete nodes and relationships or paths etc. from the graph.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;REMOVE&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;This clause is used to remove properties and elements from nodes and relationships.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;FOREACH&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;This class is used to update the data within a list.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;CREATE UNIQUE&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Using the clauses CREATE and MATCH, you can get a unique pattern by matching the existing pattern and creating the missing one.&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEi-p3H7LNsaqM2Bv6-AItpTkOZ-8wcwotxuQHA7C66icwAxFYI4Q0sOpr8og87fCs1VYhuUh03xGwhOk85Ai8BjW4vMQ3bDswrbn29P94z5M9g6B7xcm1LmCP5G7t4aHHrpHf7rpk2hqrXyZ2JY2eLGsUB3yZY_Qe5EoYv-p_PVM4X4IMJEvHnMvT_67VA&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img data-original-height=&quot;310&quot; data-original-width=&quot;627&quot; height=&quot;316&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEi-p3H7LNsaqM2Bv6-AItpTkOZ-8wcwotxuQHA7C66icwAxFYI4Q0sOpr8og87fCs1VYhuUh03xGwhOk85Ai8BjW4vMQ3bDswrbn29P94z5M9g6B7xcm1LmCP5G7t4aHHrpHf7rpk2hqrXyZ2JY2eLGsUB3yZY_Qe5EoYv-p_PVM4X4IMJEvHnMvT_67VA=w640-h316&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;h2 style=&quot;clear: both; text-align: left;&quot;&gt;Neo4j General CQL Clauses&lt;/h2&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;RETURN&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;This clause is used to define what to include in the query result set.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;ORDER BY&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;This clause is used to arrange the output of a query in order. It is used along with the clauses RETURN or WITH.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;LIMIT&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;This clause is used to limit the rows in the result to a specific value.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;SKIP&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;This clause is used to define from which row to start including the rows in the output.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;WITH&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;This clause is used to chain the query parts together.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;UNWIND&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;This clause is used to expand a list into a sequence of rows.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;UNION&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;This clause is used to combine the result of multiple queries.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;CALL&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;This clause is used to invoke a procedure deployed in the database.&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhMYoRsy5La2a38pnfvIELVeOvP0uusLwmAj9R3K4ELFcYqPp0_qiPn2DYAQ1EjIl8F3HrVq06DO9Lb1jFUO-WLRvgK8hvHVG_1d65OANVd76RU3ATj5LvKGhl2i82iEd72Op6AyGS__1NOrD8QjwpzEF_9Ygnojm4VwfFnbk7seZi4YkEKQf9kptCcts8&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img data-original-height=&quot;230&quot; data-original-width=&quot;627&quot; height=&quot;234&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhMYoRsy5La2a38pnfvIELVeOvP0uusLwmAj9R3K4ELFcYqPp0_qiPn2DYAQ1EjIl8F3HrVq06DO9Lb1jFUO-WLRvgK8hvHVG_1d65OANVd76RU3ATj5LvKGhl2i82iEd72Op6AyGS__1NOrD8QjwpzEF_9Ygnojm4VwfFnbk7seZi4YkEKQf9kptCcts8=w640-h234&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2 style=&quot;clear: both; text-align: left;&quot;&gt;Operators in Cypher Query Language&lt;/h2&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Mathematical&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;+, -, *, /, %, ^&lt;/li&gt;&lt;li&gt;Comparison&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;+, &amp;lt;&amp;gt;, &amp;lt;, &amp;gt;, &amp;lt;=, &amp;gt;=&lt;/li&gt;&lt;li&gt;Boolean&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;AND, OR, XOR, NOT&lt;/li&gt;&lt;li&gt;String&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;+&lt;/li&gt;&lt;li&gt;List&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;+, IN, [X], [X…..Y]&lt;/li&gt;&lt;li&gt;Regular Expression&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;=-&lt;/li&gt;&lt;li&gt;String matching&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;STARTS WITH, ENDS WITH, CONSTRAINTS&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEht4sO_ZglJwP-DqKgv8TCgwhrFpqQpU-O0Jmjv7UyU9L8owEcufY5wUqMKK1ydULgAGYIrEQwSmhYCo7ix8PSM8X8SN8IV1MOfKCyCSsHFpg2_pX9ynVoMgut9l_MDEhBhZSFt6ZOHSfXjqccf9KyeuBtCNlrm6ZC_OP43XFLB-NTfZ9er95Q-DJ4Kf_8&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img data-original-height=&quot;169&quot; data-original-width=&quot;600&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEht4sO_ZglJwP-DqKgv8TCgwhrFpqQpU-O0Jmjv7UyU9L8owEcufY5wUqMKK1ydULgAGYIrEQwSmhYCo7ix8PSM8X8SN8IV1MOfKCyCSsHFpg2_pX9ynVoMgut9l_MDEhBhZSFt6ZOHSfXjqccf9KyeuBtCNlrm6ZC_OP43XFLB-NTfZ9er95Q-DJ4Kf_8=w640-h180&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.algaestudy.com/feeds/6619383279232154071/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.algaestudy.com/2023/06/neo4j-cql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/6619383279232154071'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/6619383279232154071'/><link rel='alternate' type='text/html' href='https://www.algaestudy.com/2023/06/neo4j-cql.html' title='Neo4j CQL'/><author><name>Algae Education</name><uri>http://www.blogger.com/profile/12443040604753343283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='9' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQEOhe1V67n6e421LF5bUPOMBi3pPbW_IkAEQb_PNAxDB_ZyC6N9QqlIKNR3OIXafo4XbBlB3aO8i9w0cAuuNfUec1DD-skkLSiuvwvIHjkLjkGXkwssfCNrkK0GUkmJc/s220/Algae3.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEjKTYXla4IePsvTPsL0owyMc3PhTgbOqPhHLvX08FIYnUaOm0P2-iqc5_7L-T2gpFyHLOWOCYtNrkGolisSkXR8vNkaqpLxII_ooaE0OEr1rwiQo4_8RMi71fJbkJqqV-G-w19GazkI_sKpGC6Fz9hsR0Ode4XTLnP4wP9PFKqz9DSZijFGF75-bsUtP_E=s72-w640-h150-c" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>1480 Rue City Councillors, Montréal, QC H3B 1B4, Canada</georss:featurename><georss:point>45.505087 -73.5694991</georss:point><georss:box>45.312752160562468 -73.844157303125 45.697421839437538 -73.294840896875</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8305675988893866325.post-4437720824710854262</id><published>2023-06-17T21:49:00.003-07:00</published><updated>2023-06-17T21:49:45.376-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="GCP"/><category scheme="http://www.blogger.com/atom/ns#" term="Kubernetes"/><title type='text'>Introduction to Google Kubernetes Engine Cluster</title><content type='html'>&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h1 style=&quot;text-align: center;&quot;&gt;Clusters in GKE&lt;/h1&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Anatomy of a Kubernetes cluster&lt;/h2&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;The most simple way to think of Kubernetes is just like any other cluster.&lt;/li&gt;&lt;li&gt;It&#39;s a collection of computers joined together to perform some function.&lt;/li&gt;&lt;li&gt;A typical Kubernetes cluster will contain one or more masters and one or more nodes.&lt;/li&gt;&lt;li&gt;Nodes are just communal gang variety computers.&lt;/li&gt;&lt;li&gt;These can be large physical servers or even raspberry pies.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;In the case of Google Kubernetes engine, they are virtual machines running in Google compute engine.&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Kubernetes Master:&lt;/h3&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Masters run several components that form what&#39;s called the control plane.&lt;/li&gt;&lt;li&gt;This means they&#39;re in charge of controlling the cluster.&lt;/li&gt;&lt;li&gt;They make decisions about the cluster.&lt;/li&gt;&lt;li&gt;Such as where to schedule certain workloads.&lt;/li&gt;&lt;li&gt;The master is responsible for the state of a cluster.&lt;/li&gt;&lt;li&gt;It&#39;s constantly watching everything to make sure the state is as it should be.&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjgxImYoD5wXwX7wQbVaVo9onoki6-b2vkjCFTSWH9rY1rdQLVNwKhoW_2jkEki89pbfKiZI4W9L-yRM2RSPa-XWKK30y2Gpor5-Y5aSTkhoaLgGlPhdabySJqVPa1q6eKSJV6Bf4IdoeqFFXBq3Tm09MHT3ZjvHtdxD2_wMyB_CMKYjj2lfMKbfDDc&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img data-original-height=&quot;311&quot; data-original-width=&quot;474&quot; height=&quot;210&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjgxImYoD5wXwX7wQbVaVo9onoki6-b2vkjCFTSWH9rY1rdQLVNwKhoW_2jkEki89pbfKiZI4W9L-yRM2RSPa-XWKK30y2Gpor5-Y5aSTkhoaLgGlPhdabySJqVPa1q6eKSJV6Bf4IdoeqFFXBq3Tm09MHT3ZjvHtdxD2_wMyB_CMKYjj2lfMKbfDDc=w320-h210&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Components of a Kubernetes Master.&lt;/h3&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;API Server:&lt;/b&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;The API Server is the front end of the control plane it exposes the API for all the master functions.&lt;/li&gt;&lt;li&gt;Every time you communicate with the master or anything else communicates with the master It would be through this API.&lt;/li&gt;&lt;li&gt;Most of the time you&#39;ll use google cloud counsel or command line tool but in the background it&#39;s always talking to this API.&lt;/li&gt;&lt;li&gt;Once a cluster is up and running your day to day interaction is just going to be with that API Server.&amp;nbsp;&lt;/li&gt;&lt;li&gt;And with GKE there is a good reason you don&#39;t need to worry too much about this individual components.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;b&gt;etcd&lt;/b&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;etcd&amp;nbsp; is Kubernetes own database.&lt;/li&gt;&lt;li&gt;Storing all of it&#39;s configuration in state.&lt;/li&gt;&lt;li&gt;We call it a database but really etcd is just a key value store.&lt;/li&gt;&lt;li&gt;It is very well known one that is designed for scale and higher availability.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;b&gt;Scheduler&lt;/b&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;The Scheduler is responsible for scheduling work loads.&lt;/li&gt;&lt;li&gt;That means is when you want to deploy a container the scheduler will pick a node to run that container on.&lt;/li&gt;&lt;li&gt;The node it picks can be affected by all kinds of factors such as the current load on each available node.&lt;/li&gt;&lt;li&gt;The requirements of your container and some other customizable constraints.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;b&gt;Cloud Controller Manager&lt;/b&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;The Cloud Controller Manager, is what allows Kubernetes to work with cloud platforms.&lt;/li&gt;&lt;li&gt;Kubernetes itself is an open source project&amp;nbsp; with contributions from lots of large companies&lt;/li&gt;&lt;li&gt;not just Google So it doesn&#39;t natively contain functionality for google cloud only.&amp;nbsp;&lt;/li&gt;&lt;li&gt;This manager is responsible for handling things like networking and load balancing as they translate to the product and services of a particular cloud platform.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;b&gt;Kube Controller Manager&lt;/b&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Its job is to manage a handful of controllers in the cluster.&lt;/li&gt;&lt;li&gt;The controllers themselves look after things like nodes and a few other objects.&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Kubernetes Node&lt;/h2&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Nodes run components that form the runtime environment.&lt;/li&gt;&lt;li&gt;There basically the workers with a container runtime.&lt;/li&gt;&lt;li&gt;In this node computers, provide the resources of the cluster.&lt;/li&gt;&lt;li&gt;All of the CPU and RAM can be used to run containers&lt;/li&gt;&lt;li&gt;When you deploy a container in Kubernetes the master will pick a node to run it on.&amp;nbsp;&lt;/li&gt;&lt;li&gt;These are going to be our actual virtual machines that will run containers for us.&amp;nbsp;&lt;/li&gt;&lt;li&gt;They&#39;re a lot more straightforward than the master.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEidkoJbWE3WhOAkmkGdZn-XnJK05aY9Fn41mOONjYt30zK6wqxDRuJR0cfYhI6ma75M96URbxAkMPKBp9pXvQfEAKlK33O3RuV9PKtAIQraBF1M0ZV4wKG5nvsRCw_PMvLXkqZ5OoZnuwJV0Toev6dhAutJ-p4mx73KOgHIDsEjrgZ9HVdL1vvfmYXV&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img data-original-height=&quot;313&quot; data-original-width=&quot;417&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEidkoJbWE3WhOAkmkGdZn-XnJK05aY9Fn41mOONjYt30zK6wqxDRuJR0cfYhI6ma75M96URbxAkMPKBp9pXvQfEAKlK33O3RuV9PKtAIQraBF1M0ZV4wKG5nvsRCw_PMvLXkqZ5OoZnuwJV0Toev6dhAutJ-p4mx73KOgHIDsEjrgZ9HVdL1vvfmYXV=w320-h240&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Component&#39;s of Kubernetes node&amp;nbsp;&amp;nbsp;&lt;/h3&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;Kubelet:&lt;/b&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;It is an agent for Kubernetes.&lt;/li&gt;&lt;li&gt;It communicates with the control play and takes instructions such as deploying containers when it&#39;s told to.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;b&gt;Kube-proxy:&lt;/b&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;It is responsible for managing network connections in and out of the node.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;b&gt;Actual Container Runtime:&lt;/b&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Just like when we run our first container in cloud shell the noble run docker as a container runtime to allow it to run containers.&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;How to build a Kubernetes cluster?&lt;/h2&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;The hard way.&lt;/b&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;You&#39;ll need provision of virtual machines for you master and your nodes.&lt;/li&gt;&lt;li&gt;You&#39;ll need to install the Kubernetes software create a network overlay.&lt;/li&gt;&lt;li&gt;Set up certificates so that all of the components can talk to each other secularly.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;b&gt;The easy way.&lt;/b&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Use GKE.&lt;/li&gt;&lt;li&gt;GKE provisions and manages the underlying cloud resources automatically.&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;GKE is a fully managed service&lt;/h2&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;It will create masters and nodes for you to your specification using a container-optimized operating system.&lt;/li&gt;&lt;li&gt;You design your cluster within GKE without having to build or maintain individual masters or nodes.&lt;/li&gt;&lt;li&gt;It comes with built-in automatic upgrading, automatic self-repair.&lt;/li&gt;&lt;li&gt;It has many options for fine grain resource control and cluster scaling.&lt;/li&gt;&lt;li&gt;Its integrated with all of the other products and services Google cloud platform.&lt;/li&gt;&lt;li&gt;You don&#39;t even touch the master control plane.&lt;/li&gt;&lt;li&gt;It is completely managed for you.&lt;/li&gt;&lt;li&gt;It&#39;s made of compute engine VMs just like your nodes, but they won&#39;t even show up in your project.&lt;/li&gt;&lt;li&gt;Google&#39;s own CRET are looking after them for you.&lt;/li&gt;&lt;li&gt;Abstracting away the control plane takes away a lot of the operation overhead.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;How do we operate and interact with GKE&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;Google Cloud Console&lt;/b&gt;.&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Kubernetes functionality is exposed to us to the simple UI of the cloud console.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;b&gt;Command lines for Kubernetis&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;Kubectl&lt;/b&gt; for operating a running cluster&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Kubectl allows us to interact with Kubernetes by defining the objects we want to deploy.&lt;/li&gt;&lt;li&gt;These objects are just abstractions of what we want to run and how we want to run it.&lt;/li&gt;&lt;li&gt;Kubectl takes our instructions and passes them to the API server.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;b&gt;Communicate with API Server&lt;/b&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Perform their own function to carry out our commands.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;b&gt;Create and manage life-cycle of Kubernetes objects&lt;/b&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Everything in Kubernetes is an object and every object has a state.&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.algaestudy.com/feeds/4437720824710854262/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.algaestudy.com/2023/06/introduction-to-google-kubernetes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/4437720824710854262'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/4437720824710854262'/><link rel='alternate' type='text/html' href='https://www.algaestudy.com/2023/06/introduction-to-google-kubernetes.html' title='Introduction to Google Kubernetes Engine Cluster'/><author><name>Algae Education</name><uri>http://www.blogger.com/profile/12443040604753343283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='9' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQEOhe1V67n6e421LF5bUPOMBi3pPbW_IkAEQb_PNAxDB_ZyC6N9QqlIKNR3OIXafo4XbBlB3aO8i9w0cAuuNfUec1DD-skkLSiuvwvIHjkLjkGXkwssfCNrkK0GUkmJc/s220/Algae3.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEjgxImYoD5wXwX7wQbVaVo9onoki6-b2vkjCFTSWH9rY1rdQLVNwKhoW_2jkEki89pbfKiZI4W9L-yRM2RSPa-XWKK30y2Gpor5-Y5aSTkhoaLgGlPhdabySJqVPa1q6eKSJV6Bf4IdoeqFFXBq3Tm09MHT3ZjvHtdxD2_wMyB_CMKYjj2lfMKbfDDc=s72-w320-h210-c" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>2211 Campus Dr, Evanston, IL 60208, USA</georss:featurename><georss:point>42.057427 -87.6719431</georss:point><georss:box>13.747193163821152 -122.8281931 70.367660836178842 -52.515693099999993</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8305675988893866325.post-8831442054453942540</id><published>2023-06-12T21:46:00.005-07:00</published><updated>2023-06-12T22:00:50.524-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="GCP"/><category scheme="http://www.blogger.com/atom/ns#" term="GCP-LAB"/><category scheme="http://www.blogger.com/atom/ns#" term="Kubernetes"/><title type='text'>Fire up your First Container in Google Cloud</title><content type='html'>&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h1 style=&quot;text-align: center;&quot;&gt;&amp;nbsp;Containers - Lab&lt;/h1&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Anatomy of a Container&lt;/h2&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Containers start life as an image.&lt;/li&gt;&lt;li&gt;You can think of Image just like any other packaging format, like a Tarbell.&lt;/li&gt;&lt;li&gt;The difference is that container images, are made up of different layers, one on top of the other.&lt;/li&gt;&lt;li&gt;When you run a container, the image is used, and a small read-write layer is added over the top.&lt;/li&gt;&lt;li&gt;Every time you run a container from an image, you&#39;ll get exactly the same behavior.&lt;/li&gt;&lt;li&gt;When a container stops, the read-write layer goes away.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span id=&quot;docs-internal-guid-06b748f3-7fff-772b-4097-26a7918ffc84&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 301px; overflow: hidden; width: 624px;&quot;&gt;&lt;img alt=&quot;Containers start life as an image. You can think of Image just like any other packaging format, like a Tarbell. The difference is that container images, are made up of different layers, one on top of the other. When you run a container, the image is used, and a small read-write layer is added over the top. Every time you run a container from an image, you&#39;ll get exactly the same behavior. When a container stops, the read-write layer goes away.&quot; src=&quot;https://lh6.googleusercontent.com/bZtquKv1bJeQh6rDYrBOCj9tDNSyDvaLJ38Cz1-GVjqO-0JBO08avRVybZRyg1edkr9v7-jpC5AyM9axcOUsjKPd4tB4pYKMfHFyAWPRle77csJsqDCANz0Ajseg-1B0rHtzrM5iwBLrtkiRQGeo8A=s16000&quot; style=&quot;margin-left: 0px; margin-top: 0px;&quot; title=&quot;Containers start life as an image. You can think of Image just like any other packaging format, like a Tarbell. The difference is that container images, are made up of different layers, one on top of the other. When you run a container, the image is used, and a small read-write layer is added over the top. Every time you run a container from an image, you&#39;ll get exactly the same behavior. When a container stops, the read-write layer goes away.&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Setting up Container in GCP&lt;/h2&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;We&#39;re going to create a Python app in Docker&amp;nbsp; and we&#39;ll run this app in a Docker container and learn how to interact with local containers.&amp;nbsp;&lt;/li&gt;&lt;li&gt;We&#39;ll tag our Docker image and push it to a registry, and we&#39;ll do all this from inside the Google Cloud Console.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h4&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Steps:&lt;/h4&gt;&lt;p&gt;&lt;/p&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Open the cloud shell&lt;/li&gt;&lt;li&gt;create a folder myapp and create 3 files in it namely server.py, requirements.txt, Dockerfile&lt;/li&gt;&lt;li&gt;Copy the sample code from url:&amp;nbsp;&amp;nbsp;&lt;a href=&quot;https://github.com/ACloudGuru-Resources/Course_GKE_Beginner_To_Pro/tree/master/Chapter_One/Lecture_4_Lab/myapp&quot;&gt;https://github.com/ACloudGuru-Resources/Course_GKE_Beginner_To_Pro/tree/master/Chapter_One/Lecture_4_Lab/myapp&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Change directory to myapp using cd myapp&lt;/li&gt;&lt;li&gt;Build your first container image&amp;nbsp;&lt;/li&gt;&lt;li&gt;See all the images created using&lt;/li&gt;&lt;li&gt;Get the container id with below command&lt;/li&gt;&lt;li&gt;To see all running containers use docker ps&lt;/li&gt;&lt;li&gt;Test the application using curl command&lt;/li&gt;&lt;li&gt;Check whats there in containers using&lt;/li&gt;&lt;li&gt;Enable google container registry api 🡪 enable&amp;nbsp;&lt;/li&gt;&lt;li&gt;Now we can tag the image and push in container registry gcr.io&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Code For Lab:&amp;nbsp;&lt;/h3&gt;&lt;p&gt;&amp;nbsp;&lt;a href=&quot;https://github.com/ACloudGuru-Resources/Course_GKE_Beginner_To_Pro/tree/master/Chapter_One/Lecture_4_Lab/myapp&quot;&gt;https://github.com/ACloudGuru-Resources/Course_GKE_Beginner_To_Pro/tree/master/Chapter_One/Lecture_4_Lab/myapp&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Step 1 &amp;amp; 2:&amp;nbsp;&lt;/h4&gt;&lt;div style=&quot;text-align: left;&quot;&gt;In Command shell create a folder myapp and create 3 files in it namely and dump the code copied from github&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;server.py&lt;/li&gt;&lt;li&gt;requirements.txt&lt;/li&gt;&lt;li&gt;Dockerfile&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhPxRJRgCRCofDKPG8tOVWif522RMewQyhoIVUNRduHDDDdfZbuSzI-AILCNZabVkW_mAkUv-OIUppYUfLpRLBYipvRpbuX2IhduSIXzyn_URcujLn6c8ZHqO_Iw8AqoqW5W0fA7YSvBR2Fn1gIDjR7QvZiueVpLF2NshSxEdhBahzDU923L9TV72VV&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Change directory to myapp using cd myapp Build your first container image  See all the images created using Get the container id with below command To see all running containers use docker ps Test the application using curl command Check whats there in containers using Enable google container registry api 🡪 enable  Now we can tag the image and push in container registry gcr.io algaestudy klassroom.algaeservice  algaeservices&quot; data-original-height=&quot;119&quot; data-original-width=&quot;334&quot; height=&quot;114&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhPxRJRgCRCofDKPG8tOVWif522RMewQyhoIVUNRduHDDDdfZbuSzI-AILCNZabVkW_mAkUv-OIUppYUfLpRLBYipvRpbuX2IhduSIXzyn_URcujLn6c8ZHqO_Iw8AqoqW5W0fA7YSvBR2Fn1gIDjR7QvZiueVpLF2NshSxEdhBahzDU923L9TV72VV=w320-h114&quot; title=&quot;Change directory to myapp using cd myapp Build your first container image  See all the images created using Get the container id with below command To see all running containers use docker ps Test the application using curl command Check whats there in containers using Enable google container registry api 🡪 enable  Now we can tag the image and push in container registry gcr.io algaestudy klassroom.algaeservice  algaeservices&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjMxXMtmaeUsKtNdOvnsdpQNrlFVfZyGf_fp184lWHSGiG3bXTRmJh-rMFRVR0bJzRGZ1WqNouLlbkhDITEmJF1XNCw8Z6xvFplbePG6oV6fWm5SL9vt25Nf1dxXdqya5Wh7J1x1RtUQs6uEQxKJcPO16C49pm7t0zhdOQ2FoEWjD9qN2G2ckML1Drf&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;Change directory to myapp using cd myapp Build your first container image  See all the images created using Get the container id with below command To see all running containers use docker ps Test the application using curl command Check whats there in containers using Enable google container registry api 🡪 enable  Now we can tag the image and push in container registry gcr.io algaestudy klassroom.algaeservice  algaeservices&quot; data-original-height=&quot;88&quot; data-original-width=&quot;421&quot; height=&quot;67&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjMxXMtmaeUsKtNdOvnsdpQNrlFVfZyGf_fp184lWHSGiG3bXTRmJh-rMFRVR0bJzRGZ1WqNouLlbkhDITEmJF1XNCw8Z6xvFplbePG6oV6fWm5SL9vt25Nf1dxXdqya5Wh7J1x1RtUQs6uEQxKJcPO16C49pm7t0zhdOQ2FoEWjD9qN2G2ckML1Drf=w320-h67&quot; title=&quot;Change directory to myapp using cd myapp Build your first container image  See all the images created using Get the container id with below command To see all running containers use docker ps Test the application using curl command Check whats there in containers using Enable google container registry api 🡪 enable  Now we can tag the image and push in container registry gcr.io algaestudy klassroom.algaeservice  algaeservices&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjMxXMtmaeUsKtNdOvnsdpQNrlFVfZyGf_fp184lWHSGiG3bXTRmJh-rMFRVR0bJzRGZ1WqNouLlbkhDITEmJF1XNCw8Z6xvFplbePG6oV6fWm5SL9vt25Nf1dxXdqya5Wh7J1x1RtUQs6uEQxKJcPO16C49pm7t0zhdOQ2FoEWjD9qN2G2ckML1Drf&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhlUY-t8axNQ08NDsG68JTtwI9ZAzqiGu3NOBaJ2cwb9aolLTyDURvpADBHjpyUQ0VaEqX-u8f0lipet_DMqZpby4cjj7Zp69hMxPoWINA2HMkoUtVTpXHLkowjxIg1Mk_ykaStDjlauzsMB0268btZgJVU3OR2tBfrePXTDVCi4KLI2UzE95nNQZXA&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Change directory to myapp using cd myapp Build your first container image  See all the images created using Get the container id with below command To see all running containers use docker ps Test the application using curl command Check whats there in containers using Enable google container registry api 🡪 enable  Now we can tag the image and push in container registry gcr.io algaestudy klassroom.algaeservice  algaeservices&quot; data-original-height=&quot;331&quot; data-original-width=&quot;674&quot; height=&quot;157&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhlUY-t8axNQ08NDsG68JTtwI9ZAzqiGu3NOBaJ2cwb9aolLTyDURvpADBHjpyUQ0VaEqX-u8f0lipet_DMqZpby4cjj7Zp69hMxPoWINA2HMkoUtVTpXHLkowjxIg1Mk_ykaStDjlauzsMB0268btZgJVU3OR2tBfrePXTDVCi4KLI2UzE95nNQZXA=w320-h157&quot; title=&quot;Change directory to myapp using cd myapp Build your first container image  See all the images created using Get the container id with below command To see all running containers use docker ps Test the application using curl command Check whats there in containers using Enable google container registry api 🡪 enable  Now we can tag the image and push in container registry gcr.io algaestudy klassroom.algaeservice  algaeservices&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjPOgItF0D36rY1q1rqFCE8RktPeHgxqmbVqekcghOrrNUE9PUBiVUP1QOF_4tUAKNarPZm2ZcEwT91tUSmocwrpDs6i-FJONzlmHLEPMY4rZas030ujGSUmcoCkKm8fJ8L05Rvt2ZUHkeoSZ15eqeg3qEUrd9hngAOmOb5xWdvhmQRCc6-3NrcN-hO&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;Change directory to myapp using cd myapp Build your first container image  See all the images created using Get the container id with below command To see all running containers use docker ps Test the application using curl command Check whats there in containers using Enable google container registry api 🡪 enable  Now we can tag the image and push in container registry gcr.io algaestudy klassroom.algaeservice  algaeservices&quot; data-original-height=&quot;358&quot; data-original-width=&quot;637&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjPOgItF0D36rY1q1rqFCE8RktPeHgxqmbVqekcghOrrNUE9PUBiVUP1QOF_4tUAKNarPZm2ZcEwT91tUSmocwrpDs6i-FJONzlmHLEPMY4rZas030ujGSUmcoCkKm8fJ8L05Rvt2ZUHkeoSZ15eqeg3qEUrd9hngAOmOb5xWdvhmQRCc6-3NrcN-hO=w320-h180&quot; title=&quot;Change directory to myapp using cd myapp Build your first container image  See all the images created using Get the container id with below command To see all running containers use docker ps Test the application using curl command Check whats there in containers using Enable google container registry api 🡪 enable  Now we can tag the image and push in container registry gcr.io algaestudy klassroom.algaeservice  algaeservices&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEh0iz2tUvBskcl0Rl2FRte91HO55kjS8wXtMTs22mh2IUWG-lU8mhGZiMIcZ-t6Rwk1KG7UeyTmsa2yn7yvoOxQufDh_ZKOm9uV9uYMh2ci7LF_WTIrRCg9dVE-y8yZ6z0pOhfhHATx2UpyZTlb759d5Dy3vcW3Q1YkQ2Rq5iA49TVHDk0lfFnen9j7&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Change directory to myapp using cd myapp Build your first container image  See all the images created using Get the container id with below command To see all running containers use docker ps Test the application using curl command Check whats there in containers using Enable google container registry api 🡪 enable  Now we can tag the image and push in container registry gcr.io algaestudy klassroom.algaeservice  algaeservices&quot; data-original-height=&quot;155&quot; data-original-width=&quot;698&quot; height=&quot;89&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEh0iz2tUvBskcl0Rl2FRte91HO55kjS8wXtMTs22mh2IUWG-lU8mhGZiMIcZ-t6Rwk1KG7UeyTmsa2yn7yvoOxQufDh_ZKOm9uV9uYMh2ci7LF_WTIrRCg9dVE-y8yZ6z0pOhfhHATx2UpyZTlb759d5Dy3vcW3Q1YkQ2Rq5iA49TVHDk0lfFnen9j7=w400-h89&quot; title=&quot;Change directory to myapp using cd myapp Build your first container image  See all the images created using Get the container id with below command To see all running containers use docker ps Test the application using curl command Check whats there in containers using Enable google container registry api 🡪 enable  Now we can tag the image and push in container registry gcr.io algaestudy klassroom.algaeservice  algaeservices&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhJNxLZU-0FnzYSr5ZhIlZpEC2yDUuUxVNvTr4GkZF-VeXV31txFDIGccaFQrxzQq7R75sa-Qx0wI1Pj1DyiCQ_U8ghy7NjWhrwDii0J6chapsHSKDIXGBQK-4-fWWxB003sNVWk3D3iDlqrLFrUE5bNBM6__kufG4ilxNFvfFGw2kv7wRz0UDUFJvT&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;234&quot; data-original-width=&quot;368&quot; height=&quot;203&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhJNxLZU-0FnzYSr5ZhIlZpEC2yDUuUxVNvTr4GkZF-VeXV31txFDIGccaFQrxzQq7R75sa-Qx0wI1Pj1DyiCQ_U8ghy7NjWhrwDii0J6chapsHSKDIXGBQK-4-fWWxB003sNVWk3D3iDlqrLFrUE5bNBM6__kufG4ilxNFvfFGw2kv7wRz0UDUFJvT&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.295; margin-bottom: 8pt; margin-top: 0pt;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b&gt;Step 3&lt;/b&gt;&lt;/span&gt;&lt;span face=&quot;Calibri,sans-serif&quot; style=&quot;background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt; : change directory to myapp using cd myapp&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span id=&quot;docs-internal-guid-928c88fb-7fff-1d16-bc61-555969e47a18&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.295; margin-bottom: 8pt; margin-top: 0pt;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 22px; overflow: hidden; width: 557px;&quot;&gt;&lt;img alt=&quot;Change directory to myapp using cd myapp Build your first container image  See all the images created using Get the container id with below command To see all running containers use docker ps Test the application using curl command Check whats there in containers using Enable google container registry api 🡪 enable  Now we can tag the image and push in container registry gcr.io algaestudy klassroom.algaeservice  algaeservices&quot; src=&quot;https://lh5.googleusercontent.com/oDmR9qalZL3eol6kA1Xdm4m4DgHXH0mWp6mQLde5pHdhJsQTTyA_F2CiCOoSPBTbNuoX7m-uTb0PXUYPxcYUnolD0aiSfYDWQAOGHJquGPaqU4Tivb6YB5hUW3lOwopdz5_8ryTqTBeumSyzw5jGhg=s16000&quot; style=&quot;margin-left: 0px; margin-top: 0px;&quot; title=&quot;Change directory to myapp using cd myapp Build your first container image  See all the images created using Get the container id with below command To see all running containers use docker ps Test the application using curl command Check whats there in containers using Enable google container registry api 🡪 enable  Now we can tag the image and push in container registry gcr.io algaestudy klassroom.algaeservice  algaeservices&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.295; margin-bottom: 8pt; margin-top: 0pt;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;b&gt;Step 4 &lt;/b&gt;: build your first container image with below command&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.295; margin-bottom: 8pt; margin-top: 0pt;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 18px; overflow: hidden; width: 624px;&quot;&gt;&lt;img alt=&quot;Change directory to myapp using cd myapp Build your first container image  See all the images created using Get the container id with below command To see all running containers use docker ps Test the application using curl command Check whats there in containers using Enable google container registry api 🡪 enable  Now we can tag the image and push in container registry gcr.io algaestudy klassroom.algaeservice  algaeservices&quot; src=&quot;https://lh6.googleusercontent.com/ktsSZme8BZe_Ywo5y3oPgw25TQN4MneYZ0lw1K8XeBJqXoOovV9bcyj42agK8YqcvGKYMR-wKfXKB79j9pwmsUnFMQIP_lyVYFfw6alHB6C8FPGwWN5DB4g-vnuGJ4UOzvxdKgORV-xAx_G6viNM_Q=s16000&quot; style=&quot;margin-left: 0px; margin-top: 0px;&quot; title=&quot;Change directory to myapp using cd myapp Build your first container image  See all the images created using Get the container id with below command To see all running containers use docker ps Test the application using curl command Check whats there in containers using Enable google container registry api 🡪 enable  Now we can tag the image and push in container registry gcr.io algaestudy klassroom.algaeservice  algaeservices&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.295; margin-bottom: 8pt; margin-top: 0pt;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;b&gt;Step 5&lt;/b&gt; : see all the images created using&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.295; margin-bottom: 8pt; margin-top: 0pt;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 17px; overflow: hidden; width: 624px;&quot;&gt;&lt;img alt=&quot;Change directory to myapp using cd myapp Build your first container image  See all the images created using Get the container id with below command To see all running containers use docker ps Test the application using curl command Check whats there in containers using Enable google container registry api 🡪 enable  Now we can tag the image and push in container registry gcr.io algaestudy klassroom.algaeservice  algaeservices&quot; src=&quot;https://lh5.googleusercontent.com/MO5qHw_vRvr3XOXgIHRKSol4jHM9ubsxopfjdLA96glOfBGbgpFr4y5LPNLsLe0dhhu-vN1AZpHpt90vF7kYQKmRsqC_P32v4PeBODIG21nQIl_x5XETcuAeqdZuBdXTNHxRXV4vIpEQmdtDmf9X8g=s16000&quot; style=&quot;margin-left: 0px; margin-top: 0px;&quot; title=&quot;Change directory to myapp using cd myapp Build your first container image  See all the images created using Get the container id with below command To see all running containers use docker ps Test the application using curl command Check whats there in containers using Enable google container registry api 🡪 enable  Now we can tag the image and push in container registry gcr.io algaestudy klassroom.algaeservice  algaeservices&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Docker File Explain&lt;/h2&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;We can create a container image with a Dockerfile.&lt;/li&gt;&lt;ul&gt;&lt;li&gt;This is just a normal text file&amp;nbsp;&lt;/li&gt;&lt;li&gt;It contain a set of instructions that tell Docker how to build an image.&lt;/li&gt;&lt;li&gt;We can inherit from an image that already exists, like a very minimal Linux distribution, then we might add some other instructions, to copy some files into the image or run other commands.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;We can specify in the Docker file, what commands should be executed when the container is running.&amp;nbsp;&lt;/li&gt;&lt;li&gt;Every instruction in the Docker file creates a new layer within the image.&lt;/li&gt;&lt;li&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;A basic Docker File looks like.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiV1Mt_UpkA3A4iqR4euxOJ1fA7vIUInrBQzsHo7_QGGmNn2pWhd-ARyrPndoEGVl39dSS7ogf9Vg5rvopkWpLo0EAlVIHsaFEaBPms4JVlKXETglC0H8LXPLpVzTXMNT1GpurVgVMv8ZIgBeKyViQgNgm_TSf-wEdHFELTDj4lj6Ekze2gO4k07nQb&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&amp;quot;FROM unbuntu: 18.04&amp;quot;:  We inherit from a public Ubuntu image (We could inherit from anything here, including our own images.) &amp;quot;COPY  .  /app&amp;quot;:  We use the copy command to copy everything in the local directory to slash app inside the Docker image. This creates a new layer within the image. &amp;quot;RUN make /app&amp;quot;:  The next instruction executes the make command to compile our application. &amp;quot;CMD python /app/app.py&amp;quot;:  The final Command states that when this container image is running a Python Application should be executed.&quot; data-original-height=&quot;200&quot; data-original-width=&quot;319&quot; height=&quot;201&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiV1Mt_UpkA3A4iqR4euxOJ1fA7vIUInrBQzsHo7_QGGmNn2pWhd-ARyrPndoEGVl39dSS7ogf9Vg5rvopkWpLo0EAlVIHsaFEaBPms4JVlKXETglC0H8LXPLpVzTXMNT1GpurVgVMv8ZIgBeKyViQgNgm_TSf-wEdHFELTDj4lj6Ekze2gO4k07nQb=w320-h201&quot; title=&quot;&amp;quot;FROM unbuntu: 18.04&amp;quot;:  We inherit from a public Ubuntu image (We could inherit from anything here, including our own images.) &amp;quot;COPY  .  /app&amp;quot;:  We use the copy command to copy everything in the local directory to slash app inside the Docker image. This creates a new layer within the image. &amp;quot;RUN make /app&amp;quot;:  The next instruction executes the make command to compile our application. &amp;quot;CMD python /app/app.py&amp;quot;:  The final Command states that when this container image is running a Python Application should be executed.&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;clear: both; text-align: left;&quot;&gt;Explain Docker File Code:&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;&quot;FROM unbuntu: 18.04&quot;:&amp;nbsp;&lt;/b&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;We inherit from a public Ubuntu image (We could inherit from anything here, including our own images.)&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;b&gt;&quot;COPY&amp;nbsp; .&amp;nbsp; /app&quot;:&amp;nbsp;&lt;/b&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;We use the copy command to copy everything in the local directory to slash app inside the Docker image. This creates a new layer within the image.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;b&gt;&quot;RUN make /app&quot;:&amp;nbsp;&lt;/b&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;The next instruction executes the make command to compile our application.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;b&gt;&quot;CMD python /app/app.py&quot;:&amp;nbsp;&lt;/b&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;The final Command states that when this container image is running a Python Application should be executed.&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;clear: both; text-align: left;&quot;&gt;Consuming Docker File&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;We saved this file with the name &quot;Dockerfile&#39; in our local working directory alongside our code.&lt;/li&gt;&lt;li&gt;To build an image with these instructions we use the Docker command line.&lt;/li&gt;&lt;li&gt;The keyword built tells Docker that we want to build a new image minus t lets us add a tag or name to that&amp;nbsp; to refer to it later.&lt;/li&gt;&lt;li&gt;The dot at the end of the command refers to the directory the Docker should build the image from. So, dot means our local working directory.&lt;/li&gt;&lt;li&gt;If you don&#39;t specify a location, or you specify a directory that does not contain a Dockerfile, the command will fail.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;clear: both; text-align: left;&quot;&gt;Visualization of&amp;nbsp; image, once built alongside our Docker File Instructions.&amp;nbsp;&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;The layers are in reverse order, as it&#39;s best to imagine Docker building up adding layers from the bottom to the top.&lt;/li&gt;&lt;li&gt;Each layer gets its own unique ID.&lt;/li&gt;&lt;li&gt;The first and largest layer is our inherited Ubuntu image.&lt;/li&gt;&lt;li&gt;The next layer at about 195k is where we&#39;ve copied in our application files.&lt;/li&gt;&lt;li&gt;The top most layer, represents what changed when we run the make command inside the image.&lt;/li&gt;&lt;li&gt;The real benefit to developers here is containers promotes smaller shared images.&lt;/li&gt;&lt;li&gt;If we make a change to this container, only the layer that has changed has to be updated. Built updates might only be a few kilobytes of changes.&lt;/li&gt;&lt;li&gt;By inheriting images, we can remain consistent in our bills, and avoid reinventing the wheel with every image we create.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjOtsgzO7fYPwg6F59D84a6VvuHumZqjXHXPrVP7FTDMFTsmDljDRND60HJ0LE4r-fnd3bOZQUSJTx1X9-mwsi4VxGZj5t0pRZO8KvCZVBpIacp_u1IBUCIIeQ8GlT33lMWLoFMOdDQvGmfN3QFK6D0XcDJKZJEhupwo4zfHLqa6vRHs8V_9WkjyNyO&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;The layers are in reverse order, as it&#39;s best to imagine Docker building up adding layers from the bottom to the top. Each layer gets its own unique ID. The first and largest layer is our inherited Ubuntu image. The next layer at about 195k is where we&#39;ve copied in our application files. The top most layer, represents what changed when we run the make command inside the image. The real benefit to developers here is containers promotes smaller shared images. If we make a change to this container, only the layer that has changed has to be updated. Built updates might only be a few kilobytes of changes. By inheriting images, we can remain consistent in our bills, and avoid reinventing the wheel with every image we create.  algaestudy&quot; data-original-height=&quot;245&quot; data-original-width=&quot;377&quot; height=&quot;208&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjOtsgzO7fYPwg6F59D84a6VvuHumZqjXHXPrVP7FTDMFTsmDljDRND60HJ0LE4r-fnd3bOZQUSJTx1X9-mwsi4VxGZj5t0pRZO8KvCZVBpIacp_u1IBUCIIeQ8GlT33lMWLoFMOdDQvGmfN3QFK6D0XcDJKZJEhupwo4zfHLqa6vRHs8V_9WkjyNyO=w320-h208&quot; title=&quot;The layers are in reverse order, as it&#39;s best to imagine Docker building up adding layers from the bottom to the top. Each layer gets its own unique ID. The first and largest layer is our inherited Ubuntu image. The next layer at about 195k is where we&#39;ve copied in our application files. The top most layer, represents what changed when we run the make command inside the image. The real benefit to developers here is containers promotes smaller shared images. If we make a change to this container, only the layer that has changed has to be updated. Built updates might only be a few kilobytes of changes. By inheriting images, we can remain consistent in our bills, and avoid reinventing the wheel with every image we create.&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span id=&quot;docs-internal-guid-13564b7e-7fff-0fbc-6b42-9f23ae63a01d&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.295; margin-bottom: 8pt; margin-top: 0pt;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;b&gt;Step 6&lt;/b&gt; : get the container id with below command&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.295; margin-bottom: 8pt; margin-top: 0pt;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 22px; overflow: hidden; width: 290px;&quot;&gt;&lt;img height=&quot;22&quot; src=&quot;https://lh4.googleusercontent.com/uC3j0vW945ub-wzwluqgd--SpbKHOzPQOjCB7sfUAEzHO1KrWtnAp1iaSadrrNSthfNtEyPH-bwAJ3Vnz8gu-_pNl2pzVKZbzpGbrZXlkhgKKbrPiRPVgbDkhL1vA5Dv1yLtMw9ZB6_4w8BI9D3vhw&quot; style=&quot;margin-left: 0px; margin-top: 0px;&quot; width=&quot;290&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.295; margin-bottom: 8pt; margin-top: 0pt;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;b&gt;Step 7&lt;/b&gt; : to see all running containers use docker ps&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.295; margin-bottom: 8pt; margin-top: 0pt;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 26px; overflow: hidden; width: 105px;&quot;&gt;&lt;img height=&quot;26&quot; src=&quot;https://lh4.googleusercontent.com/ziJ-JcN4jQNXg3vhYiXMANa-1tWS_rryhYHqMEXsNw_jlYDhawO8-2VXt_40rb3hM8sGvfuk13B3PThGE7YVGic_yxvQET_BfLhUFRspHRRSKtvp7nHmusdTbWqwT6HJrlPpTC9v11I4j2JvQvduQg&quot; style=&quot;margin-left: 0px; margin-top: 0px;&quot; width=&quot;105&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.295; margin-bottom: 8pt; margin-top: 0pt;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;b&gt;Step 8&lt;/b&gt; : test the application using curl command&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.295; margin-bottom: 8pt; margin-top: 0pt;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 17px; overflow: hidden; width: 238px;&quot;&gt;&lt;img alt=&quot;test the application using curl command&quot; src=&quot;https://lh6.googleusercontent.com/3YeIlNEtRhrSGV7KmqaeA7WKuv1rUOAayhbFGz9BjogM8pygDK1z2VAulxxxV4TP1t_7zH2896tAIoplaRr85fdltpn5TwQpIK91VOawSn1pp8kYAQBaEo0W8Zzsm7FvEZzMM_n3odqK_xyOAOzRfg=s16000&quot; style=&quot;margin-left: 0px; margin-top: 0px;&quot; title=&quot;test the application using curl command&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.295; margin-bottom: 8pt; margin-top: 0pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;div&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEheFbtAsF-knIhSBc0DiFPNZHeT2CgPUTdJUTwCpVhdVWu3DprSzM323gr_z8u9tdFGQFA3AJyZBz363_5trMhJW8YJ-Vz9J4bxpp3dsdRR3bROlRljO7uE70TiznHcJ0ENL9D8l3b2WoFgIulO8sZeRscwHClWHmx93YpvOQsLZaGyBI047Z1TlHHr&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;We simply use Docker run with the name or tag of our image. We can add minus d which demonizes the process and puts it in the background. Other options can also be add to Docker when running containers such as mounting volumes and exposing certain ports. This layer will disappear if the container is deleted.&quot; data-original-height=&quot;174&quot; data-original-width=&quot;960&quot; height=&quot;117&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEheFbtAsF-knIhSBc0DiFPNZHeT2CgPUTdJUTwCpVhdVWu3DprSzM323gr_z8u9tdFGQFA3AJyZBz363_5trMhJW8YJ-Vz9J4bxpp3dsdRR3bROlRljO7uE70TiznHcJ0ENL9D8l3b2WoFgIulO8sZeRscwHClWHmx93YpvOQsLZaGyBI047Z1TlHHr=w640-h117&quot; title=&quot;We simply use Docker run with the name or tag of our image. We can add minus d which demonizes the process and puts it in the background. Other options can also be add to Docker when running containers such as mounting volumes and exposing certain ports. This layer will disappear if the container is deleted.&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;h3 style=&quot;clear: both; text-align: left;&quot;&gt;How to run a simple container:&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;We simply use Docker run with the name or tag of our image.&lt;/li&gt;&lt;li&gt;We can add minus d which demonizes the process and puts it in the background.&lt;/li&gt;&lt;li&gt;Other options can also be add to Docker when running containers such as mounting volumes and exposing certain ports.&amp;nbsp;This layer will disappear if the container is deleted.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;span id=&quot;docs-internal-guid-3b59e979-7fff-9c3c-ace6-19a523de33f3&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.295; margin-bottom: 8pt; margin-top: 0pt;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Step 9: check whats there in containers using&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.295; margin-bottom: 8pt; margin-top: 0pt;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 29px; overflow: hidden; width: 330px;&quot;&gt;&lt;img height=&quot;29&quot; src=&quot;https://lh4.googleusercontent.com/DFeFjlhtlN6M9IN-BCnDfEWR4I1MiX4NoAtZcbxxJgheLdzJeaXK6Z7CeyCFeCta8tcj7FimUiTwwk67TKIFqPw5CGjTPWxVZFD9xDOFBKOSbHka4de1_ndQz9aCaoWJQH8QCTt-YaF02XxdR3rEAw&quot; style=&quot;margin-left: 0px; margin-top: 0px;&quot; width=&quot;330&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.295; margin-bottom: 8pt; margin-top: 0pt;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Step 10 : enable google container registry api 🡪 enable&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.295; margin-bottom: 8pt; margin-top: 0pt;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Step 11 : now we can tag the image and push in container registry gcr.io&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.295; margin-bottom: 8pt; margin-top: 0pt;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 60px; overflow: hidden; width: 490px;&quot;&gt;&lt;img height=&quot;60&quot; src=&quot;https://lh5.googleusercontent.com/qdVYw93rMjE9fQF7aSKCPmP0-SwiJZnjJIMkh5xLkIi2Yj4F0cNKs9GNeew91HWatoJ1w6iOGbjY4tlhNyTiHwD8sTN_-UkdghPY8cgkZW7zCYBXGrG9x80YGxJ_3V4SoI4f0QdmWxvPiNa2u79LGA&quot; style=&quot;margin-left: 0px; margin-top: 0px;&quot; width=&quot;490&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Docker commands&lt;/h3&gt;&lt;p&gt;The Docker command provides all the tools we need to manage our containers locally with easy to use verbs like&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;$ docker ps: Shows us all the running containers.&lt;/li&gt;&lt;li&gt;$ docker logs container-name: Used to view a containers logs&lt;/li&gt;&lt;li&gt;$ docker stop container-name: Used to stop a container&lt;/li&gt;&lt;li&gt;$ docker rm: Used to delte container entirely&lt;/li&gt;&lt;li&gt;$ docker images:&lt;/li&gt;&lt;li&gt;$ docker tag myapp gcr.io/myapp: Tag images&lt;/li&gt;&lt;li&gt;$ docker Push gcr.io/myapp: push images to google registry&lt;/li&gt;&lt;li&gt;$ docker rmi: Remove local images&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;In Google Cloud projects, we have a built in registry called Google Container Registry, or GCR. If we have an image locally, we can simply add an additional tag to it containing the URL of our registry using Docker tag, and then use Docker push to copy it up to the registry.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.algaestudy.com/feeds/8831442054453942540/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.algaestudy.com/2023/06/fire-up-your-first-container-in-google.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/8831442054453942540'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/8831442054453942540'/><link rel='alternate' type='text/html' href='https://www.algaestudy.com/2023/06/fire-up-your-first-container-in-google.html' title='Fire up your First Container in Google Cloud'/><author><name>Algae Education</name><uri>http://www.blogger.com/profile/12443040604753343283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='9' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQEOhe1V67n6e421LF5bUPOMBi3pPbW_IkAEQb_PNAxDB_ZyC6N9QqlIKNR3OIXafo4XbBlB3aO8i9w0cAuuNfUec1DD-skkLSiuvwvIHjkLjkGXkwssfCNrkK0GUkmJc/s220/Algae3.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://lh6.googleusercontent.com/bZtquKv1bJeQh6rDYrBOCj9tDNSyDvaLJ38Cz1-GVjqO-0JBO08avRVybZRyg1edkr9v7-jpC5AyM9axcOUsjKPd4tB4pYKMfHFyAWPRle77csJsqDCANz0Ajseg-1B0rHtzrM5iwBLrtkiRQGeo8A=s72-c" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>77 Massachusetts Ave, Cambridge, MA 02139, USA</georss:featurename><georss:point>42.360091 -71.09416</georss:point><georss:box>14.049857163821152 -106.25041 70.67032483617885 -35.93791</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8305675988893866325.post-1080667658936204188</id><published>2023-06-09T03:13:00.004-07:00</published><updated>2023-06-09T03:14:37.667-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="EVS"/><category scheme="http://www.blogger.com/atom/ns#" term="Nazia"/><category scheme="http://www.blogger.com/atom/ns#" term="Nirmala"/><category scheme="http://www.blogger.com/atom/ns#" term="Pradeepa"/><category scheme="http://www.blogger.com/atom/ns#" term="Slides"/><title type='text'>Human Communities And The Environment (EVS)</title><content type='html'>&lt;h1 style=&quot;text-align: left;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Human Communities And The Environment&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Environmental Studies&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;iframe allowfullscreen=&quot;true&quot; frameborder=&quot;0&quot; height=&quot;389&quot; mozallowfullscreen=&quot;true&quot; src=&quot;https://docs.google.com/presentation/d/e/2PACX-1vRdnY8WoqvXWSRWMUhGxOgNrbMoS3lhxMc00y8Q2cts_2hvbpInedlcxmC3pIm30A/embed?start=true&amp;amp;loop=true&amp;amp;delayms=3000&quot; webkitallowfullscreen=&quot;true&quot; width=&quot;640&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhiAiBF0pUCAncofjQzt4-N_fQSqEnBe7gCPD34wEEpnfeeLpVKCAaIbh2o9Byym59mV6Po6tzKQRCLPfOItoqXlQyb3O-KOda3tkKpeJ3yfxfP_oGSOlZRX0PoqRilJj_c09-JClnpT0ugruluL8e0B1ScOdOeluPe0_WmED5P7-wfrFyhit1nLXjb&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;International standard for protection and promotion of women’s human rights and socio-economic upliftment was accepted in the International Convention on the Elimination of all forms of Discrimination Against Women (CEDAW), 1979.  The UN General Assembly in 1959 adopted the Declaration of the Rights of a Child. It became International Law in the year 1990.  The World Summit on Children, Sept 30,1990 adopted a Declaration on the Survival, Protection and Development of Children and a Plan of Action for implementing the Declaration in the 1990s. India is also a signatory to it.&quot; data-original-height=&quot;261&quot; data-original-width=&quot;769&quot; height=&quot;218&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhiAiBF0pUCAncofjQzt4-N_fQSqEnBe7gCPD34wEEpnfeeLpVKCAaIbh2o9Byym59mV6Po6tzKQRCLPfOItoqXlQyb3O-KOda3tkKpeJ3yfxfP_oGSOlZRX0PoqRilJj_c09-JClnpT0ugruluL8e0B1ScOdOeluPe0_WmED5P7-wfrFyhit1nLXjb=w640-h218&quot; title=&quot;International standard for protection and promotion of women’s human rights and socio-economic upliftment was accepted in the International Convention on the Elimination of all forms of Discrimination Against Women (CEDAW), 1979.  The UN General Assembly in 1959 adopted the Declaration of the Rights of a Child. It became International Law in the year 1990.  The World Summit on Children, Sept 30,1990 adopted a Declaration on the Survival, Protection and Development of Children and a Plan of Action for implementing the Declaration in the 1990s. India is also a signatory to it.&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/h1&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.algaestudy.com/feeds/1080667658936204188/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.algaestudy.com/2023/06/human-communities-and-environment.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/1080667658936204188'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/1080667658936204188'/><link rel='alternate' type='text/html' href='https://www.algaestudy.com/2023/06/human-communities-and-environment.html' title='Human Communities And The Environment (EVS)'/><author><name>Algae Education</name><uri>http://www.blogger.com/profile/12443040604753343283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='9' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQEOhe1V67n6e421LF5bUPOMBi3pPbW_IkAEQb_PNAxDB_ZyC6N9QqlIKNR3OIXafo4XbBlB3aO8i9w0cAuuNfUec1DD-skkLSiuvwvIHjkLjkGXkwssfCNrkK0GUkmJc/s220/Algae3.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEhiAiBF0pUCAncofjQzt4-N_fQSqEnBe7gCPD34wEEpnfeeLpVKCAaIbh2o9Byym59mV6Po6tzKQRCLPfOItoqXlQyb3O-KOda3tkKpeJ3yfxfP_oGSOlZRX0PoqRilJj_c09-JClnpT0ugruluL8e0B1ScOdOeluPe0_WmED5P7-wfrFyhit1nLXjb=s72-w640-h218-c" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>2211 Campus Dr, Evanston, IL 60208, USA</georss:featurename><georss:point>42.057427 -87.6719431</georss:point><georss:box>13.747193163821152 -122.8281931 70.367660836178842 -52.515693099999993</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8305675988893866325.post-6881874466366066679</id><published>2023-06-09T03:06:00.000-07:00</published><updated>2023-06-09T03:06:10.186-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="EVS"/><category scheme="http://www.blogger.com/atom/ns#" term="Nazia"/><category scheme="http://www.blogger.com/atom/ns#" term="Nrimala"/><category scheme="http://www.blogger.com/atom/ns#" term="Pradeepa"/><category scheme="http://www.blogger.com/atom/ns#" term="Slides"/><title type='text'>Environmental Policies And Practices (EVS)</title><content type='html'>&lt;h1 style=&quot;text-align: left;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Environmental Policies And Practices&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Environmental Studies&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;iframe allowfullscreen=&quot;true&quot; frameborder=&quot;0&quot; height=&quot;389&quot; mozallowfullscreen=&quot;true&quot; src=&quot;https://docs.google.com/presentation/d/e/2PACX-1vSYjsKwGhmIgjPB5xsjmB_gH27dQ5OPbGMh0DhQo7xNfk3YIfjoWVqcrCBEfsCPwA/embed?start=true&amp;amp;loop=true&amp;amp;delayms=3000&quot; webkitallowfullscreen=&quot;true&quot; width=&quot;640&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhYMLWapoyIgEPAWACqjSTI3SPQF0bS2zJPS1FsscIVKWClggBYHaF5x8KQFID6uX2HU1DUXWQeD_9pNqp5taeb22J6ji5YBTjcNiF1oxNqX4L15tdo2qnt2WYQvvCaSmvRkMdvQxw7Td0remuz7rYeOaOEYhAwM-VdzXQCX71NKIXk3mIpN-Mrfp33&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;287&quot; data-original-width=&quot;780&quot; height=&quot;118&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhYMLWapoyIgEPAWACqjSTI3SPQF0bS2zJPS1FsscIVKWClggBYHaF5x8KQFID6uX2HU1DUXWQeD_9pNqp5taeb22J6ji5YBTjcNiF1oxNqX4L15tdo2qnt2WYQvvCaSmvRkMdvQxw7Td0remuz7rYeOaOEYhAwM-VdzXQCX71NKIXk3mIpN-Mrfp33&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/h1&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.algaestudy.com/feeds/6881874466366066679/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.algaestudy.com/2023/06/environmental-policies-and-practices-evs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/6881874466366066679'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/6881874466366066679'/><link rel='alternate' type='text/html' href='https://www.algaestudy.com/2023/06/environmental-policies-and-practices-evs.html' title='Environmental Policies And Practices (EVS)'/><author><name>Algae Education</name><uri>http://www.blogger.com/profile/12443040604753343283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='9' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQEOhe1V67n6e421LF5bUPOMBi3pPbW_IkAEQb_PNAxDB_ZyC6N9QqlIKNR3OIXafo4XbBlB3aO8i9w0cAuuNfUec1DD-skkLSiuvwvIHjkLjkGXkwssfCNrkK0GUkmJc/s220/Algae3.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEhYMLWapoyIgEPAWACqjSTI3SPQF0bS2zJPS1FsscIVKWClggBYHaF5x8KQFID6uX2HU1DUXWQeD_9pNqp5taeb22J6ji5YBTjcNiF1oxNqX4L15tdo2qnt2WYQvvCaSmvRkMdvQxw7Td0remuz7rYeOaOEYhAwM-VdzXQCX71NKIXk3mIpN-Mrfp33=s72-c" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Massachusetts Hall, Cambridge, MA 02138, USA</georss:featurename><georss:point>42.3744368 -71.118281</georss:point><georss:box>15.60070508131065 -106.274531 69.148168518689346 -35.962031</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8305675988893866325.post-3140340351618477155</id><published>2023-06-09T02:59:00.005-07:00</published><updated>2023-06-09T03:00:47.864-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="EVS"/><category scheme="http://www.blogger.com/atom/ns#" term="Nazia"/><category scheme="http://www.blogger.com/atom/ns#" term="Niramala"/><category scheme="http://www.blogger.com/atom/ns#" term="Pradeepa"/><category scheme="http://www.blogger.com/atom/ns#" term="Slides"/><title type='text'>Environmental Pollution (EVS)</title><content type='html'>&lt;h1 style=&quot;text-align: left;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Environmental Pollution&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Environmental Studies&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;iframe allowfullscreen=&quot;true&quot; frameborder=&quot;0&quot; height=&quot;389&quot; mozallowfullscreen=&quot;true&quot; src=&quot;https://docs.google.com/presentation/d/e/2PACX-1vTF_JuLesnuMykgRKLpkjHsO1-82mP9EDj0JnhS92uiEktAo45ar292SVUGIe7AwA/embed?start=true&amp;amp;loop=true&amp;amp;delayms=3000&quot; webkitallowfullscreen=&quot;true&quot; width=&quot;640&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjiMw-vf-yVfOsbEsGbEc5UrmqM2mj7gpz3Qd-yOspc624yLr5eksZLTSI1SqY5-1RuAfepwl2plbaZmpV6UkfEHZu8s-Hnm9ANhG7rRzB2_my030PiELDF4MGLYw6HlHMlBqH_0A3ETHmO1JffJE6As8hgY1-jmecYl6_i9QZ2zCFz9RV1E3BEVNOF&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Pradeepa, nazia, Nirmala, tabassum, meghanathan, duraswamy, A pollutant is defined as any form of energy or matter or action that causes imbalance or&quot; data-original-height=&quot;345&quot; data-original-width=&quot;794&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjiMw-vf-yVfOsbEsGbEc5UrmqM2mj7gpz3Qd-yOspc624yLr5eksZLTSI1SqY5-1RuAfepwl2plbaZmpV6UkfEHZu8s-Hnm9ANhG7rRzB2_my030PiELDF4MGLYw6HlHMlBqH_0A3ETHmO1JffJE6As8hgY1-jmecYl6_i9QZ2zCFz9RV1E3BEVNOF=w400-h174&quot; title=&quot;klassroom algaeservice&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/h1&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.algaestudy.com/feeds/3140340351618477155/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.algaestudy.com/2023/06/environmental-pollution-evs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/3140340351618477155'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/3140340351618477155'/><link rel='alternate' type='text/html' href='https://www.algaestudy.com/2023/06/environmental-pollution-evs.html' title='Environmental Pollution (EVS)'/><author><name>Algae Education</name><uri>http://www.blogger.com/profile/12443040604753343283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='9' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQEOhe1V67n6e421LF5bUPOMBi3pPbW_IkAEQb_PNAxDB_ZyC6N9QqlIKNR3OIXafo4XbBlB3aO8i9w0cAuuNfUec1DD-skkLSiuvwvIHjkLjkGXkwssfCNrkK0GUkmJc/s220/Algae3.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEjiMw-vf-yVfOsbEsGbEc5UrmqM2mj7gpz3Qd-yOspc624yLr5eksZLTSI1SqY5-1RuAfepwl2plbaZmpV6UkfEHZu8s-Hnm9ANhG7rRzB2_my030PiELDF4MGLYw6HlHMlBqH_0A3ETHmO1JffJE6As8hgY1-jmecYl6_i9QZ2zCFz9RV1E3BEVNOF=s72-w400-h174-c" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>1211 Gopher St, Bozeman, MT 59715, USA</georss:featurename><georss:point>45.6677303 -111.0552915</georss:point><georss:box>45.643737553267158 -111.08962377539062 45.691723046732847 -111.02095922460937</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8305675988893866325.post-3915863020667751194</id><published>2023-06-09T02:54:00.003-07:00</published><updated>2023-06-09T03:14:49.268-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="EVS"/><category scheme="http://www.blogger.com/atom/ns#" term="Nazia"/><category scheme="http://www.blogger.com/atom/ns#" term="Nirmala"/><category scheme="http://www.blogger.com/atom/ns#" term="Slides"/><title type='text'>Biodiversity and its Conservation (EVS)</title><content type='html'>&lt;h1 style=&quot;text-align: left;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Biodiversity And Its Conservation&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Environmental Studies&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/h1&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;iframe allowfullscreen=&quot;true&quot; frameborder=&quot;0&quot; height=&quot;389&quot; mozallowfullscreen=&quot;true&quot; src=&quot;https://docs.google.com/presentation/d/e/2PACX-1vSsoYcDXCTXtba4ISKh2ELwoVIw0IE3kMn-fbrMgSZb-a5Vl8g0xqjaRbe3JojS6Q/embed?start=true&amp;amp;loop=true&amp;amp;delayms=3000&quot; webkitallowfullscreen=&quot;true&quot; width=&quot;640&quot;&gt;&lt;/iframe&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhHjnurqXi00n3DmuexuLgrvYpvtu5bXPMotmje5-sX0zYuGaqCwSfq05Wmg1UqC2HPCkZURCT83zpYUUNa9hoUBUJCoQPdFeoUry4C0rJlAgyfQPVfVVlh0DYoMdKhCKRt7hBabcBrAv-TSRDKdshRNM043KbchHKB-e7PCMs9F7ds2GEqy5-jUTVG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Levels of biodiversity – genetic, species and ecosystem diversity. Biogeographic zones of India, Biodiversity patterns and global Biodiversity hotspots Ecosystem and biodiversity services : ecological, economic, social, ethical, aesthetic and informational values India as a mega-diversity nation, Endangered and endemic species of India&quot; data-original-height=&quot;451&quot; data-original-width=&quot;805&quot; height=&quot;224&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhHjnurqXi00n3DmuexuLgrvYpvtu5bXPMotmje5-sX0zYuGaqCwSfq05Wmg1UqC2HPCkZURCT83zpYUUNa9hoUBUJCoQPdFeoUry4C0rJlAgyfQPVfVVlh0DYoMdKhCKRt7hBabcBrAv-TSRDKdshRNM043KbchHKB-e7PCMs9F7ds2GEqy5-jUTVG=w400-h224&quot; title=&quot;Levels of biodiversity – genetic, species and ecosystem diversity. Biogeographic zones of India, Biodiversity patterns and global Biodiversity hotspots Ecosystem and biodiversity services : ecological, economic, social, ethical, aesthetic and informational values India as a mega-diversity nation, Endangered and endemic species of India&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.algaestudy.com/feeds/3915863020667751194/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.algaestudy.com/2023/06/biodiversity-and-its-conservation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/3915863020667751194'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8305675988893866325/posts/default/3915863020667751194'/><link rel='alternate' type='text/html' href='https://www.algaestudy.com/2023/06/biodiversity-and-its-conservation.html' title='Biodiversity and its Conservation (EVS)'/><author><name>Algae Education</name><uri>http://www.blogger.com/profile/12443040604753343283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='9' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQEOhe1V67n6e421LF5bUPOMBi3pPbW_IkAEQb_PNAxDB_ZyC6N9QqlIKNR3OIXafo4XbBlB3aO8i9w0cAuuNfUec1DD-skkLSiuvwvIHjkLjkGXkwssfCNrkK0GUkmJc/s220/Algae3.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEhHjnurqXi00n3DmuexuLgrvYpvtu5bXPMotmje5-sX0zYuGaqCwSfq05Wmg1UqC2HPCkZURCT83zpYUUNa9hoUBUJCoQPdFeoUry4C0rJlAgyfQPVfVVlh0DYoMdKhCKRt7hBabcBrAv-TSRDKdshRNM043KbchHKB-e7PCMs9F7ds2GEqy5-jUTVG=s72-w400-h224-c" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>WQ9R+GFQ, Gopalbari, Jaipur, Rajasthan 302006, India</georss:featurename><georss:point>26.9188129 75.7913107</georss:point><georss:box>26.903505591553337 75.774144562304684 26.934120208446661 75.808476837695309</georss:box></entry></feed>