摘要:
1 SELECT sell_date ,COUNT(1) AS num_sold, 2 STUFF(( 3 SELECT ',' + son.product 4 FROM (SELECT DISTINCT * FROM Activities) son -- 不包含重复项 5 WHERE son.se 阅读全文
摘要:
使用UPPER 和 LOWWER函数组合首字母大写。例如: 1 SELECT user_id,(UPPER(LEFT(name,1) ) + RIGHT(name , LEN(name) -1) )AS name 2 FROM Users 3 ORDER By user_id 阅读全文