- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Data
Create, Populate, and Query a Table in Azure SQL Database
Hone your SQL skills by executing a few Data Definition Language (DDL) statements, and a few Data Manipulation Language (DML) statements. At the end of the lab, you will have experimented with running SQL statements in a live Azure environment, with the benefit of immediate feedback if you’ve made any errors in code or syntax order. All work takes place in the Azure portal.
Lab Info
Table of Contents
-
Challenge
Understand how to give yourself access to an Azure SQL Database
- Using the Azure portal, identify a pre-provisioned Azure SQL server, along with the one database deployed to that server.
- Give your own IP address access to the server.
- Use the query editor to log into the database deployed on the server (see the Project Guide for instructions on retrieving the login password).
-
Challenge
Demonstrate how to create a database table using SQL
- Create a
customertable. - Include an
IDcolumn as the primary key, and create five additional columns, at least one of which is not a string data type.
- Create a
-
Challenge
Demonstrate how to populate and query a database table using SQL
- Insert at least five rows into the
customertable. - Write a SQL statement that returns all columns and all rows of the
customertable. - Write a SQL statement that returns only two columns and only some of the rows in the
customertable.
- Insert at least five rows into the
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.