Re: Am I crazy or is this SQL not possible
От | Yasir Malik |
---|---|
Тема | Re: Am I crazy or is this SQL not possible |
Дата | |
Msg-id | Pine.NEB.4.64.0606011540570.1881@pink-elephant.cs.stevens-tech.edu обсуждение исходный текст |
Ответ на | Re: Am I crazy or is this SQL not possible ("Aaron Bono" <postgresql@aranya.com>) |
Ответы |
Re: Am I crazy or is this SQL not possible
Re: Am I crazy or is this SQL not possible |
Список | pgsql-sql |
> It is a hack, but when someone wants you to do something in a way > different from the norm, aren't they asking for a hack? > > SQL Server does something like > select top (1) from .... > > I am thinking this is NOT a SQL-99 standard. > This was an interview with Amazon, and I don't think Amazon wanted a hack. I hope Amazon doesn't use hacks. There has to be another way. It would be cruel if they expected me know some database specific functionality. Here's what I gave them: select value from table t where t.value > (select t2.value from table t2); which would be fine if the sub-select returned simply a list, but that isn't even valid SQL (I didn't get the job, BTW). Yasir
В списке pgsql-sql по дате отправления: