Combine Multiple Pieces of Data in SQL

提供方
Coursera Project Network
在此指导项目中,您将:

Generate an SQL query result in CSV (comma-separated values) format.

Work with SQL functions to concatenate data values.

Write and execute SQL queries in MySQL Workbench.

Clock2 hours
Intermediate中级
Cloud无需下载
Video分屏视频
Comment Dots英语(English)
Laptop仅限桌面

In this project, you will use MySQL Workbench to write SQL queries that concatenate or combine multiple data values. Since a database is typically designed to store pieces of data at the atomic level, it is often necessary to put pieces back together to make data more useful to a user. A good example of that would be concatenating a customer’s first name and last name to produce a mailing label.

您要培养的技能

  • Mysql Workbench
  • Concatenate Data
  • Combine Data
  • Concat()
  • SQL code

分步进行学习

在与您的工作区一起在分屏中播放的视频中,您的授课教师将指导您完成每个步骤:

  1. Use MySQL Workbench to view an SQL script that uses the CONCAT() function to combine first name and last name columns into one full-name column.

  2. Create a CSV (comma-separated values) format by using the SQL CONCAT() function to combine multiple fields while separating them with commas.

  3. Use the SQL CONCAT_WS() function as a shortcut process for creating output in a CSV format.

  4. Use the SQL CONCAT() function inside the SQL CONCAT_WS() function to include full name in a CSV file format.

  5. Switch to the SQL CONCAT_WS() function to combine fields when some of the fields contain null values.

指导项目工作原理

您的工作空间就是浏览器中的云桌面,无需下载

在分屏视频中,您的授课教师会为您提供分步指导

常见问题

常见问题

还有其他问题吗?请访问 学生帮助中心