Select distinct statement in SQL

1 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$49.99
List Price:  $69.99
You save:  $20
€42.99
List Price:  €60.19
You save:  €17.20
£37.79
List Price:  £52.91
You save:  £15.11
CA$69.90
List Price:  CA$97.87
You save:  CA$27.96
A$76.32
List Price:  A$106.86
You save:  A$30.53
S$64.75
List Price:  S$90.65
You save:  S$25.90
HK$389.33
List Price:  HK$545.09
You save:  HK$155.76
CHF 40.13
List Price:  CHF 56.19
You save:  CHF 16.05
NOK kr506.40
List Price:  NOK kr709
You save:  NOK kr202.60
DKK kr321.09
List Price:  DKK kr449.55
You save:  DKK kr128.46
NZ$87.20
List Price:  NZ$122.09
You save:  NZ$34.88
د.إ183.58
List Price:  د.إ257.03
You save:  د.إ73.45
৳6,087.86
List Price:  ৳8,523.49
You save:  ৳2,435.63
₹4,475.84
List Price:  ₹6,266.53
You save:  ₹1,790.69
RM206.50
List Price:  RM289.12
You save:  RM82.62
₦72,144.06
List Price:  ₦101,007.46
You save:  ₦28,863.40
₨14,074.77
List Price:  ₨19,705.81
You save:  ₨5,631.03
฿1,597.68
List Price:  ฿2,236.88
You save:  ฿639.20
₺2,123.53
List Price:  ₺2,973.11
You save:  ₺849.58
B$269.04
List Price:  B$376.67
You save:  B$107.63
R854.36
List Price:  R1,196.17
You save:  R341.81
Лв84.16
List Price:  Лв117.83
You save:  Лв33.67
₩73,437.66
List Price:  ₩102,818.60
You save:  ₩29,380.94
₪163.14
List Price:  ₪228.41
You save:  ₪65.27
₱2,925.83
List Price:  ₱4,096.40
You save:  ₱1,170.56
¥7,761.25
List Price:  ¥10,866.37
You save:  ¥3,105.12
MX$913.91
List Price:  MX$1,279.55
You save:  MX$365.63
QR181.58
List Price:  QR254.23
You save:  QR72.64
P712.75
List Price:  P997.91
You save:  P285.15
KSh6,466.20
List Price:  KSh9,053.20
You save:  KSh2,587
E£2,374.94
List Price:  E£3,325.11
You save:  E£950.17
ብር7,688.19
List Price:  ብር10,764.08
You save:  ብር3,075.89
Kz45,568.13
List Price:  Kz63,799.03
You save:  Kz18,230.90
CLP$46,270.24
List Price:  CLP$64,782.04
You save:  CLP$18,511.80
CN¥353.51
List Price:  CN¥494.95
You save:  CN¥141.43
RD$3,120.82
List Price:  RD$4,369.39
You save:  RD$1,248.57
DA6,504.54
List Price:  DA9,106.88
You save:  DA2,602.34
FJ$113.53
List Price:  FJ$158.96
You save:  FJ$45.42
Q381.64
List Price:  Q534.33
You save:  Q152.69
GY$10,422.98
List Price:  GY$14,593
You save:  GY$4,170.02
ISK kr6,380.22
List Price:  ISK kr8,932.82
You save:  ISK kr2,552.60
DH462.19
List Price:  DH647.10
You save:  DH184.91
L838.34
List Price:  L1,173.74
You save:  L335.40
ден2,652.79
List Price:  ден3,714.12
You save:  ден1,061.32
MOP$399.57
List Price:  MOP$559.43
You save:  MOP$159.86
N$853.14
List Price:  N$1,194.46
You save:  N$341.32
C$1,833.29
List Price:  C$2,566.75
You save:  C$733.46
रु7,129.29
List Price:  रु9,981.58
You save:  रु2,852.29
S/167.66
List Price:  S/234.74
You save:  S/67.08
K214.12
List Price:  K299.79
You save:  K85.66
SAR187.59
List Price:  SAR262.65
You save:  SAR75.05
ZK1,142.10
List Price:  ZK1,599.03
You save:  ZK456.93
L218.83
List Price:  L306.38
You save:  L87.55
Kč1,038.54
List Price:  Kč1,454.05
You save:  Kč415.50
Ft16,361.31
List Price:  Ft22,907.14
You save:  Ft6,545.83
SEK kr471.52
List Price:  SEK kr660.17
You save:  SEK kr188.64
ARS$72,499.87
List Price:  ARS$101,505.62
You save:  ARS$29,005.75
Bs344.25
List Price:  Bs481.99
You save:  Bs137.73
COP$186,248.94
List Price:  COP$260,763.43
You save:  COP$74,514.48
₡24,837.35
List Price:  ₡34,774.28
You save:  ₡9,936.93
L1,311.86
List Price:  L1,836.71
You save:  L524.85
₲348,393.16
List Price:  ₲487,778.31
You save:  ₲139,385.14
$U1,973.86
List Price:  $U2,763.56
You save:  $U789.70
zł181.80
List Price:  zł254.53
You save:  zł72.73
Already have an account? Log In

Transcript

We are going to discuss about the distinct with select. So what is it? And how can we use it, you know very well select the state, you can get all the record using the Select static from students table Ctrl, enter all the records coming word, as you know, it's repeating two records. So as you can see, this is the shaky and also the shaky. These are two record repeating records if you eliminate the same value, so how can you do that? I'm saying that select the string s name from student control in there.

So as you can see, it's only showing you three increase. Why because you are saying this thing. So the Select distinct statement is used to return only different value, okay? Because we have different values. If you are saying select the state static from students select this thing from the student. As you can see, it's showing you all the record because this thing works with column if you are saying distinct as address from yesterday so as you can see you have two same values, so Ctrl Enter so as you can see, you are registering you on the the different values, it's not the same value, so that's why so this is very useful statement, which is there this thing to eliminate the same recourse.

So I think this is the next section we are going to cover the topic so thanks for watching.

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.