我是sql的实习生,对此查询的任何帮助都会很棒.TIA。
select distinct jobtitle,max([HireDate]),LoginID from [HumanResources].[Employee] as e
where loginid in (select distinct LoginID from HumanResources.Employee
where JobTitle in (select distinct JobTitle from [HumanResources].[Employee]) )
group by JobTitle,LoginID;
答案 0 :(得分:1)
如果您正在讨论命令行程序,这将有效。
puts "Hello World"
或者如果你想要一个面向对象的版本
class HelloWorld
def initialize(name)
@name = name.capitalize
end
def sayHi
puts "Hello #{@name}!"
end
end
hello = HelloWorld.new("World")
hello.sayHi
如果您正在寻找Hello World上的ruby on rails版本。查看Rails的入门Guide。