我正在尝试为出版物创建高分辨率的维恩图。该期刊要求每个数字应作为.TIF,.JPG或.EPS格式的单独文件上传,并且在5英寸时的分辨率至少为300 dpi。我运行应创建TIFF文件的脚本(如下)那是300 DPI,5英寸乘5英寸。令人惊讶的是,当我在Mac上预览中查看每个图像时,它表示即使文件为9MB,分辨率也只有72 DPI。我一直在努力解决这个难题,并希望你能够提供帮助。
declare @orders table (country char(2), customer_id int, order_id int);
insert into @orders values
('CA', 5, 3),
('CA', 5, 4),
('CA', 6, 5),
('CA', 6, 6),
('US', 2, 7),
('US', 7, 8),
('US', 7, 9),
('US', 7, 10),
('US', 2, 11);
select country,
sum(case when num_orders <= 2 then 1 else 0 end) as cust_w_2_orders,
sum(case when num_orders > 2 then 1 else 0 end) as cust_2_plus_orders
from (
select country, customer_id, count(*) num_orders
from @orders
group by country, customer_id
) x
group by country;
GO