WHERE Property For Filtering

2 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$99.99
List Price:  $139.99
You save:  $40
€85.79
List Price:  €120.12
You save:  €34.32
£74.20
List Price:  £103.88
You save:  £29.68
CA$138.78
List Price:  CA$194.29
You save:  CA$55.51
A$155.64
List Price:  A$217.90
You save:  A$62.26
S$128.66
List Price:  S$180.13
You save:  S$51.47
HK$781.25
List Price:  HK$1,093.78
You save:  HK$312.53
CHF 80.53
List Price:  CHF 112.74
You save:  CHF 32.21
NOK kr1,018.24
List Price:  NOK kr1,425.58
You save:  NOK kr407.33
DKK kr640.36
List Price:  DKK kr896.54
You save:  DKK kr256.17
NZ$171.61
List Price:  NZ$240.26
You save:  NZ$68.65
د.إ367.21
List Price:  د.إ514.11
You save:  د.إ146.90
৳12,133.17
List Price:  ৳16,986.92
You save:  ৳4,853.75
₹8,726.08
List Price:  ₹12,216.86
You save:  ₹3,490.78
RM422.40
List Price:  RM591.38
You save:  RM168.98
₦153,653.63
List Price:  ₦215,121.23
You save:  ₦61,467.60
₨28,307.16
List Price:  ₨39,631.16
You save:  ₨11,324
฿3,261.92
List Price:  ฿4,566.82
You save:  ฿1,304.90
₺4,093.20
List Price:  ₺5,730.64
You save:  ₺1,637.44
B$548.44
List Price:  B$767.84
You save:  B$219.40
R1,769.81
List Price:  R2,477.81
You save:  R707.99
Лв167.77
List Price:  Лв234.88
You save:  Лв67.11
₩139,764.29
List Price:  ₩195,675.59
You save:  ₩55,911.30
₪341.76
List Price:  ₪478.48
You save:  ₪136.72
₱5,705.32
List Price:  ₱7,987.68
You save:  ₱2,282.35
¥14,765.78
List Price:  ¥20,672.68
You save:  ¥5,906.90
MX$1,878.08
List Price:  MX$2,629.39
You save:  MX$751.30
QR363.64
List Price:  QR509.11
You save:  QR145.47
P1,342.61
List Price:  P1,879.71
You save:  P537.09
KSh12,918.70
List Price:  KSh18,086.70
You save:  KSh5,168
E£4,858.01
List Price:  E£6,801.41
You save:  E£1,943.40
ብር14,076.08
List Price:  ብር19,707.07
You save:  ብር5,630.99
Kz91,181.83
List Price:  Kz127,658.21
You save:  Kz36,476.38
CLP$96,535.34
List Price:  CLP$135,153.34
You save:  CLP$38,618
CN¥717.72
List Price:  CN¥1,004.84
You save:  CN¥287.12
RD$6,193.55
List Price:  RD$8,671.22
You save:  RD$2,477.66
DA12,983.71
List Price:  DA18,177.72
You save:  DA5,194
FJ$227.20
List Price:  FJ$318.09
You save:  FJ$90.89
Q765.40
List Price:  Q1,071.60
You save:  Q306.19
GY$20,892.44
List Price:  GY$29,250.26
You save:  GY$8,357.81
ISK kr12,301.76
List Price:  ISK kr17,222.96
You save:  ISK kr4,921.20
DH901.39
List Price:  DH1,261.98
You save:  DH360.59
L1,683.34
List Price:  L2,356.74
You save:  L673.40
ден5,280.51
List Price:  ден7,392.93
You save:  ден2,112.41
MOP$803.85
List Price:  MOP$1,125.42
You save:  MOP$321.57
N$1,767.85
List Price:  N$2,475.06
You save:  N$707.21
C$3,675.80
List Price:  C$5,146.27
You save:  C$1,470.46
रु13,903.20
List Price:  रु19,465.04
You save:  रु5,561.83
S/350.18
List Price:  S/490.27
You save:  S/140.08
K418.98
List Price:  K586.59
You save:  K167.61
SAR375.26
List Price:  SAR525.38
You save:  SAR150.11
ZK2,331.29
List Price:  ZK3,263.90
You save:  ZK932.60
L433.87
List Price:  L607.44
You save:  L173.56
Kč2,104.46
List Price:  Kč2,946.33
You save:  Kč841.87
Ft33,953.75
List Price:  Ft47,536.61
You save:  Ft13,582.85
SEK kr958.07
List Price:  SEK kr1,341.34
You save:  SEK kr383.26
ARS$130,035.88
List Price:  ARS$182,055.44
You save:  ARS$52,019.55
Bs690.04
List Price:  Bs966.08
You save:  Bs276.04
COP$402,995.67
List Price:  COP$564,210.06
You save:  COP$161,214.39
₡50,467.01
List Price:  ₡70,655.84
You save:  ₡20,188.82
L2,619.18
List Price:  L3,666.96
You save:  L1,047.77
₲721,597.35
List Price:  ₲1,010,265.16
You save:  ₲288,667.80
$U4,019.51
List Price:  $U5,627.48
You save:  $U1,607.96
zł364.72
List Price:  zł510.62
You save:  zł145.90
Already have an account? Log In

Transcript

Hello, in this video, we are going to take a look at the where property for filtering. So imagine if we, you know, this table these, you know, users, maybe they have some sort of, you know permissions. So you have like a regular user super user, that sort of stuff. So let's actually, you know, format this. So go to the structure, go to we want to add a nova, you know, section here, so we want to go to where is it? No, come see what I'm looking for.

Now, there we go. Add Column, so just want to add one more column. And this is going to be var char, this is going to be a C chord type. So we're gonna have we're going to have a default value, so the default value will just Be regular user specified now, we don't need anything 16 really. And if we go to browse, there we go. So what we want to do is set Batman and Yoda to a super user, which just had, you know, high privileges.

Technically, obviously, we're not doing any user system yet. But you'll get, you know, a rough idea. So imagine if we only want to select users, or rows, that has a type of super user to do this really simple. Just put, where then you specify the actual, you know, column that you check in. So it's going to be type, and then say, petitioner, super user. And now if I run it, as you can see, it only gets them now, if I was to change this to use that you should only get the first one like so.

And if we put something That doesn't exist, it will get non all rows like so. And you can easily put a variable here as well. So you could easily put $1 type equals per you there. And you could just put dollar type here. They all do the same thing. So I'm gonna switch this back.

And there you go. That's really all you need to know regarding the where clause. This allows you to check you know, the type of data that you're getting and only get certain data. And that's it. If you have any questions, feel free to pop me a message, and I look forward to seeing you in the next video.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.