avatar
CS 面试题总结(4)# JobHunting - 待字闺中
w*t
1
8 -
Part A: We are writing a feature for customers to check how many times an up
load fee was
assessed last month. Another developer wrote the following SQL query:
SELECT c.*, t.*, FROM customer c LEFT JOIN transactions t on
t.customer_id = c.customer_id where c.name='$customer_name' ORDER BY
c.name ASC, t.date DESC;
You know nothing about the database except that it is MySQL, but your goal i
s to optimize
this query as much as you can. How would you start?
Part B: The developer uses PHP to conn
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。