有人可以帮我用linq编写这个查询:
select * from employee e
left outer join orders ord on e.employeeId = ord.employeeId
and ord.orderId = (select max(orderId) from Orders ord2 where ord.EmpIdentification = ord2.Empidentification)
Where e.employeeId = 1
谢谢
答案 0 :(得分:0)
这应该是等效的但我不确定如果订单的连接找不到匹配并且您正在尝试测试空 static void Main(string[] args)
{
double original = 32;
double percentOf = 97;
double total = original * percentOf / 100;
Console.WriteLine(total);
}
会发生什么。我不知道SQL会做什么。
ord.orderId