![]() And then that third argument for the units you're going to put the units within quotation marks to make it a text string. The earlier date is going to be a reference to the players birthday again using the prop function. The function is always going to return the current date and time in the second argument. So the first argument here the later date is going to use the special now function which takes no arguments. The first two are the dates that we want to find the amount of time between the first one being the later date and then the third argument is going to be the unit that we want to use two for the returned value. So the day between function is going to take three arguments. Meaning there are no spaces between the words, the first word is all lowercase, and then the subsequent words begin with the capital letter. Most of notions functions if they contain two words they'll use camel case. When we write the date between function, we're going to use camel case. There's a special function for finding the amount of time between two dates and that's called the day between function. So to do so we want to find the amount of time between the players' birthday and the current time. So this database gives us the players birthday it's of the date value type and we want to use that birthday to determine each player's age. And there is a third way of creating each player's full name this time using another function the join function. So we'll start with just our space and then we'll reference our first name and then our last name. The join function will begin with a join keyword and its first argument is the character that you want to use to separate the subsequent arguments, the subsequent text string. Now we can do it a third way using the join function. So there's another way of concatenating or merging these names, the first name, and the last name this time using the concat function. We want to add our space as the second argument and then the third argument will be our reference to the last name. So again, that'll be the first name and we're gonna use the prop function to reference that again. And its arguments are just the series of text strings that you want to concatenate. To do this, we could also use the concat function which is the cat. When we confirm we have our first and last name now. Our concatenation operator will add our space which we want between the first and the last names another concatenation operator and then we'll reference the last name. That function uses the property word and as its argument, it takes a text string which is the name of the property that we want to reference. We're going to reference the first name by using the prop function. When you apply a plus sign between two text strings, it's going to merge them. So we'll start by using our concatenation operator which is the plus sign. ![]() So we're going to use a formula to create the full name by merging the first name with the last name and adding a space between them. In this database, we're given the last name and the first name of each basketball player. So let's start with our basketball players. The first is a roster of basketball players that comprise a team and then the second is a collection of online orders. And when we do so, we'll be working with two sample databases. In this video, we're going to put those terms and concepts to work through a few simple and practical examples. If you haven't seen that, you'll find it linked within the description of this video along with the detailed text post on notion VIP. In a previous video, I introduced notions formula property and covered the fundamental terms and concepts.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |