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.

指導項目工作原理

您的工作空間就是瀏覽器中的雲桌面,無需下載

在分屏視頻中,您的授課教師會為您提供分步指導

常見問題

常見問題

還有其他問題嗎?請訪問 學生幫助中心