MySQL 2022-06-29 08:37

|
Prince Kumar 2022-06-29 08:37:31
Hey everyone please tell me how to convert milliseconds to minutes in MySQL long running queries
Prince Kumar 2022-06-29 08:37:39
Please help
adiamrit 2022-06-29 09:50:27
Prince Kumar 2022-06-29 08:37:31
Hey everyone please tell me how to convert milliseconds to minutes in MySQL long running queries

select t.*, sec_to_time(floor(milliseconds/1000)) as time
from t

Deb_575 2022-06-29 10:25:05
Hello All,
PFB details
Company Name :Lumen Technologies Inc (formerly Centurylink)
Location: Bangalore, KA,India
Role : DBA
Position : Associate Level
Years of experience : 4 to 6 years
Primary skill set (must have) : MySQL database administration ( Oracle MySQL, Percona server, MariaDB), Linux (RHEL,CentOS,Ubuntu), Bash shell scripting.
Secondary Skill set : Microsoft SQL Server administration (L1/L2) or Oracle database administration (L1/L2) or both.
Good to have : Microsoft Azure, python.

DM me so that I can share my office id. Please apply only if you have relevant experience and skills. This is not a fresher position. This is a referral based position so I will not be able to refer all.

Pavankalyan 2022-06-29 13:11:41
What is the maximum limit in mysql IN() clause?
Pavankalyan 2022-06-29 13:12:12
If exceeds… Does it through error?
snehakshaylata 2022-06-29 13:28:48
i want help in my sql
Liran 2022-06-29 13:31:16
What’s the best way to export a 161GB dump file from AWS S3 to GCP Cloud storage (bucket)?
smlkw 2022-06-29 13:32:13
Liran 2022-06-29 13:31:16
What’s the best way to export a 161GB dump file from AWS S3 to GCP Cloud storage (bucket)?

Download it locally and then upload to GCP

Liran 2022-06-29 13:35:39
smlkw 2022-06-29 13:32:13
Download it locally and then upload to GCP

without this middle man πŸ™

smlkw 2022-06-29 13:36:00
Liran 2022-06-29 13:35:39
without this middle man πŸ™

I don’t think it’s possible

suricruise1 2022-06-29 13:57:50
mysql_en-22171.jpg
#help#sql#query#
Swapnil 2022-06-29 14:13:47
suricruise1 2022-06-29 13:57:50
#help#sql#query#

Select salesman_id, name, city, commission
from salesman
where salesman_id in (select salesman_id
from customer
group by salesman_id
having count(1) > 1)

suricruise1 2022-06-29 14:38:12
Swapnil 2022-06-29 14:13:47
Select salesman_id, name, city, commission
from salesman
where salesman_id in (select salesman_id
from customer
group by salesman_id
having count(1) > 1)

πŸ‘ bro

suricruise1 2022-06-29 17:19:17
mysql_en-22176.jpg
#help#sql#query#bro
Paul G. 2022-06-29 18:08:30
suricruise1 2022-06-29 17:19:17
#help#sql#query#bro

SELECT
im.PRO_NAME,
MAX(im.PRO_PRICE) AS MaximumPrice,
cm.COM_NAME
FROM item_mast im
JOIN company_mast cm ON cm.COM_ID = im.PRO_COM
GROUP BY cm.COM_NAME

Swapnil 2022-06-29 18:09:46
suricruise1 2022-06-29 17:19:17
#help#sql#query#bro

Select pro_name as product_name, max(price) as price, com_name as company
from item_mast a
join company_mast b on a.pro_com = b.com_id
group by pro_name,com_name

Swapnil 2022-06-29 18:10:19
Paul G. 2022-06-29 18:08:30
SELECT
im.PRO_NAME,
MAX(im.PRO_PRICE) AS MaximumPrice,
cm.COM_NAME
FROM item_mast im
JOIN company_mast cm ON cm.COM_ID = im.PRO_COM
GROUP BY cm.COM_NAME

This will give error bro as group by does not have all non aggregrate columb

Paul G. 2022-06-29 18:13:35
Swapnil 2022-06-29 18:10:19
This will give error bro as group by does not have all non aggregrate columb

You wrote the same code, as I can see, bro.

Swapnil 2022-06-29 18:18:32
Paul G. 2022-06-29 18:13:35
You wrote the same code, as I can see, bro.

Group by clause differs in our code

Paul G. 2022-06-29 18:22:17
Swapnil 2022-06-29 18:18:32
Group by clause differs in our code

I see. You declared the nicknames, but didn’t used it.

Swapnil 2022-06-29 18:27:54
Paul G. 2022-06-29 18:22:17
I see. You declared the nicknames, but didn’t used it.

No thats still fine. I am talking about may be you have missed to add im.pro_name in group by clause

Paul G. 2022-06-29 19:00:23
Swapnil 2022-06-29 18:27:54
No thats still fine. I am talking about may be you have missed to add im.pro_name in group by clause

You’re right, I forgot about it, but now I guess the decision is wrong in general. We have to get the only max price products, but it will return them all.

Swapnil 2022-06-29 19:07:24
Paul G. 2022-06-29 19:00:23
You’re right, I forgot about it, but now I guess the decision is wrong in general. We have to get the only max price products, but it will return them all.

Yes even i think the same

Swapnil 2022-06-29 19:10:20
suricruise1 2022-06-29 17:19:17
#help#sql#query#bro

with max_price as
(
Select pro_com,max(pro_price) as price
from item_mast
group by pro_com
)
select a.pro_name, b.price, a.com_name
from company_mast a
join max_price b on a.com_id = b.pro_com

OR

Select DISTINCT pro_name as product_name, max(price) over (partition by a.pro_com) as price, com_name as company
from item_mast a
join company_mast b on a.pro_com = b.com_id

suricruise1 2022-06-29 19:11:16
Swapnil 2022-06-29 19:10:20
with max_price as
(
Select pro_com,max(pro_price) as price
from item_mast
group by pro_com
)
select a.pro_name, b.price, a.com_name
from company_mast a
join max_price b on a.com_id = b.pro_com

OR

Select DISTINCT pro_name as product_name, max(price) over (partition by a.pro_com) as price, com_name as company
from item_mast a
join company_mast b on a.pro_com = b.com_id

Brother i will execute query

Swapnil 2022-06-29 19:13:59
suricruise1 2022-06-29 19:11:16
Brother i will execute query

i have updated the answer plz refer below now

Swapnil 2022-06-29 19:14:07
Swapnil 2022-06-29 19:10:20
with max_price as
(
Select pro_com,max(pro_price) as price
from item_mast
group by pro_com
)
select a.pro_name, b.price, a.com_name
from company_mast a
join max_price b on a.com_id = b.pro_com

OR

Select DISTINCT pro_name as product_name, max(price) over (partition by a.pro_com) as price, com_name as company
from item_mast a
join company_mast b on a.pro_com = b.com_id

This one

suricruise1 2022-06-29 19:14:26
Swapnil 2022-06-29 19:14:07
This one

Okay brother

suricruise1 2022-06-29 19:14:38
Brother i have question
suricruise1 2022-06-29 19:14:48
It’s important for me
Swapnil 2022-06-29 19:15:17
Yes please go ahead
suricruise1 2022-06-29 19:15:36
I will send pic bro
suricruise1 2022-06-29 19:15:56
My TL gave me today
suricruise1 2022-06-29 19:23:13
mysql_en-22202.jpg
In this table one new column add .
In that column values are condition: reference ename column values don’t want to S letter only in that column remaining words will display last new column
|