1 00:00:00,120 --> 00:00:00,540 All right. 2 00:00:00,540 --> 00:00:02,640 So now we're talking about less than we just talked about. 3 00:00:02,640 --> 00:00:04,440 Greater than and greater than or equal to. 4 00:00:04,680 --> 00:00:06,660 So this one should be much shorter. 5 00:00:07,230 --> 00:00:12,750 In fact, the total time that it will take will be less than the previous video. 6 00:00:13,680 --> 00:00:14,280 Yeah. 7 00:00:14,640 --> 00:00:18,030 So it works the same way, although it does the opposite. 8 00:00:18,600 --> 00:00:21,150 If you're familiar again, it's just the less than bracket. 9 00:00:21,150 --> 00:00:23,100 The angle bracket I think is what they're called. 10 00:00:23,160 --> 00:00:24,190 Just remember that. 11 00:00:24,210 --> 00:00:25,800 So shift. 12 00:00:25,800 --> 00:00:27,790 And then on most keywords, it's a comma. 13 00:00:27,810 --> 00:00:29,520 So we can do things like this. 14 00:00:29,520 --> 00:00:36,050 So rather than selecting all books released after 2000, we just switch it to the less than sign and 15 00:00:36,060 --> 00:00:38,400 I'll select star from books where released. 16 00:00:38,400 --> 00:00:41,580 Here is anything below the number 2000. 17 00:00:42,810 --> 00:00:51,090 So if we try that select title and release here from books, if we do all of them and let's do our order 18 00:00:51,090 --> 00:00:57,510 by again release tier just to make it easier to see where we have missing gaps. 19 00:00:57,900 --> 00:01:00,810 Okay, so we want all of these to disappear. 20 00:01:01,350 --> 00:01:03,150 Or excuse me, we want all of these to disappear. 21 00:01:03,150 --> 00:01:05,340 And we only want to select these five. 22 00:01:06,970 --> 00:01:09,910 All we need to do is add in our where. 23 00:01:12,100 --> 00:01:16,900 Released here is less than 2000. 24 00:01:17,830 --> 00:01:19,000 And there we go. 25 00:01:20,620 --> 00:01:23,500 So that's pretty much all I'll say about it for now. 26 00:01:23,770 --> 00:01:28,300 Along with that, of course, we have less than or equal to which works the same way that greater than. 27 00:01:28,300 --> 00:01:32,370 Well, it doesn't work the same way it works in the same way that greater than or equal to does. 28 00:01:32,380 --> 00:01:38,020 So if I wanted to include the year 2000 for whatever reason, I just need that equal sign after the 29 00:01:38,020 --> 00:01:38,980 less than sine. 30 00:01:39,130 --> 00:01:44,470 And now we get the same five books plus the one that was written in 2000. 31 00:01:44,560 --> 00:01:46,360 Amazing Adventures of Kavalier and Clay. 32 00:01:47,320 --> 00:01:48,550 That's pretty much it. 33 00:01:48,760 --> 00:01:54,250 I will throw up a few exercises here if you want to try evaluating them, and then we're moving on to 34 00:01:54,250 --> 00:01:56,500 some more interesting and complex operators. 35 00:01:57,430 --> 00:01:57,790 All right. 36 00:01:57,790 --> 00:01:58,720 So I'm back here. 37 00:01:58,720 --> 00:02:01,120 I typed up a couple of quick exercises. 38 00:02:01,240 --> 00:02:02,710 Go ahead, try this out. 39 00:02:02,740 --> 00:02:06,760 I'll throw up that same graphic again and I'll be back in 1/2. 40 00:02:07,600 --> 00:02:08,110 Okay. 41 00:02:08,320 --> 00:02:09,280 I'm back here. 42 00:02:09,280 --> 00:02:10,930 So let's go through these quickly. 43 00:02:10,960 --> 00:02:15,010 The first one is three less than negative ten. 44 00:02:15,550 --> 00:02:18,730 Well, I don't think so. 45 00:02:19,480 --> 00:02:20,650 But let's verify. 46 00:02:21,370 --> 00:02:22,720 You can see zero. 47 00:02:22,720 --> 00:02:23,920 Meaning false. 48 00:02:23,980 --> 00:02:24,790 It's not. 49 00:02:25,960 --> 00:02:28,630 Is negative ten, less than negative nine. 50 00:02:30,680 --> 00:02:31,750 Yes, it is. 51 00:02:31,760 --> 00:02:32,780 It's lower than negative. 52 00:02:32,780 --> 00:02:36,680 Nine is 42 less than or equal to 42. 53 00:02:38,310 --> 00:02:39,780 Hope need to add a space there. 54 00:02:40,860 --> 00:02:43,770 And as you would expect, we get yes, we get one. 55 00:02:43,800 --> 00:02:46,920 True, because 42 is equal to 42. 56 00:02:47,220 --> 00:02:49,380 And now on to the odd string ones. 57 00:02:50,190 --> 00:02:54,510 It's the letter H lowercase less than the letter P, also lowercase. 58 00:02:55,530 --> 00:03:00,600 And if you remember to the last video how this works, h comes before P and they're both lowercase. 59 00:03:00,600 --> 00:03:04,230 So yes, this should be true and it is. 60 00:03:04,740 --> 00:03:07,080 Okay, so this final one is uppercase. 61 00:03:07,080 --> 00:03:08,790 Q Less than or equal to lowercase? 62 00:03:08,790 --> 00:03:15,690 Q Well, this should be review from the last video because remember, that case doesn't matter. 63 00:03:16,530 --> 00:03:19,680 So we see that, yes, indeed it is true. 64 00:03:20,070 --> 00:03:25,080 Uppercase Q is less than or equal to lowercase Q and if we get rid of the equal to. 65 00:03:26,570 --> 00:03:29,030 This is basically a duplicate of what we just did in the last video. 66 00:03:29,030 --> 00:03:33,040 But I just want to hit this home that it is not lower. 67 00:03:33,050 --> 00:03:36,110 It's not greater than they are equivalent. 68 00:03:36,770 --> 00:03:38,360 Well, that's a minus sign. 69 00:03:38,990 --> 00:03:39,540 There we go. 70 00:03:39,560 --> 00:03:40,310 They're equivalent. 71 00:03:40,340 --> 00:03:42,260 As you can see, we get true or one. 72 00:03:42,800 --> 00:03:43,280 Okay. 73 00:03:43,310 --> 00:03:48,560 Next up, moving on to much more exciting, much bigger and important logical operators.