Are you referring to the form used for reports?

|
piterden 2021-03-31 11:50:28
eg2710 2021-03-31 11:49:10
ok

I don’t know why, but my ER-diagrams never has rings

2021-03-31 11:51:15
MasterZiv 2021-03-31 11:49:58
Hi guys
I need help
phpmyadmin working correctly but 3rd party resurces not connecting squel or workbench

Login and password correct

Who can help me guys plz

eg2710 2021-03-31 11:51:30
piterden 2021-03-31 11:50:28
I don’t know why, but my ER-diagrams never has rings

are you referring to the form used for reports?

piterden 2021-03-31 11:51:43
even insulting
MasterZiv 2021-03-31 11:52:35
piterden 2021-03-31 11:50:28
I don’t know why, but my ER-diagrams never has rings

No, it is quite OK to have loops in ER-dagramms

eg2710 2021-03-31 11:54:10
I didn’t quite understand what you were referring to, however I used this form, only to represent relationships, nothing more.
piterden 2021-03-31 11:54:36
MasterZiv 2021-03-31 11:52:35
No, it is quite OK to have loops in ER-dagramms

Yes I heard it. That’s why it is a bit insulting for me

MasterZiv 2021-03-31 11:55:48
MasterZiv 2021-03-31 11:49:58
Hi guys
I need help
phpmyadmin working correctly but 3rd party resurces not connecting squel or workbench

Login and password correct

provide more info on how you connect and where.
Now we can’t help

eg2710 2021-03-31 11:56:16
a ok now I understand , yes this form is used for cycles ok ahahhahah, but the site I used to create the er diagram gave me this form to represent the relationships
eg2710 2021-03-31 11:59:14
MasterZiv 2021-03-31 11:39:59
You already have a many-to-many relationship between users, so all is FINE.

Only I would recommend REMOVING the surrogate key in FRIENDSHIP table, id_amicizia.

It is almost never needed,

So do you advise me to delete the foreign key or leave it? Because the derivation rules of the relational model foresee the following form

MasterZiv 2021-03-31 12:03:32
eg2710 2021-03-31 11:59:14
So do you advise me to delete the foreign key or leave it? Because the derivation rules of the relational model foresee the following form

FKs must be left like they are now. Don’t delete them

MasterZiv 2021-03-31 12:04:14
eg2710 2021-03-31 11:56:16
a ok now I understand , yes this form is used for cycles ok ahahhahah, but the site I used to create the er diagram gave me this form to represent the relationships

Loops in ER-diagrams are completely OK

eg2710 2021-03-31 12:08:36
Ok thanks for your help👍
MasterZiv 2021-03-31 12:19:38
eg2710 2021-03-31 11:59:14
So do you advise me to delete the foreign key or leave it? Because the derivation rules of the relational model foresee the following form

You fks must be from sending user and receiving user field.
Those field will stay, so will the fks.

web_bad_coder 2021-04-04 21:54:14
HI!
Table:
ORDERS (ID, PRODUCT_NAME, PRODUCT_PRICE, DATE_ORDER DATE, ID_CUSTOMER, AMOUNT);
How to calculate the average sum of the orders for the product ‘product-1’?
piterden 2021-04-04 22:00:44
web_bad_coder 2021-04-04 21:54:14
HI!
Table:
ORDERS (ID, PRODUCT_NAME, PRODUCT_PRICE, DATE_ORDER DATE, ID_CUSTOMER, AMOUNT);
How to calculate the average sum of the orders for the product ‘product-1’?

Where is your relation to product?

web_bad_coder 2021-04-04 22:03:09
I eat to do like this:
SELECT AVG(AMOUNT) from ORDERS WHERE PRODUCT_NAME=‘product1’
but it doesn’t work
piterden 2021-04-04 22:04:29
SELECT AVG(AMOUNT) from ORDERS GROUP BY PRODUCT_NAME
web_bad_coder 2021-04-04 22:04:51
thanks!
web_bad_coder 2021-04-04 22:05:51
and add WHERE PRODUCT_NAME=‘product1’?
piterden 2021-04-04 22:06:13
As you wish
izsalq 2021-04-05 07:07:52
mysql_en-9005.jpg
#ask why C.price Unkown colomn
piterden 2021-04-05 07:30:41
izsalq 2021-04-05 07:07:52
#ask why C.price Unkown colomn

Don’t repeat aliases names

izsalq 2021-04-05 07:31:48
piterden 2021-04-05 07:30:41
Don’t repeat aliases names

OK so the naming of aliases cannot be the same

izsalq 2021-04-05 07:32:57
so I just need to change the alias name in C. price in inner join is correct
piterden 2021-04-05 07:42:20
You need to use different names for each alias in query. What is unclear?
MasterZiv 2021-04-05 08:19:13
piterden 2021-04-05 07:42:20
You need to use different names for each alias in query. What is unclear?

This is quite ok here as it is done in a subquery.

izsalq 2021-04-05 12:03:53
#ask good afternoon, how to display all data with conditions in a group based on its type and there is an additional 1 column in front of SQL. How do you do it?
piterden 2021-04-05 14:49:32
izsalq 2021-04-05 12:03:53
#ask good afternoon, how to display all data with conditions in a group based on its type and there is an additional 1 column in front of SQL. How do you do it?

Show DDL and explain what exactly do you want to get. Try to avoid abstract descriptions.

izsalq 2021-04-05 14:54:10
Oke im sorry my bad in english
madm3n 2021-04-05 17:47:11
Hi guys,
I have a blogs table and another table for multiple blog images.
I’m trying to get results for one blog and its multiple photos.
But I’m getting multiple result during query and json encode.
Any idea to save me?
piterden 2021-04-05 17:52:42
madm3n 2021-04-05 17:47:11
Hi guys,
I have a blogs table and another table for multiple blog images.
I’m trying to get results for one blog and its multiple photos.
But I’m getting multiple result during query and json encode.
Any idea to save me?

Show DDL and explain what exactly do you want to get. Try to avoid abstract descriptions.

tamga8 2021-04-06 13:34:42
Hello guys!
I need your advise
There is a tool (web-portal) and this tool is used by 3 distributed teams in different locations (continents)
And the management wants to have own stage in each locations for availability purposes
And the question is how to replicate the data between 3 stages
tamga8 2021-04-06 13:35:08
Currently the database system is PostgreSQL
tamga8 2021-04-06 13:35:39
Unfortunately Postgres doesn’t have built-in master-master replication mechanism
|