SlideShare a Scribd company logo
IT203 - Database Development Unit 5 – Microsoft SQL Server and MySQL Matthew Moldvan
Key Concepts ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
MSSQL Management Studio The  Object Explorer  shows SQL Server 2005 objects and the folders that are used to contain and organize those objects The  Summary  tabbed window displays the objects within the object selected in the Object Explorer window The  System Databases  folder contains database objects for the databases automatically created by SQL Server 2005 The  Databases  folder is selected in the Object Explorer window, so the Summary window shows the contents of Databases The  Art_Course_Database  datbase object holds the database named  Art_Course_Database
Creating a database in MSSQL Click  New Database  to create a new database Right-click  Databases  to display the shortcut menu
Creating a database in MSSQL (Cont'd) Click the  OK  button to create the new database Type the new database name here
Creating a database in MSSQL (Cont'd) F
Creating SQL Scripts This is the Microsoft Notepad text editor—the file name is  DBC-e03-MSSQL-WPC-Create-Tables.sql The SQL keyword Name is enclosed in brackets as  [Name] The lines that start with /* are comments—any text between the /* and the */ characters on a line is a comment and ignored by the DBMS when it runs the SQL
Queries and types of queries ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Queries and types of queries (cont'd) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Executing SQL scripts You have to specify which database is being used when the script is run—select  WPC  from the drop down list before executing the script Click the  Execute  button in the  SQL Editor toolbar  to run the script The tabbed script window with the open script displayed—to close this window after the script is run click the  X  symbol to the right of this tab
Script results The objects representing the tables created by the script are shown in the expanded Tables folder— dbo  stands for  database owner Messages are shown here—either that the commands were successful or appropriate error messages
Query window Click the  New Query  button in the Standard toolbar to open the query window and display the MySQL Editor toolbar Select the database that you want to query by clicking the database name to select the database The selected (active) database name appears in the SQL Editor toolbar Type your SQL query into this tabbed window
Sample Query The tabbed Results window—you can adjust window boundaries and column widths using standard Windows drag-and-drop techniques The SQL query—the asterisk after  .sql  on the window tab means the text has been changed but not saved
MySQL Query Browser
MySQL Query Browser The SQL query text box in the MySQL Query Browser  Query Toolbar —type SQL queries in this area The  ResultSet  window—the results of a query are displayed here The  Schemata  pane—the default schema can be selected from the available database schemas
Creating a database using MySQL Browser Right-click anywhere in the  Schemata  pane to display the shortcut menu
New schema dialog ,[object Object],Click the  OK  button to create the new database Type the new database (“schema”) name here
This is the Microsoft Notepad text editor—the file name is  DBC-e03-MySQL-WPC-Create-Tables.sql Creating an SQL script
3NF Solution All the fields in the MEMBER table are determined by  email . In VISIT, all non-key fields are determined by  id  and  email .  All the non-key fields are determined only by the primary key.
Opening script The  Script 1  tabbed window with the open script displayed—to close this window after the script is run click the  X  symbol on this tab Click the  Execute  button to run the script After the script is run, expand the WPC schema object to see the tables created by the script
Query results This is the MySQL Query Browser  Query Toolbar —enter your SQL statement into this  text box  and then click the  Execute  button to the right to run the query Query results are shown in the  Resultset  window—you can use standard Windows drag and drop techniques to change the column widths to adjust the results display
Additional Results ,[object Object],Use the  File | New Resultset Tab  command to open an additional tabbed Results window—you can have multiple Results and Script windows open at the same time
Database Development ,[object Object],[object Object],[object Object]

More Related Content

What's hot

Microsoft Access 2007
Microsoft Access 2007Microsoft Access 2007
Microsoft Access 2007
Reshma Arun
 
Phpmyadmin administer mysql
Phpmyadmin administer mysqlPhpmyadmin administer mysql
Phpmyadmin administer mysql
Mohd yasin Karim
 
MS Access teaching powerpoint tasks
MS Access teaching powerpoint tasksMS Access teaching powerpoint tasks
MS Access teaching powerpoint tasks
skomadina
 
Access 2007
Access 2007Access 2007
Access 2007
rupalidhir
 
Access 2007 lecture notes students
Access 2007 lecture notes studentsAccess 2007 lecture notes students
Access 2007 lecture notes students
IYAKAREMYE Jean De Dieu
 
Sql a practical introduction
Sql   a practical introductionSql   a practical introduction
Sql a practical introductionHasan Kata
 
BlackOps Projects (SQL Server Add-Ins)
BlackOps Projects (SQL Server Add-Ins)BlackOps Projects (SQL Server Add-Ins)
BlackOps Projects (SQL Server Add-Ins)James Schneider
 
creating data
creating datacreating data
creating data
sabinji
 
Data Validation
Data ValidationData Validation
Data Validation
Sushmita Ghosh
 
Access2007
Access2007Access2007
Access2007aditu_7
 
Basic Access Notes
Basic Access NotesBasic Access Notes
Basic Access Notes
Pyi Soe
 
Ms access ppt 2017 by Gopal saha
Ms access ppt 2017 by Gopal sahaMs access ppt 2017 by Gopal saha
Ms access ppt 2017 by Gopal saha
253253
 
Ms access
Ms accessMs access
Ms access
Shubhanjali -
 
Ms Access ppt
Ms Access pptMs Access ppt
Ms Access ppt
anuj
 
Access Basics 01
Access Basics 01Access Basics 01
Access Basics 01
Lets try
 
PPT On MS-Access 2007 | Full Concepts |
PPT On MS-Access 2007 | Full Concepts |PPT On MS-Access 2007 | Full Concepts |
PPT On MS-Access 2007 | Full Concepts |
Umesh Kumar
 

What's hot (19)

Microsoft Access 2007
Microsoft Access 2007Microsoft Access 2007
Microsoft Access 2007
 
Phpmyadmin administer mysql
Phpmyadmin administer mysqlPhpmyadmin administer mysql
Phpmyadmin administer mysql
 
MS Access teaching powerpoint tasks
MS Access teaching powerpoint tasksMS Access teaching powerpoint tasks
MS Access teaching powerpoint tasks
 
Access 2007
Access 2007Access 2007
Access 2007
 
Access 2007 lecture notes students
Access 2007 lecture notes studentsAccess 2007 lecture notes students
Access 2007 lecture notes students
 
Sql a practical introduction
Sql   a practical introductionSql   a practical introduction
Sql a practical introduction
 
001.general
001.general001.general
001.general
 
BlackOps Projects (SQL Server Add-Ins)
BlackOps Projects (SQL Server Add-Ins)BlackOps Projects (SQL Server Add-Ins)
BlackOps Projects (SQL Server Add-Ins)
 
Access2007
Access2007Access2007
Access2007
 
creating data
creating datacreating data
creating data
 
Data Validation
Data ValidationData Validation
Data Validation
 
Access2007
Access2007Access2007
Access2007
 
Basic Access Notes
Basic Access NotesBasic Access Notes
Basic Access Notes
 
Ms access ppt 2017 by Gopal saha
Ms access ppt 2017 by Gopal sahaMs access ppt 2017 by Gopal saha
Ms access ppt 2017 by Gopal saha
 
Ms access
Ms accessMs access
Ms access
 
VB6 Using ADO Data Control
VB6 Using ADO Data ControlVB6 Using ADO Data Control
VB6 Using ADO Data Control
 
Ms Access ppt
Ms Access pptMs Access ppt
Ms Access ppt
 
Access Basics 01
Access Basics 01Access Basics 01
Access Basics 01
 
PPT On MS-Access 2007 | Full Concepts |
PPT On MS-Access 2007 | Full Concepts |PPT On MS-Access 2007 | Full Concepts |
PPT On MS-Access 2007 | Full Concepts |
 

Viewers also liked

Microsoft office cheap
Microsoft office cheapMicrosoft office cheap
Microsoft office cheap
davadtech
 
Parental language
Parental languageParental language
Parental languagesecret876
 
Music magazine genres
Music magazine genresMusic magazine genres
Music magazine genreshanaf12345
 
Juana Martín
Juana MartínJuana Martín
Juana Martín
cordopolis
 
Automation alley day in the cloud presentation - formatted
Automation alley   day in the cloud presentation - formattedAutomation alley   day in the cloud presentation - formatted
Automation alley day in the cloud presentation - formattedMatthew Moldvan
 
God’S Design For Husbands And Wives
God’S Design For Husbands And WivesGod’S Design For Husbands And Wives
God’S Design For Husbands And Wives
JeffLeFever
 
Horario Educación Inicial Unheval
Horario Educación Inicial UnhevalHorario Educación Inicial Unheval
Horario Educación Inicial Unheval
Javier Villar
 
TYPES OF KEYS
TYPES OF KEYSTYPES OF KEYS
TYPES OF KEYS
Pavan Narkhede
 

Viewers also liked (13)

Microsoft office cheap
Microsoft office cheapMicrosoft office cheap
Microsoft office cheap
 
Parental language
Parental languageParental language
Parental language
 
Rrrr
RrrrRrrr
Rrrr
 
Music magazine genres
Music magazine genresMusic magazine genres
Music magazine genres
 
Juana Martín
Juana MartínJuana Martín
Juana Martín
 
Automation alley day in the cloud presentation - formatted
Automation alley   day in the cloud presentation - formattedAutomation alley   day in the cloud presentation - formatted
Automation alley day in the cloud presentation - formatted
 
God’S Design For Husbands And Wives
God’S Design For Husbands And WivesGod’S Design For Husbands And Wives
God’S Design For Husbands And Wives
 
Saibal-Ghosh
Saibal-GhoshSaibal-Ghosh
Saibal-Ghosh
 
Horario Educación Inicial Unheval
Horario Educación Inicial UnhevalHorario Educación Inicial Unheval
Horario Educación Inicial Unheval
 
Actividades y tareas
Actividades y tareasActividades y tareas
Actividades y tareas
 
ERD Example
ERD ExampleERD Example
ERD Example
 
TYPES OF KEYS
TYPES OF KEYSTYPES OF KEYS
TYPES OF KEYS
 
DBMS Keys
DBMS KeysDBMS Keys
DBMS Keys
 

Similar to It203 class slides-unit5

BUSI 301 Book Review RubricScoreCommentsResearch 25.docx
BUSI 301 Book Review RubricScoreCommentsResearch 25.docxBUSI 301 Book Review RubricScoreCommentsResearch 25.docx
BUSI 301 Book Review RubricScoreCommentsResearch 25.docx
humphrieskalyn
 
Access tips access and sql part 4 building select queries on-the-fly
Access tips  access and sql part 4  building select queries on-the-flyAccess tips  access and sql part 4  building select queries on-the-fly
Access tips access and sql part 4 building select queries on-the-fly
quest2900
 
Sql server 2012 tutorials writing transact-sql statements
Sql server 2012 tutorials   writing transact-sql statementsSql server 2012 tutorials   writing transact-sql statements
Sql server 2012 tutorials writing transact-sql statementsSteve Xu
 
Based on the materials for this week, create your own unique Datab.docx
Based on the materials for this week, create your own unique Datab.docxBased on the materials for this week, create your own unique Datab.docx
Based on the materials for this week, create your own unique Datab.docx
JASS44
 
Relational models
Relational modelsRelational models
Relational models
Samuel Igbanogu
 
Oracle application express
Oracle application expressOracle application express
Oracle application express
Abhinaw Kumar
 
Oracle application express ppt
Oracle application express pptOracle application express ppt
Oracle application express pptAbhinaw Kumar
 
7. SQL.pptx
7. SQL.pptx7. SQL.pptx
7. SQL.pptx
chaitanya149090
 
DSN_Power BIDSN_Power BIDSN_Power BIDSN_Power BIDSN_Power BIDSN_Power BI
DSN_Power BIDSN_Power BIDSN_Power BIDSN_Power BIDSN_Power BIDSN_Power BIDSN_Power BIDSN_Power BIDSN_Power BIDSN_Power BIDSN_Power BIDSN_Power BI
DSN_Power BIDSN_Power BIDSN_Power BIDSN_Power BIDSN_Power BIDSN_Power BI
EzekielJames8
 
Business Intelligence Technology Presentation
Business Intelligence Technology PresentationBusiness Intelligence Technology Presentation
Business Intelligence Technology Presentation
John Paredes
 
Simple ado program by visual studio
Simple ado program by visual studioSimple ado program by visual studio
Simple ado program by visual studio
Aravindharamanan S
 
Simple ado program by visual studio
Simple ado program by visual studioSimple ado program by visual studio
Simple ado program by visual studio
Aravindharamanan S
 
4) databases
4) databases4) databases
4) databasestechbed
 
Lab 2 Work with Dictionary and Create Relational Database (60 pts.).docx
Lab 2 Work with Dictionary and Create Relational Database (60 pts.).docxLab 2 Work with Dictionary and Create Relational Database (60 pts.).docx
Lab 2 Work with Dictionary and Create Relational Database (60 pts.).docx
VinaOconner450
 
Sq lite manager
Sq lite managerSq lite manager
Sq lite manager
Aravindharamanan S
 
Project Presentation
Project PresentationProject Presentation
Project Presentation
ShariffAyesha
 
Generic steps in informatica
Generic steps in informaticaGeneric steps in informatica
Generic steps in informaticaBhuvana Priya
 
Waiting too long for Excel's VLOOKUP? Use SQLite for simple data analysis!
Waiting too long for Excel's VLOOKUP? Use SQLite for simple data analysis!Waiting too long for Excel's VLOOKUP? Use SQLite for simple data analysis!
Waiting too long for Excel's VLOOKUP? Use SQLite for simple data analysis!
Amanda Lam
 
ssis lab
ssis labssis lab
ssis lab
rasheedam
 
Mule data bases
Mule data basesMule data bases
Mule data bases
Naresh Naidu
 

Similar to It203 class slides-unit5 (20)

BUSI 301 Book Review RubricScoreCommentsResearch 25.docx
BUSI 301 Book Review RubricScoreCommentsResearch 25.docxBUSI 301 Book Review RubricScoreCommentsResearch 25.docx
BUSI 301 Book Review RubricScoreCommentsResearch 25.docx
 
Access tips access and sql part 4 building select queries on-the-fly
Access tips  access and sql part 4  building select queries on-the-flyAccess tips  access and sql part 4  building select queries on-the-fly
Access tips access and sql part 4 building select queries on-the-fly
 
Sql server 2012 tutorials writing transact-sql statements
Sql server 2012 tutorials   writing transact-sql statementsSql server 2012 tutorials   writing transact-sql statements
Sql server 2012 tutorials writing transact-sql statements
 
Based on the materials for this week, create your own unique Datab.docx
Based on the materials for this week, create your own unique Datab.docxBased on the materials for this week, create your own unique Datab.docx
Based on the materials for this week, create your own unique Datab.docx
 
Relational models
Relational modelsRelational models
Relational models
 
Oracle application express
Oracle application expressOracle application express
Oracle application express
 
Oracle application express ppt
Oracle application express pptOracle application express ppt
Oracle application express ppt
 
7. SQL.pptx
7. SQL.pptx7. SQL.pptx
7. SQL.pptx
 
DSN_Power BIDSN_Power BIDSN_Power BIDSN_Power BIDSN_Power BIDSN_Power BI
DSN_Power BIDSN_Power BIDSN_Power BIDSN_Power BIDSN_Power BIDSN_Power BIDSN_Power BIDSN_Power BIDSN_Power BIDSN_Power BIDSN_Power BIDSN_Power BI
DSN_Power BIDSN_Power BIDSN_Power BIDSN_Power BIDSN_Power BIDSN_Power BI
 
Business Intelligence Technology Presentation
Business Intelligence Technology PresentationBusiness Intelligence Technology Presentation
Business Intelligence Technology Presentation
 
Simple ado program by visual studio
Simple ado program by visual studioSimple ado program by visual studio
Simple ado program by visual studio
 
Simple ado program by visual studio
Simple ado program by visual studioSimple ado program by visual studio
Simple ado program by visual studio
 
4) databases
4) databases4) databases
4) databases
 
Lab 2 Work with Dictionary and Create Relational Database (60 pts.).docx
Lab 2 Work with Dictionary and Create Relational Database (60 pts.).docxLab 2 Work with Dictionary and Create Relational Database (60 pts.).docx
Lab 2 Work with Dictionary and Create Relational Database (60 pts.).docx
 
Sq lite manager
Sq lite managerSq lite manager
Sq lite manager
 
Project Presentation
Project PresentationProject Presentation
Project Presentation
 
Generic steps in informatica
Generic steps in informaticaGeneric steps in informatica
Generic steps in informatica
 
Waiting too long for Excel's VLOOKUP? Use SQLite for simple data analysis!
Waiting too long for Excel's VLOOKUP? Use SQLite for simple data analysis!Waiting too long for Excel's VLOOKUP? Use SQLite for simple data analysis!
Waiting too long for Excel's VLOOKUP? Use SQLite for simple data analysis!
 
ssis lab
ssis labssis lab
ssis lab
 
Mule data bases
Mule data basesMule data bases
Mule data bases
 

Recently uploaded

AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
g2nightmarescribd
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 

Recently uploaded (20)

AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 

It203 class slides-unit5

  • 1. IT203 - Database Development Unit 5 – Microsoft SQL Server and MySQL Matthew Moldvan
  • 2.
  • 3. MSSQL Management Studio The Object Explorer shows SQL Server 2005 objects and the folders that are used to contain and organize those objects The Summary tabbed window displays the objects within the object selected in the Object Explorer window The System Databases folder contains database objects for the databases automatically created by SQL Server 2005 The Databases folder is selected in the Object Explorer window, so the Summary window shows the contents of Databases The Art_Course_Database datbase object holds the database named Art_Course_Database
  • 4. Creating a database in MSSQL Click New Database to create a new database Right-click Databases to display the shortcut menu
  • 5. Creating a database in MSSQL (Cont'd) Click the OK button to create the new database Type the new database name here
  • 6. Creating a database in MSSQL (Cont'd) F
  • 7. Creating SQL Scripts This is the Microsoft Notepad text editor—the file name is DBC-e03-MSSQL-WPC-Create-Tables.sql The SQL keyword Name is enclosed in brackets as [Name] The lines that start with /* are comments—any text between the /* and the */ characters on a line is a comment and ignored by the DBMS when it runs the SQL
  • 8.
  • 9.
  • 10. Executing SQL scripts You have to specify which database is being used when the script is run—select WPC from the drop down list before executing the script Click the Execute button in the SQL Editor toolbar to run the script The tabbed script window with the open script displayed—to close this window after the script is run click the X symbol to the right of this tab
  • 11. Script results The objects representing the tables created by the script are shown in the expanded Tables folder— dbo stands for database owner Messages are shown here—either that the commands were successful or appropriate error messages
  • 12. Query window Click the New Query button in the Standard toolbar to open the query window and display the MySQL Editor toolbar Select the database that you want to query by clicking the database name to select the database The selected (active) database name appears in the SQL Editor toolbar Type your SQL query into this tabbed window
  • 13. Sample Query The tabbed Results window—you can adjust window boundaries and column widths using standard Windows drag-and-drop techniques The SQL query—the asterisk after .sql on the window tab means the text has been changed but not saved
  • 15. MySQL Query Browser The SQL query text box in the MySQL Query Browser Query Toolbar —type SQL queries in this area The ResultSet window—the results of a query are displayed here The Schemata pane—the default schema can be selected from the available database schemas
  • 16. Creating a database using MySQL Browser Right-click anywhere in the Schemata pane to display the shortcut menu
  • 17.
  • 18. This is the Microsoft Notepad text editor—the file name is DBC-e03-MySQL-WPC-Create-Tables.sql Creating an SQL script
  • 19. 3NF Solution All the fields in the MEMBER table are determined by email . In VISIT, all non-key fields are determined by id and email . All the non-key fields are determined only by the primary key.
  • 20. Opening script The Script 1 tabbed window with the open script displayed—to close this window after the script is run click the X symbol on this tab Click the Execute button to run the script After the script is run, expand the WPC schema object to see the tables created by the script
  • 21. Query results This is the MySQL Query Browser Query Toolbar —enter your SQL statement into this text box and then click the Execute button to the right to run the query Query results are shown in the Resultset window—you can use standard Windows drag and drop techniques to change the column widths to adjust the results display
  • 22.
  • 23.