Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
0
1
00:00:00,768 --> 00:00:06,912
Next we will look at an operator this operator will actually be joining several strings and the function is
1
2
00:00:07,168 --> 00:00:08,448
Is known as concatenation
2
3
00:00:08,960 --> 00:00:12,544
So when you want to join two or more strings
3
4
00:00:12,800 --> 00:00:14,336
You will be using this operator
4
5
00:00:14,592 --> 00:00:15,872
So this operator
5
6
00:00:16,384 --> 00:00:16,896
uses
6
7
00:00:17,152 --> 00:00:19,200
the symbol of a double pipe
7
8
00:00:19,456 --> 00:00:23,808
so pipe symbol is below your backspace key above your enter key
8
9
00:00:24,064 --> 00:00:28,416
And you'll need to press the shift key and then press this key to get the pipe symbol
9
10
00:00:30,208 --> 00:00:32,256
Mention one string
10
11
00:00:32,768 --> 00:00:33,792
Put two pipes
11
12
00:00:34,304 --> 00:00:39,936
Mention another string, both the strings will be concatenated in other words both of these strings will be joined
12
13
00:00:42,752 --> 00:00:44,800
So for example if you want to
13
14
00:00:45,824 --> 00:00:50,688
Concatenate the different parts of addresses that you have in your customer table
14
15
00:00:50,944 --> 00:00:55,552
Into one single column which contains all the parts of the addresses
15
16
00:00:55,808 --> 00:00:59,904
So for example for a particular customer I want in another column
16
17
00:01:00,160 --> 00:01:04,256
the city state and the country to which that customer belongs
17
18
00:01:05,280 --> 00:01:06,048
to do that
18
19
00:01:06,304 --> 00:01:07,840
I'll select the customer name
19
20
00:01:08,096 --> 00:01:11,168
and in the second column I will concatenate City
20
21
00:01:11,680 --> 00:01:12,448
With state
21
22
00:01:12,704 --> 00:01:13,472
With the country
22
23
00:01:14,496 --> 00:01:17,824
To add this special character of comma in between
23
24
00:01:18,080 --> 00:01:18,848
I'll use
24
25
00:01:19,360 --> 00:01:20,384
Single quotes
25
26
00:01:20,640 --> 00:01:22,432
and I'll mention this comma
26
27
00:01:22,688 --> 00:01:26,784
Alongside this comma is two spaces so that our data looks good
27
28
00:01:28,320 --> 00:01:31,648
This whole column is named as address
28
29
00:01:31,904 --> 00:01:34,208
And this belongs to the customer table
29
30
00:01:34,464 --> 00:01:37,536
Let us go and write this query
30
31
00:01:37,792 --> 00:01:43,168
I want to select customer name
31
32
00:01:44,960 --> 00:01:45,472
And
32
33
00:01:45,984 --> 00:01:47,520
I'll concatenate
33
34
00:01:48,032 --> 00:01:49,056
City
34
35
00:01:51,104 --> 00:01:51,872
Comma
35
36
00:01:53,408 --> 00:01:55,200
Space comma space
36
37
00:01:55,456 --> 00:01:58,272
With state
37
38
00:02:00,320 --> 00:02:01,856
Concatenate
38
39
00:02:04,160 --> 00:02:06,976
Space comma space country
39
40
00:02:14,656 --> 00:02:17,728
And this will be named as address
40
41
00:02:18,752 --> 00:02:22,336
From the customer table
41
42
00:02:24,640 --> 00:02:26,176
Run this
42
43
00:02:26,432 --> 00:02:27,712
You can see
43
44
00:02:27,968 --> 00:02:29,248
For the first customer
44
45
00:02:29,760 --> 00:02:32,320
The address is Henderson Kentucky
45
46
00:02:32,576 --> 00:02:37,184
United States. So it is city state and the country
46
47
00:02:38,976 --> 00:02:40,000
So this is how
47
48
00:02:40,256 --> 00:02:42,816
You can concatenate different strings
48
49
00:02:43,584 --> 00:02:44,864
Two or more columns
49
50
00:02:45,120 --> 00:02:47,424
A particular string to a particular column
50
51
00:02:47,680 --> 00:02:50,752
All these things can be done using the concatenate function and the operator for this is ||
3903
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.