← prev | next →
amararyan 2022-07-04 22:37:07
RakeshPardeshi 2022-07-04 18:55:34
Hi All, I have one sql database design and implementation assignment. Please dm me if you are interested to work on this assignment
Interested
amararyan 2022-07-04 22:41:35
Is there any internship for data analysis or Sql.
Noname Dba 2022-07-05 10:10:25
Hello everyone!
Why i haven’t binary /usr/bin/mysqld_safe ?
Who knows
tech0123890 2022-07-05 10:33:48
Are you interested in AWS, Devops ,Azure and GCP course training!
Dm me for more details
adiamrit 2022-07-05 10:35:56
tech0123890 2022-07-05 10:33:48
Are you interested in AWS, Devops ,Azure and GCP course training!
Dm me for more details
I am interested but is there any fees
tech0123890 2022-07-05 10:36:31
adiamrit 2022-07-05 10:35:56
I am interested but is there any fees
Yes
suricruise1 2022-07-05 11:02:19

Salary grade table
suricruise1 2022-07-05 11:02:40

Emp table
suricruise1 2022-07-05 11:04:20

#help#sql query #by using above two tables want output this pic
M S 2022-07-05 11:41:32
Hi all
M S 2022-07-05 11:42:19
I have a slave server for MySQL and to that slave only replicating one Database and few tables in that database
M S 2022-07-05 11:42:55
But when someone from my team trying create a procedure in other database on master
M S 2022-07-05 11:43:19
Statements tried to execute on slave also and throwing database not exist error
M S 2022-07-05 11:43:26
Slave SQL is stopping
M S 2022-07-05 11:43:43
Can anyone suggest and explain this
Noname Dba 2022-07-05 11:48:21
Hello everyone!
Why i haven’t binary /usr/bin/mysqld_safe ?
Who knows
Liran 2022-07-05 12:12:48
I have production issue:
we did “alter table test add column varchar (16) null”
the column was added on the production but on replica i get this in the process list:
grouponi_groupon Connect 6701 Waiting for table metadata lock ALTER TABLE `tb_opportunity__deal_options` ADD `permanent_code` VARCHAR(16) NULL
it’s already like this more than 1.5 hour
Liran 2022-07-05 12:13:03
Please help me, replication is lagging because this lock.
Swapnil 2022-07-05 12:53:29
suricruise1 2022-07-05 11:04:20
#help#sql query #by using above two tables want output this pic
what is connection between both tables ?
Swapnil 2022-07-05 12:53:44
Liran 2022-07-05 12:12:48
I have production issue:
we did “alter table test add column varchar (16) null”
the column was added on the production but on replica i get this in the process list:
grouponi_groupon Connect 6701 Waiting for table metadata lock ALTER TABLE `tb_opportunity__deal_options` ADD `permanent_code` VARCHAR(16) NULL
it’s already like this more than 1.5 hour
Try without null
tanya 2022-07-05 13:28:10
-> what does this symbol ro in linux
tanya 2022-07-05 13:28:13
Anyone
suricruise1 2022-07-05 13:59:56

Got answer
suricruise1 2022-07-05 14:00:21
Swapnil 2022-07-05 12:53:29
what is connection between both tables ?
Above one bro
Gunnyvenkat 2022-07-05 17:11:19
Have a doubt
Gunnyvenkat 2022-07-05 17:11:39
there are three columns in a table event,user_id,time
none of them is a primary key
exmpl: user_id event time
4000 optin 04:03
4000 confirm 04:58
4000 react 05:50
8221 optin 06:56
6342 confirm 05:30
6342 optin 04:24
find user_id which contains only optin and not confirm
Gaurav Gupta 2022-07-05 17:49:09
Any one from noida looking for php developer job.
Swapnil 2022-07-05 19:04:10
Gunnyvenkat 2022-07-05 17:11:39
there are three columns in a table event,user_id,time
none of them is a primary key
exmpl: user_id event time
4000 optin 04:03
4000 confirm 04:58
4000 react 05:50
8221 optin 06:56
6342 confirm 05:30
6342 optin 04:24
find user_id which contains only optin and not confirm
create table test (user_id int,event text,
time text);
insert into test values
(4000,’optin’,’04:03′),
(4000,’confirm’,’04:58′),
(4000,’react’,’05:50′),
(8221,’optin’,’06:56′),
(8123,’react’,’07:10′),
(1234,’optin’,’08:17′),
(1234,’react’,’09:16′),
(6342,’confirm’,’05:30′),
(6342,’optin’,’04:24′);
select *
from test
where user_id in (
select distinct user_id
from test
where user_id not in
(select distinct user_id
from test
where event = ‘confirm’
)
and event = ‘optin’
)
Gunnyvenkat 2022-07-05 19:42:48
Thank you soo much swapnil
Gunnyvenkat 2022-07-05 19:44:27
Gunnyvenkat 2022-07-05 19:44:36
But I’m getting react also
Gunnyvenkat 2022-07-05 19:44:41
I need only optin
Swapnil 2022-07-05 19:50:48
Gunnyvenkat 2022-07-05 19:44:36
But I’m getting react also
That was not mentioned explicitly in the requirement.
Anyway try below query
select distinct *
from test
where user_id not in
(select distinct user_id
from test
where event = ‘confirm’)
and event = ‘optin’
Gunnyvenkat 2022-07-05 20:04:24
Yeah swapnil
Gunnyvenkat 2022-07-05 20:04:26
It’s working
← prev | next →