我正在创建一个联盟跟踪系统,并正在寻找最佳的数据库结构使用在mySQL上低负荷的服务器。我在考虑这种情况。附属机构的一个主要表格:id affiliate_id username password and so on (other affiliates details)并为每个附属机构创建一个新的表,该表将存储他的统计数据如下:Date Clicks sales
我在MYSQL中做一个练习有一些困难。Distribution Stockholm Employees.Name Institutions.InstiutionNamewhere InstitutionID in (select InsID from Institutions where Location = 'London')
第二个问题是我想在mysql_query ("SELECT * FROM charity where id='?????????'")中使用'Charity No: '.代码现在做的是检索所有这些数据,这很好,但我想要charity_id作为charityname(从慈善机构表中),我确信这是使用连接完成的,但我不知道如何在我的代码中做到这一点。第二个问题是,我想创建一个评级系统,对慈善机构进行评级(基于慈善机构的数字),数据实际上是上面的几行,但我也搞不清楚这一