Now let's explore some of the real world use cases that we can use ChatGPT Canvas for. And I would like to create a SQL database from the image of its architecture. So let's go to one of the articles where we can use the example of the entity relationship model. Let's imagine you are scrolling down the article around the dimensional modeling and trying to learn a little bit more about different data models, and you stumble upon the concept of entity relationship model. And you would like to explore further of the diagram. And one thing that you could do is to take a screenshot of this diagram and ask ChatGPT to actually convert to a SQL database based on the image above, and populate with some data to have a more interactive view of the database. So now you can see it creates a SQL file with some of the populated fields. Now we have this website called SQL Fiddle. We'll try to compile the table. The SQL database. And as you can see we are getting some errors. So we can try to iterate with the model to resolve some words. So first it didn't need to have it commented out to create to avoid the access denied error. And let's see. Now there was a syntax highlighting error. You can copy and paste and ask the model to fix it. And as you can see, it has put the groups in quotation marks. Now we can ask the model to fix the same issue with other tables. And it will try to create quotation marks in every other table. As you can just see right now. Okay, so, debugged the code by copying and pasting the errors, and the model finally figured out, and now we can, like, easily render and query the database, as you can see it here. Now that the error was fixed, let's find all the teachers. So the way to do this is to say select asterisk from teachers. And as you can see it gave us an output for all the teachers available. I'm going to ask the model to add I'm going to ask the model to add more teachers and subjects and more students. So you can see the model added more teachers, more subjects and more students. Now I'm going to ask the model to create a query for students who took math. 52 00:03:26,372 --> 00:03:29,075 Okay. Cool. Now if you can see all the students who took math subjects. I'm going to ask the model to Show the teacher for the student as well. Let's make the query and you can see the model. So is there a particular section so we can copy and paste the query and try to execute. So now you can see that only John Smith is a math teacher. I encourage you to try out more complicated, SQL queries and even create your own databases for your applications. Or you can try to generate any game from scratch with your own game mechanics and rules and share it with other friends.