The document provides step-by-step instructions for installing MySQL on Windows. It begins by downloading the MySQL installer from the official website. It then guides the user through selecting installation options, configuring the server, setting passwords and permissions, and testing the installation. Additional sections describe common SQL commands organized by type (DDL, DML, DCL, etc) and concepts like keys, constraints and joins. Tables are created and sample data is inserted to demonstrate SQL queries.
My lablkxjlkxjcvlxkcjvlxckjvlxck ppt.pptxEliasPetros
This document provides an introduction and overview of SQL and database concepts for a BAIS 3rd Year database systems lab class using MySQL 5.5. It introduces SQL, its functions and commands including DDL, DML, DQL, and TCL. Examples are provided for creating tables, inserting, updating, deleting and querying data, as well as using transactions with commit and rollback. The document is intended to teach students key SQL concepts and skills for working with databases.
1. The document outlines the basic steps to create simple transformations in Informatica 8.x, including creating a data source name (DSN), directory in the repository, source, target, mapping, workflow, and task.
2. Key steps are importing the source and target tables, generating the target schema, mapping the source and target, creating and executing a workflow and task, and previewing the target data.
3. Executing the workflow in the Workflow Monitor allows you to check if the transformation succeeded or failed.
The document discusses database views in MySQL. It provides information on creating views using the CREATE VIEW and CREATE OR REPLACE VIEW statements. Views allow simplifying complex queries, limiting data access, and providing extra security. Performance can be impacted when querying views defined on other views. Views also introduce dependency on the underlying tables. Stored procedures in MySQL are also discussed, including their advantages like increased performance and security, and disadvantages like increased memory usage. Triggers are described as stored programs that execute automatically in response to data changes and can be used for auditing and validation. Examples are provided on creating a trigger for auditing table updates and accessing MySQL from Excel.
This document provides an outline of a SQL Lab tutorial covering MySQL. It introduces SQL and connecting to MySQL. It then covers various MySQL commands including administration commands, data definition language commands to create/drop databases and tables, data manipulation language commands to insert, retrieve, update and delete records, and more advanced queries using concepts like joins, aggregation, and pattern matching. SQL is introduced as a standard language for accessing and manipulating database systems and working with different database programs.
This document outlines the contents of a manual for a database management systems laboratory course. It covers 5 chapters on different lab programs involving creating database tables, inserting data, and writing queries. Chapter 1 provides an introduction to basic SQL commands including DDL, DML, TCL, and DCL commands. It describes commands like CREATE TABLE, ALTER TABLE, DROP TABLE, SELECT, INSERT, UPDATE, DELETE. Subsequent chapters provide the problem statements, ER diagrams, schema diagrams, code for creating tables and inserting sample data, and solutions to queries for 5 different database domains - library, orders, movies, college, and company.
SQL is a language used to store, retrieve, and manage data in relational database management systems. It contains commands like SELECT, INSERT, UPDATE, DELETE to query and manipulate data. SQL also allows functions, operators, transactions, and other capabilities to ensure data integrity and security. Integrity constraints like primary keys and foreign keys help maintain relational integrity between tables.
This document provides an introduction and overview of PostgreSQL, including its history, features, installation, usage and SQL capabilities. It describes how to create and manipulate databases, tables, views, and how to insert, query, update and delete data. It also covers transaction management, functions, constraints and other advanced topics.
My lablkxjlkxjcvlxkcjvlxckjvlxck ppt.pptxEliasPetros
This document provides an introduction and overview of SQL and database concepts for a BAIS 3rd Year database systems lab class using MySQL 5.5. It introduces SQL, its functions and commands including DDL, DML, DQL, and TCL. Examples are provided for creating tables, inserting, updating, deleting and querying data, as well as using transactions with commit and rollback. The document is intended to teach students key SQL concepts and skills for working with databases.
1. The document outlines the basic steps to create simple transformations in Informatica 8.x, including creating a data source name (DSN), directory in the repository, source, target, mapping, workflow, and task.
2. Key steps are importing the source and target tables, generating the target schema, mapping the source and target, creating and executing a workflow and task, and previewing the target data.
3. Executing the workflow in the Workflow Monitor allows you to check if the transformation succeeded or failed.
The document discusses database views in MySQL. It provides information on creating views using the CREATE VIEW and CREATE OR REPLACE VIEW statements. Views allow simplifying complex queries, limiting data access, and providing extra security. Performance can be impacted when querying views defined on other views. Views also introduce dependency on the underlying tables. Stored procedures in MySQL are also discussed, including their advantages like increased performance and security, and disadvantages like increased memory usage. Triggers are described as stored programs that execute automatically in response to data changes and can be used for auditing and validation. Examples are provided on creating a trigger for auditing table updates and accessing MySQL from Excel.
This document provides an outline of a SQL Lab tutorial covering MySQL. It introduces SQL and connecting to MySQL. It then covers various MySQL commands including administration commands, data definition language commands to create/drop databases and tables, data manipulation language commands to insert, retrieve, update and delete records, and more advanced queries using concepts like joins, aggregation, and pattern matching. SQL is introduced as a standard language for accessing and manipulating database systems and working with different database programs.
This document outlines the contents of a manual for a database management systems laboratory course. It covers 5 chapters on different lab programs involving creating database tables, inserting data, and writing queries. Chapter 1 provides an introduction to basic SQL commands including DDL, DML, TCL, and DCL commands. It describes commands like CREATE TABLE, ALTER TABLE, DROP TABLE, SELECT, INSERT, UPDATE, DELETE. Subsequent chapters provide the problem statements, ER diagrams, schema diagrams, code for creating tables and inserting sample data, and solutions to queries for 5 different database domains - library, orders, movies, college, and company.
SQL is a language used to store, retrieve, and manage data in relational database management systems. It contains commands like SELECT, INSERT, UPDATE, DELETE to query and manipulate data. SQL also allows functions, operators, transactions, and other capabilities to ensure data integrity and security. Integrity constraints like primary keys and foreign keys help maintain relational integrity between tables.
This document provides an introduction and overview of PostgreSQL, including its history, features, installation, usage and SQL capabilities. It describes how to create and manipulate databases, tables, views, and how to insert, query, update and delete data. It also covers transaction management, functions, constraints and other advanced topics.
This document provides an introduction and overview of SQL and database systems for a BAIS 3rd year class in 2015. It covers topics such as what SQL is, the functions and commands of SQL like SELECT, INSERT, UPDATE and DELETE. It also discusses database objects like tables, records, fields and columns. Specific SQL commands are defined for manipulating and querying database tables, including DDL, DML, DQL, DCL and TCL commands. Examples are provided for creating tables and inserting, updating and deleting records in MySQL.
The document provides instructions on how to perform common operations in MySQL such as connecting to MySQL using the command line, creating databases and tables, and performing data manipulation operations like inserting, updating, and deleting rows. It explains how to connect to MySQL, create databases and tables specifying column names and data types, insert multiple rows of data using the INSERT statement, update and delete rows using the UPDATE and DELETE statements, and truncate tables.
Upgrading to MySQL 8.0 webinar slides November 27th, 2019Dave Stokes
- The document discusses upgrading from MySQL 5.7 to MySQL 8.0, providing guidance on the upgrade path and process.
- It describes running checks using the new MySQL Shell utility to detect any issues in the 5.7 instance that need addressing before upgrading, such as incompatible syntax, removed features, or changed defaults.
- Advice is given on backup procedures, reading the upgrade documentation, and addressing any warnings or errors reported by the upgrade checker to ensure a smooth transition.
This document provides an introduction and overview of key concepts related to SQL Server databases including:
- The database engine and its role in storing, processing, and securing data
- System and user databases
- Database objects like tables, views, indexes, stored procedures
- Structured Query Language (SQL) and its sublanguages for data definition, manipulation, and transaction control
- Guidelines for writing SQL statements
- Creating and using databases along with creating tables and defining data types and constraints
This document provides information about Venkatesan Prabu Jayakantham (Venkat), the Managing Director of KAASHIVINFOTECH, a software company in Chennai. It outlines Venkat's experience in Microsoft technologies and certifications. It also describes KAASHIVINFOTECH's inplant training programs for students in fields like engineering, electronics, and mechanical/civil studies. The training focuses on developing technical skills through hands-on demonstrations and projects.
This document provides information about Venkatesan Prabu Jayakantham (Venkat), the Managing Director of KAASHIVINFOTECH, a software company in Chennai. It outlines Venkat's experience in Microsoft technologies and certifications. It also describes KAASHIVINFOTECH's inplant training programs for students in fields like engineering, electronics, and mechanical. The training focuses on developing technical skills through hands-on demos and projects.
This document provides an overview of SQLite features for industrial IoT applications, including:
- Deep dives into SQLite data definition language (DDL) commands like CREATE, ALTER, and DROP for tables, indexes, and constraints.
- Transaction control language (TCL) commands like BEGIN TRANSACTION, COMMIT, and ROLLBACK.
- Set operators like UNION and UNION ALL to combine result sets from multiple queries.
- Functions for string manipulation, math, dates, and aggregation.
- Formatting dates and times using functions like DATE, TIME, DATETIME, and STRFTIME.
MySQL 8 -- A new beginning : Sunshine PHP/PHP UK (updated)Dave Stokes
MySQL 8 has many new features and this presentation covers the new data dictionary, improved JSON functions, roles, histograms, and much more. Updated after SunshinePHP 2018 after feedback
The document provides an overview of SQL commands and operations including:
1) Creating a database and table, inserting and selecting data, updating records with WHERE clauses.
2) Altering tables by adding or modifying columns and constraints.
3) Different SQL statements like SELECT, INSERT, UPDATE and DELETE and clauses like WHERE are discussed along with syntax and examples.
This document provides an introduction and overview of database management systems (DBMS) and MySQL. It discusses what a DBMS is, the benefits it provides like data security and consistency. It also covers relational database concepts like tables, rows, columns and keys. The document demonstrates how to install MySQL and describes the different components of structured query language (SQL) like DDL, DML, DCL and TCL. It defines SQL data types, constraints and provides examples to illustrate concepts.
This document contains questions and answers related to database testing. It discusses testing data validity, integrity, performance, procedures, triggers and functions. It also describes primary keys, foreign keys, NULL values, differences between Oracle, SQL and SQL Server. Database indexing, isolation levels, and creating indexes on all columns are also covered.
This document provides an introduction to manipulating tables in MySQL, including how to alter tables by adding, dropping, and modifying columns, how to insert and import data into tables from files using commands like INSERT, REPLACE, LOAD DATA INFILE and the mysqlimport utility, and how to perform updates and queries on table data using commands like UPDATE and SELECT. Examples are given for each task to demonstrate the proper syntax and usage.
Introducing STATA is a document that summarizes the key features and capabilities of the statistical software package STATA. It describes STATA as a powerful and flexible package for statistical analysis, data management, and publication-quality graphing. The document outlines STATA's main interface elements including its command window, results window, variable window, and other windows. It also explains how to import and export data, use do-files to record analyses, and manage variables through labeling, generating new variables, and replacing values.
DB2 is a multi-platform database server that can scale from laptops to large systems handling terabytes of data. It provides tools for extending capabilities to support multimedia, is fully integrated for web access, and supports universal access and multiple platforms. The tutorial covered key DB2 concepts like instances, schemas, tables, and indexes. It demonstrated how to use Control Center and other GUIs to perform tasks like creating databases and tables, querying data, and setting user privileges. Java applications can also access DB2 data through JDBC.
MySQL is an open-source relational database management system. The document discusses the introduction to MySQL, its development history, installation, features, data types, basic commands like CREATE, SELECT, UPDATE, DELETE. It also covers MySQL constraints. MySQL is widely used for web applications due to its speed, ease of use and open source nature. It can store and manage large volumes of data across different tables using relationships.
MySQL Workbench is a Visual database designing and modeling access tool for MySQL server relational database. It facilitates the creation of new physical data models and modification of existing MySQL databases with reverse/forward engineering and change management functions.
The document describes the steps to install MySQL on Windows. It begins with downloading the MySQL community server software from the official website. It then outlines 14 steps for the installation process, which includes selecting the setup type, configuring options like the authentication method and root password, configuring the Windows service, and completing the installation. It provides screenshots for some of the installation wizard screens. Once installed, it opens the MySQL shell and Workbench.
This document provides an overview of the relational database language SQL. It begins by defining basic data types in SQL like numbers, characters, dates and times. It then discusses the SQL Data Definition Language (DDL) which is used to define and modify database schemas and objects. Specific DDL commands like CREATE, DROP, ALTER, TRUNCATE and RENAME are described. The document also covers the SQL Data Manipulation Language (DML) including commands for queries, inserts, updates and deletes. Additional topics discussed include constraints, indexes, views and the advantages of SQL.
This document provides an overview of tips, considerations, and processes for migrating a DB2 database environment to a Teradata data warehouse. It discusses gathering important information about the existing DB2 environment, the high-level phases of the migration including establishing Teradata infrastructure, migrating data, processes and applications, and establishing a production environment. It also covers specific considerations for migrating the physical database including options for converting DB2 tables and indexes to Teradata.
MySQL is an open-source relational database management system. The document discusses MySQL including its introduction, development history, installation, features, data types, basic commands like CREATE, SELECT, UPDATE, DELETE. It also covers MySQL constraints. Key points include that MySQL is popular, free, works with many operating systems, supports SQL, and is used by many large websites. It provides details on installing and using basic functions of MySQL.
Learn SQL from basic queries to Advance queriesmanishkhaire30
Dive into the world of data analysis with our comprehensive guide on mastering SQL! This presentation offers a practical approach to learning SQL, focusing on real-world applications and hands-on practice. Whether you're a beginner or looking to sharpen your skills, this guide provides the tools you need to extract, analyze, and interpret data effectively.
Key Highlights:
Foundations of SQL: Understand the basics of SQL, including data retrieval, filtering, and aggregation.
Advanced Queries: Learn to craft complex queries to uncover deep insights from your data.
Data Trends and Patterns: Discover how to identify and interpret trends and patterns in your datasets.
Practical Examples: Follow step-by-step examples to apply SQL techniques in real-world scenarios.
Actionable Insights: Gain the skills to derive actionable insights that drive informed decision-making.
Join us on this journey to enhance your data analysis capabilities and unlock the full potential of SQL. Perfect for data enthusiasts, analysts, and anyone eager to harness the power of data!
#DataAnalysis #SQL #LearningSQL #DataInsights #DataScience #Analytics
This document provides an introduction and overview of SQL and database systems for a BAIS 3rd year class in 2015. It covers topics such as what SQL is, the functions and commands of SQL like SELECT, INSERT, UPDATE and DELETE. It also discusses database objects like tables, records, fields and columns. Specific SQL commands are defined for manipulating and querying database tables, including DDL, DML, DQL, DCL and TCL commands. Examples are provided for creating tables and inserting, updating and deleting records in MySQL.
The document provides instructions on how to perform common operations in MySQL such as connecting to MySQL using the command line, creating databases and tables, and performing data manipulation operations like inserting, updating, and deleting rows. It explains how to connect to MySQL, create databases and tables specifying column names and data types, insert multiple rows of data using the INSERT statement, update and delete rows using the UPDATE and DELETE statements, and truncate tables.
Upgrading to MySQL 8.0 webinar slides November 27th, 2019Dave Stokes
- The document discusses upgrading from MySQL 5.7 to MySQL 8.0, providing guidance on the upgrade path and process.
- It describes running checks using the new MySQL Shell utility to detect any issues in the 5.7 instance that need addressing before upgrading, such as incompatible syntax, removed features, or changed defaults.
- Advice is given on backup procedures, reading the upgrade documentation, and addressing any warnings or errors reported by the upgrade checker to ensure a smooth transition.
This document provides an introduction and overview of key concepts related to SQL Server databases including:
- The database engine and its role in storing, processing, and securing data
- System and user databases
- Database objects like tables, views, indexes, stored procedures
- Structured Query Language (SQL) and its sublanguages for data definition, manipulation, and transaction control
- Guidelines for writing SQL statements
- Creating and using databases along with creating tables and defining data types and constraints
This document provides information about Venkatesan Prabu Jayakantham (Venkat), the Managing Director of KAASHIVINFOTECH, a software company in Chennai. It outlines Venkat's experience in Microsoft technologies and certifications. It also describes KAASHIVINFOTECH's inplant training programs for students in fields like engineering, electronics, and mechanical/civil studies. The training focuses on developing technical skills through hands-on demonstrations and projects.
This document provides information about Venkatesan Prabu Jayakantham (Venkat), the Managing Director of KAASHIVINFOTECH, a software company in Chennai. It outlines Venkat's experience in Microsoft technologies and certifications. It also describes KAASHIVINFOTECH's inplant training programs for students in fields like engineering, electronics, and mechanical. The training focuses on developing technical skills through hands-on demos and projects.
This document provides an overview of SQLite features for industrial IoT applications, including:
- Deep dives into SQLite data definition language (DDL) commands like CREATE, ALTER, and DROP for tables, indexes, and constraints.
- Transaction control language (TCL) commands like BEGIN TRANSACTION, COMMIT, and ROLLBACK.
- Set operators like UNION and UNION ALL to combine result sets from multiple queries.
- Functions for string manipulation, math, dates, and aggregation.
- Formatting dates and times using functions like DATE, TIME, DATETIME, and STRFTIME.
MySQL 8 -- A new beginning : Sunshine PHP/PHP UK (updated)Dave Stokes
MySQL 8 has many new features and this presentation covers the new data dictionary, improved JSON functions, roles, histograms, and much more. Updated after SunshinePHP 2018 after feedback
The document provides an overview of SQL commands and operations including:
1) Creating a database and table, inserting and selecting data, updating records with WHERE clauses.
2) Altering tables by adding or modifying columns and constraints.
3) Different SQL statements like SELECT, INSERT, UPDATE and DELETE and clauses like WHERE are discussed along with syntax and examples.
This document provides an introduction and overview of database management systems (DBMS) and MySQL. It discusses what a DBMS is, the benefits it provides like data security and consistency. It also covers relational database concepts like tables, rows, columns and keys. The document demonstrates how to install MySQL and describes the different components of structured query language (SQL) like DDL, DML, DCL and TCL. It defines SQL data types, constraints and provides examples to illustrate concepts.
This document contains questions and answers related to database testing. It discusses testing data validity, integrity, performance, procedures, triggers and functions. It also describes primary keys, foreign keys, NULL values, differences between Oracle, SQL and SQL Server. Database indexing, isolation levels, and creating indexes on all columns are also covered.
This document provides an introduction to manipulating tables in MySQL, including how to alter tables by adding, dropping, and modifying columns, how to insert and import data into tables from files using commands like INSERT, REPLACE, LOAD DATA INFILE and the mysqlimport utility, and how to perform updates and queries on table data using commands like UPDATE and SELECT. Examples are given for each task to demonstrate the proper syntax and usage.
Introducing STATA is a document that summarizes the key features and capabilities of the statistical software package STATA. It describes STATA as a powerful and flexible package for statistical analysis, data management, and publication-quality graphing. The document outlines STATA's main interface elements including its command window, results window, variable window, and other windows. It also explains how to import and export data, use do-files to record analyses, and manage variables through labeling, generating new variables, and replacing values.
DB2 is a multi-platform database server that can scale from laptops to large systems handling terabytes of data. It provides tools for extending capabilities to support multimedia, is fully integrated for web access, and supports universal access and multiple platforms. The tutorial covered key DB2 concepts like instances, schemas, tables, and indexes. It demonstrated how to use Control Center and other GUIs to perform tasks like creating databases and tables, querying data, and setting user privileges. Java applications can also access DB2 data through JDBC.
MySQL is an open-source relational database management system. The document discusses the introduction to MySQL, its development history, installation, features, data types, basic commands like CREATE, SELECT, UPDATE, DELETE. It also covers MySQL constraints. MySQL is widely used for web applications due to its speed, ease of use and open source nature. It can store and manage large volumes of data across different tables using relationships.
MySQL Workbench is a Visual database designing and modeling access tool for MySQL server relational database. It facilitates the creation of new physical data models and modification of existing MySQL databases with reverse/forward engineering and change management functions.
The document describes the steps to install MySQL on Windows. It begins with downloading the MySQL community server software from the official website. It then outlines 14 steps for the installation process, which includes selecting the setup type, configuring options like the authentication method and root password, configuring the Windows service, and completing the installation. It provides screenshots for some of the installation wizard screens. Once installed, it opens the MySQL shell and Workbench.
This document provides an overview of the relational database language SQL. It begins by defining basic data types in SQL like numbers, characters, dates and times. It then discusses the SQL Data Definition Language (DDL) which is used to define and modify database schemas and objects. Specific DDL commands like CREATE, DROP, ALTER, TRUNCATE and RENAME are described. The document also covers the SQL Data Manipulation Language (DML) including commands for queries, inserts, updates and deletes. Additional topics discussed include constraints, indexes, views and the advantages of SQL.
This document provides an overview of tips, considerations, and processes for migrating a DB2 database environment to a Teradata data warehouse. It discusses gathering important information about the existing DB2 environment, the high-level phases of the migration including establishing Teradata infrastructure, migrating data, processes and applications, and establishing a production environment. It also covers specific considerations for migrating the physical database including options for converting DB2 tables and indexes to Teradata.
MySQL is an open-source relational database management system. The document discusses MySQL including its introduction, development history, installation, features, data types, basic commands like CREATE, SELECT, UPDATE, DELETE. It also covers MySQL constraints. Key points include that MySQL is popular, free, works with many operating systems, supports SQL, and is used by many large websites. It provides details on installing and using basic functions of MySQL.
Learn SQL from basic queries to Advance queriesmanishkhaire30
Dive into the world of data analysis with our comprehensive guide on mastering SQL! This presentation offers a practical approach to learning SQL, focusing on real-world applications and hands-on practice. Whether you're a beginner or looking to sharpen your skills, this guide provides the tools you need to extract, analyze, and interpret data effectively.
Key Highlights:
Foundations of SQL: Understand the basics of SQL, including data retrieval, filtering, and aggregation.
Advanced Queries: Learn to craft complex queries to uncover deep insights from your data.
Data Trends and Patterns: Discover how to identify and interpret trends and patterns in your datasets.
Practical Examples: Follow step-by-step examples to apply SQL techniques in real-world scenarios.
Actionable Insights: Gain the skills to derive actionable insights that drive informed decision-making.
Join us on this journey to enhance your data analysis capabilities and unlock the full potential of SQL. Perfect for data enthusiasts, analysts, and anyone eager to harness the power of data!
#DataAnalysis #SQL #LearningSQL #DataInsights #DataScience #Analytics
Codeless Generative AI Pipelines
(GenAI with Milvus)
https://ml.dssconf.pl/user.html#!/lecture/DSSML24-041a/rate
Discover the potential of real-time streaming in the context of GenAI as we delve into the intricacies of Apache NiFi and its capabilities. Learn how this tool can significantly simplify the data engineering workflow for GenAI applications, allowing you to focus on the creative aspects rather than the technical complexities. I will guide you through practical examples and use cases, showing the impact of automation on prompt building. From data ingestion to transformation and delivery, witness how Apache NiFi streamlines the entire pipeline, ensuring a smooth and hassle-free experience.
Timothy Spann
https://www.youtube.com/@FLaNK-Stack
https://medium.com/@tspann
https://www.datainmotion.dev/
milvus, unstructured data, vector database, zilliz, cloud, vectors, python, deep learning, generative ai, genai, nifi, kafka, flink, streaming, iot, edge
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...Social Samosa
The Modern Marketing Reckoner (MMR) is a comprehensive resource packed with POVs from 60+ industry leaders on how AI is transforming the 4 key pillars of marketing – product, place, price and promotions.
Open Source Contributions to Postgres: The Basics POSETTE 2024ElizabethGarrettChri
Postgres is the most advanced open-source database in the world and it's supported by a community, not a single company. So how does this work? How does code actually get into Postgres? I recently had a patch submitted and committed and I want to share what I learned in that process. I’ll give you an overview of Postgres versions and how the underlying project codebase functions. I’ll also show you the process for submitting a patch and getting that tested and committed.
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data LakeWalaa Eldin Moustafa
Dynamic policy enforcement is becoming an increasingly important topic in today’s world where data privacy and compliance is a top priority for companies, individuals, and regulators alike. In these slides, we discuss how LinkedIn implements a powerful dynamic policy enforcement engine, called ViewShift, and integrates it within its data lake. We show the query engine architecture and how catalog implementations can automatically route table resolutions to compliance-enforcing SQL views. Such views have a set of very interesting properties: (1) They are auto-generated from declarative data annotations. (2) They respect user-level consent and preferences (3) They are context-aware, encoding a different set of transformations for different use cases (4) They are portable; while the SQL logic is only implemented in one SQL dialect, it is accessible in all engines.
#SQL #Views #Privacy #Compliance #DataLake
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...sameer shah
"Join us for STATATHON, a dynamic 2-day event dedicated to exploring statistical knowledge and its real-world applications. From theory to practice, participants engage in intensive learning sessions, workshops, and challenges, fostering a deeper understanding of statistical methodologies and their significance in various fields."
Intelligence supported media monitoring in veterinary medicine
Vansh Goel ISM (1).pptx
1. ISM LAB FILE
- BY VANSH GOEL
- BCOM (H) SECTION - C
- ENROLLMENT NO - 14817788820
2. 1) Steps to Install MySQL
Step 1: Go to the official website of MySQL and scroll down. Then you will see an option to
choose the Operating System. Choose Windows.
Step 2: After that, you will see two options to Download. Choose the mysql-installer-web-
community.
• Once, you click on Download, you will be redirected to a page :In the page, just click on
the option of “No thanks, just start my download.” Once, you click on this option, you will
see that MySQL Installer is getting downloaded.
Step 3: After MySQL Installer gets downloaded, double click on it, and you will see that the
MySQL installer Community is getting installed. Once, it is downloaded you will see a
screen. In the dialog box, just check in in the radio button and accept the License Agreement.
After that, click on Next.
Step 4: In the next wizard, you have to choose the setup type. Basically, this is where you
choose which features you wish to install. Here choose the option Full and click on Next.
This option will install MySQL Server, MySQL Shell, MySQL Router, MySQL Workbench,
MySQL Connectors, documentation, samples and examples and much more.
3. Step 5: Once you click on Next, you might see that some features may fail to install due to
lack of requirements. So, either you can resolve them, or can skip them, by clicking on Next.
Next, you will see a dialog box asking for your confirmation of a few products not getting
installed. So, you can just click on Yes.
As soon as you click on Next, you will see the list of the products which will get installed. So,
if you are fine with the products, go ahead and click on Execute.
Once you hit on Execute, you will see that the products are getting installed.
Now, once the installation is complete, click on Next.
Next, you have to configure the Server and Router. So, in the dialog box, click on Next.
Step 6: In the below wizard, you can either choose the Standalone MySQL Replication or the
InnoDB Cluster based on your requirement and then click on Next.
Step 7: Once, you click on Next, you have to mention the server configuration and click on
next.
Step 8: Now, you have to choose the authentication method.
4. Step 9: Next, you have to mention the MySQL Root Password and again click on Next.
Step 10: Finally, you have to choose whether you want to start the server or not or leave it as
it is. Now, the wizard will give you a list of the configurations which will be applied. So, if
you agree with the configuration click on Execute. Once the execution is done, click on
Finish. This will finish the configuration of Server.
Step 11: In the next wizard that comes up, you can choose to configure the Router. So just
click on Next and click on Finish.
Step 12: Once, you click on Finish, you will see the following wizard, to Connect to server.
Here mention the root password, which you had set in the previous steps. Check if the
connection is successful, by clicking on the Check button and then click on Execute. Now,
once the configuration is complete click on Next.
Step 13: Once, you click on Next, choose the configurations applied and click on Execute.
After the configurations get applied, you will see a screen. So, here just click on Finish.
Step 14: Now, to check whether MySQL is installed or not, you can open the MySQL Shell
and mention the root password.
5. 2) Types of SQL Commands
SQL commands are instructions. It is used to
communicate with the database. It is also used
to perform specific tasks, functions, and queries
of data.
SQL can perform various tasks like create a
table, add data to tables, drop the table, modify
the table, set permission for users.
Types of SQL Commands
There are five types of SQL commands: DDL,
DML, DCL, TCL, and DQL.
6. (1) Data Definition Language (DDL):
DDL changes the structure of the table like creating a table, deleting a table, altering a table,
etc. All the command of DDL are auto-committed that means it permanently save all the
changes in the database.
Here are some commands that come under DDL:
1) Create - It is used to create a new table in the database.
Syntax:
CREATE TABLE TABLE_NAME (COLUMN_NAME DATATYPES[,....]);
2) Alter - It is used to alter the structure of the database. This change could be either to
modify the characteristics of an existing attribute or probably to add a new attribute.
Syntax:
To add a new column in the table
ALTER TABLE TABLE_NAME ADD COLUMN_NAME COLUMN-definition;
7. 3) Drop - It is used to delete both the structure and record stored in the table.
Syntax:
DROP TABLE TABLE_NAME;
4) Truncate - It is used to delete all the rows from the table and free the space containing the
table.
Syntax:
TRUNCATE TABLE TABLE_NAME;
(2) Data Manipulation Language (DML):
DML commands are used to modify the database. It is responsible for all form of changes in
the database. The command of DML is not auto-committed that means it can't permanently
save all the changes in the database. They can be rollback.
8. Here are some commands that come under DML:
1) Select - This is the same as the projection operation of relational algebra. It is used to select
the attribute based on the condition described by WHERE clause.
Syntax:
SELECT expressions FROM TABLES WHERE conditions;
2) Insert - The INSERT statement is a SQL query. It is used to insert data into the row of a
table.
Syntax:
INSERT INTO TABLE_NAME (COL 1, COL 2, COL 3,.... COL N) VALUES (VALUE 1,
VALUE 2, VALUE 3, .... VALUE N);
3) Update - This command is used to update or modify the value of a column in the table.
Syntax:
UPDATE TABLE_NAME SET [COLUMN_NAME 1= VALUE 1,... COLUMN_NAME N
= VALUE N] [WHERE CONDITION]
9. 4) Delete - It is used to remove one or more row from a table.
Syntax:
DELETE FROM TABLE_NAME [WHERE CONDITION];
(3) Data Control Language (DCL):
DCL commands are used to grant and take back authority from any database user.
Here are some commands that come under DCL:
1) Grant
2) Revoke
a) Grant: It is used to give user access privileges to a database.
b) Revoke: It is used to take back permissions from the user.
(4) Transaction Control Language (TCL):
TCL commands can only use with DML commands like INSERT, DELETE and UPDATE
only . These operations are automatically committed in the database that's why they cannot be
used while creating tables or dropping them.
10. Here are some commands that come under TCL:
1) Commit - Commit command is used to save all the transactions to the database.
Syntax:
COMMIT;
2) Rollback - Rollback command is used to undo transactions that have not already
been saved to the database.
Syntax:
ROLLBACK;
• Save Point - It is used to roll the transaction back to a certain point without rolling
back the entire transaction.
Syntax:
SAVEPOINT SAVEPOINT_NAME;
11. Constraints
i) Keys play an important role in the relational database.
ii) It is used to uniquely identify any record or row of data from the
table. It is also used to establish and identify relationships between
tables.
3) Keys in SQL
12. Types of Keys:
1) Super Key – A super key is a group of single or multiple keys which identifies rows in a table.
2) Primary Key – is a column or group of columns in a table that uniquely identify every row in that table.
Rules for defining Primary key:
• Two rows can’t have the same primary key value
• It must for every row to have a primary key value.
• The primary key field cannot be null.
• The value in a primary key column can never be modified or updated if any foreign key refers to that primary
key.
3) Candidate Key – is a set of attributes that uniquely identify tuples in a table. Candidate Key is a super key
with no repeated attributes.
4) Alternate Key – is a column or group of columns in a table that uniquely identify every row in that table.
5) Foreign Key – is a column that creates a relationship between two tables. The purpose of Foreign keys is to
maintain data integrity and allow navigation between two different instances of an entity.
6) Composite Key – is a combination of two or more columns that uniquely identify rows in a table. The
combination of columns guarantees uniqueness, though individual uniqueness is not guaranteed.
7) Unique Key - A unique key is a set of one or more than one fields/columns of a table that uniquely identify a
record in a database table. The unique key and primary key both provide a guarantee for uniqueness for a
column or a set of columns. There is an automatically defined unique key constraint within a primary key
constraint.
13. 4) Integrity constraints in SQL
Types Of Constraints in MySQL:-
i. Not Null Constraints
ii. Unique Constraints
iii. Primary Key
iv. Foreign Key
v. Check Constraints
vi. Default Constraints